Fork me on GitHub
Current releases are 2.1.4 (30 Oct 2014) and 2.0.18.13 (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

[Solved] unexpected T_DNUMBER Error

edited October 2011 in Vanilla 2.0 Help
We have a forum that has been up forever and just recently upgraded to 2.0.17.10 -- dispute a few minor hiccups everything seemed to have gone okay and it has worked fine for about a week or so. But today I got this error:

Parse error: syntax error, unexpected T_DNUMBER in /home/**/**/**/conf/config.php on line 85

The config.php file ends at line 85, so I'm not sure what could be the problem there but I can't get in to do anything. Any suggestions?
Tagged:

Comments

  • post the config.php with the passwords removed.

    grep is your friend.


  • <?php if (!defined('APPLICATION')) exit();

    // Conversations
    $Configuration['Conversations']['Version'] = '2.0.17.10';

    // Database
    $Configuration['Database']['Name'] = 'removed';
    $Configuration['Database']['Host'] = 'localhost';
    $Configuration['Database']['User'] = 'removed';
    $Configuration['Database']['Password'] = 'removed';

    // EnabledApplications
    $Configuration['EnabledApplications']['Conversations'] = 'conversations';
    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';

    // EnabledPlugins
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
    $Configuration['EnabledPlugins']['embedvanilla'] = 'embedvanilla';
    $Configuration['EnabledPlugins']['PrivateCommunity'] = 'PrivateCommunity';
    $Configuration['EnabledPlugins']['cleditor'] = 'cleditor';
    $Configuration['EnabledPlugins']['Emotify'] = 'Emotify';
    $Configuration['EnabledPlugins']['VanillaInThisDiscussion'] = 'VanillaInThisDiscussion';
    $Configuration['EnabledPlugins']['AllViewed'] = 'AllViewed';

    // Garden
    $Configuration['Garden']['Title'] = 'American Custom Gunmakers Guild';
    $Configuration['Garden']['Cookie']['Salt'] = 'DDCXFKVJ8O';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Version'] = '2.0.17.10';
    $Configuration['Garden']['RewriteUrls'] = TRUE;
    $Configuration['Garden']['CanProcessImages'] = TRUE;
    $Configuration['Garden']['Installed'] = TRUE;
    $Configuration['Garden']['Errors']['MasterView'] = 'error.master.php';
    $Configuration['Garden']['InstallationID'] = 'removed';
    $Configuration['Garden']['InstallationSecret'] = 'removed';
    $Configuration['Garden']['Analytics']['LastSentDate'] = '20111013';
    $Configuration['Garden']['Theme'] = 'EmbedFriendly';
    $Configuration['Garden']['Import']['CurrentStep'] = 13;
    $Configuration['Garden']['Import']['CurrentStepData'] = '_deleted because it didnt seem relevant & post was too long - I can include it separately_';
    $Configuration['Garden']['Import']['ImportPath'] = '/removed/forum2/uploads/import/XJJ0WGSJGMS8.txt';
    $Configuration['Garden']['Registration']['DefaultRoles'] = 'a:1:{i:0;s:1:"3";}';
    $Configuration['Garden']['Registration']['ApplicantRoleID'] = '5';
    $Configuration['Garden']['Registration']['Method'] = 'Approval';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = '';
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = '';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '-1 week';
    $Configuration['Garden']['Registration']['InviteRoles'] = 'a:3:{i:1;s:1:"0";i:3;s:1:"0";i:4;s:1:"0";}';
    $Configuration['Garden']['Email']['SupportName'] = 'ACGG Forum';
    $Configuration['Garden']['Email']['SupportAddress'] = 'removed';
    $Configuration['Garden']['Email']['UseSmtp'] = FALSE;
    $Configuration['Garden']['Email']['SmtpHost'] = '';
    $Configuration['Garden']['Email']['SmtpUser'] = '';
    $Configuration['Garden']['Email']['SmtpPassword'] = '';
    $Configuration['Garden']['Email']['SmtpPort'] = '25';
    $Configuration['Garden']['Email']['SmtpSecurity'] = '';
    $Configuration['Garden']['PrivateCommunity'] = TRUE;
    $Configuration['Garden']['Messages']['Cache'] = 'a:1:{i:0;s:25:"Vanilla/Discussions/Index";}';

    // Modules
    $Configuration['Modules']['Vanilla']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';
    $Configuration['Modules']['Conversations']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';

    // Plugins
    $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
    $Configuration['Plugins']['GettingStarted']['Categories'] = '1';
    $Configuration['Plugins']['GettingStarted']['Plugins'] = '1';
    $Configuration['Plugins']['GettingStarted']['Registration'] = '1';
    $Configuration['Plugins']['GettingStarted']['Discussion'] = '1';
    $Configuration['Plugins']['GettingStarted']['Profile'] = '1';
    $Configuration['Plugins']['EmbedVanilla']['RemoteUrl'] = 'http://www.removed/test';
    $Configuration['Plugins']['AllViewed']['Enabled'] = TRUE;

    // Routes
    $Configuration['Routes']['DefaultController'] = 'a:2:{i:0;s:11:"discussions";i:1;s:8:"Internal";}';
    $Configuration['Routes']['XD9DYXRlZ29yeUlEPShcZCspKD86JnBhZ2U9KFxkKykpPw=='] = 'a:2:{i:0;s:17:"categories/$1/p$2";i:1;s:9:"Permanent";}';
    $Configuration['Routes']['XD9wYWdlPShcZCsp'] = 'a:2:{i:0;s:15:"discussions/p$1";i:1;s:9:"Permanent";}';
    $Configuration['Routes']['Y29tbWVudHNcLnBocFw_RGlzY3Vzc2lvbklEPShcZCsp'] = 'a:2:{i:0;s:15:"discussion/$1/x";i:1;s:9:"Permanent";}';
    $Configuration['Routes']['Y29tbWVudHNcLnBocFw_RGlzY3Vzc2lvbklEPShcZCspJnBhZ2U9KFxkKyk='] = 'a:2:{i:0;s:19:"discussion/$1/x/p$2";i:1;s:9:"Permanent";}';
    $Configuration['Routes']['YWNjb3VudFwucGhwXD91PShcZCsp'] = 'a:2:{i:0;s:22:"dashboard/profile/$1/x";i:1;s:9:"Permanent";}';

    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.0.17.10';

    // Last edited by Glenn
    Fewless (69.128.174.199)2011-10-14 01:23:45
  • well this is wrong:

    // Last edited by Glenn
    Fewless (69.128.174.199)2011-10-14 01:23:45


    either remove it or the following

    // Last edited by Glenn Fewless (69.128.174.199)2011-10-14 01:23:45

    one line.

    grep is your friend.

  • Well now I feel stupid. Can't believe I didn't see that -- still don't know how it could have happened as everything was working the last time I was on the site and the config file hadn't been manually modified. Thanks so much for your help!
Sign In or Register to comment.