Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] Bonk Error when i try Apply or Preview Mobile theme or Embed Friendly Theme

H00jH00j
edited May 2012 in Vanilla 2.0 - 2.8

No errors in error.log .
Before i get raged at for not looking ...

I found this
http://vanillaforums.org/discussion/19957/documentationmobile-bonk-message-when-applying-themes-error-code-copied

That suggested i add
$Configuration['Garden']['MobileTheme'] = 'mobile';

To config, when i did that i gave a bonk error on my mobile phone.

Here is my

`

Generated May 11, 2012, 8:21 pm
Version: $Configuration['Conversations']['Version'] = '2.0.18.4';

Plugin: // EnabledPlugins

Plugin: $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';

Plugin: $Configuration['EnabledPlugins']['Flagging'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['SplitMerge'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['Tagging'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['VanillaStats'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['cleditor'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['AllViewed'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['massmail'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['Quotes'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['WhosOnline'] = TRUE;

Plugin: $Configuration['EnabledPlugins']['Voting'] = TRUE;

Version: $Configuration['Garden']['Version'] = '2.0.18.4';

Plugin: // Plugin

Plugin: $Configuration['Plugin']['MassMail']['Title'] = 'test';

Plugin: $Configuration['Plugin']['MassMail']['Content'] = 'teatgat';

Plugin: $Configuration['Plugin']['Traditional']['ForumDescription'] = 'My Forum Description';

Plugin: // Plugins

Version: $Configuration['Vanilla']['Version'] = '2.0.18.4';


`

Here is the error

`Fatal Error in PHP.trigger_error();
Smarty error: the $compile_dir '/home/mywebsite/public_html/cache/Smarty/compile' does not exist, or is not a directory.
The error occurred on or near: /home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.php

1109: * @param integer $error_type

1110: */

1111: function trigger_error($error_msg, $error_type = E_USER_WARNING)

1112: {

1113: trigger_error("Smarty error: $error_msg", $error_type);

1114: }

1115:

1116:

1117: /**

Backtrace:

/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.phpPHP::Gdn_ErrorHandler();

[/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.php:1113] PHP::trigger_error();

[/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/internals/core.write_compiled_resource.php:20] Smarty->trigger_error();

[/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.php:1451] PHP::smarty_core_write_compiled_resource();

[/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.php:1274] Smarty->_compile_resource();

[/home/mywebsite/public_html/library/vendors/Smarty-2.6.25/libs/Smarty.class.php:1126] Smarty->fetch();

[/home/mywebsite/public_html/library/core/class.smarty.php:81] Smarty->display();

[/home/mywebsite/public_html/library/core/class.controller.php:1566] Gdn_Smarty->Render();

[/home/mywebsite/public_html/library/core/class.controller.php:1141] Gdn_Controller->RenderMaster();

[/home/mywebsite/public_html/library/core/class.pluggable.php:193] Gdn_Controller->xRender();

[/home/mywebsite/public_html/applications/vanilla/controllers/class.discussionscontroller.php:148] Gdn_Pluggable->__call();

[/home/mywebsite/public_html/applications/vanilla/controllers/class.discussionscontroller.php:148] DiscussionsController->Render();

[/home/mywebsite/public_html/applications/vanilla/controllers/class.discussionscontroller.php:148] DiscussionsController->Index();

[/home/mywebsite/public_html/library/core/class.dispatcher.php:322] PHP::call_user_func_array();

[/home/mywebsite/public_html/index.php:53] Gdn_Dispatcher->Dispatch();

Variables in local scope:

[error_msg] 'the $compile_dir \'/home/mywebsite/public_html/cache/Smarty/compile\' does not exist, or is not a directory.'

[error_type] 256

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.
Additional information for support personnel:

Application: Vanilla
Application Version: 2.0.18.4
PHP Version: 5.4.3-1
Operating System: Linux
Server Software: Apache
Referer: http://mywebsite.org/index.php?p=/dashboard/settings/themes
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0
Request Uri: /index.php?p=/
Controller: PHP
Method: trigger_error

`

Answers

  • I think i fixed this, by reuploading the Smarty directory

  • Just for future reference:

    H00j said:
    `Fatal Error in PHP.trigger_error();
    Smarty error: the $compile_dir '/home/mywebsite/public_html/cache/Smarty/compile' does not exist, or is not a directory.

    That error needs (needed) to be fixed

    There was an error rendering this rich post.

Sign In or Register to comment.