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.

Admin panel fatal error

Hello.

When I am trying to access the admin panel I get the dreaded "something went wrong" message. I turned on debugging and it's returning:

Fatal Error in Gdn_ConfigurationSource.fromArray();

Invalid config data.
The error occurred on or near: /customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.configuration.php

1100:      * @return Gdn_ConfigurationSource
1101:      */
1102:     public static function fromArray($parent, $configData, $tag, $name = 'Configuration') {
1103:         if (!is_array($configData)) {
_1104:             throw new Exception('Invalid config data.');_
1105:         }
1106:         return new Gdn_ConfigurationSource($parent, 'array', $tag, $name, $configData);
1107:     }
1108: 

One thing: My database prefix is not Gdn_, so not sure why it's refering to this.

Any ideas?

Comments

  • TimTim Vanilla Staff
    edited May 2018

    Your config file appears to be corrupt.

    You can find this file here: /customers/5/4/a/pmono.no/httpd.www/2018forum/conf/config.php

    It should be a long list of array assignments, something like:

    $Configuration['Garden']['Email']['Format'] = 'text';
    $Configuration['Garden']['SystemUserID'] = '1';
    $Configuration['Garden']['InputFormatter'] = 'Markdown';
    

    EDIT: This was ruled out after reviewing the config file in private. The file was valid.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • TimTim Vanilla Staff

    Please paste the stack trace provided by the error page, this will help us find out what file is causing the problem.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • This?

    Backtrace:
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.configuration.php:598] Gdn_ConfigurationSource::fromArray();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/applications/yaga/settings/class.hooks.php:887] Gdn_Configuration->loadArray();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/applications/yaga/settings/class.hooks.php:887] YagaHooks->SettingsController_Render_Before();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/Garden/EventManager.php:278] PHP::call_user_func_array();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.pluginmanager.php:806] Garden\EventManager->fire();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.pluginmanager.php:765] Gdn_PluginManager->callEventHandler();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.pluggable.php:196] Gdn_PluginManager->callEventHandlers();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/plugins/VanillaStats/class.vanillastats.plugin.php:148] Gdn_Pluggable->__call();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.dispatcher.php:845] VanillaStatsPlugin->settingsController_home_create();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/library/core/class.dispatcher.php:274] Gdn_Dispatcher->dispatchController();
    [/customers/5/4/a/pmono.no/httpd.www/2018forum/index.php:29] Gdn_Dispatcher->dispatch();
    
  • TimTim Vanilla Staff

    Well there we have it.

    [/customers/5/4/a/pmono.no/httpd.www/2018forum/applications/yaga/settings/class.hooks.php:887] Gdn_Configuration->loadArray();

    You can see that the application yaga is trying to load a config file, and that’s what is failing.

    I don’t know enough about that 3rd party app to be of much more help, but that’s where you should start your investigation.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • Cheers @Tim !

    I disabled Yaga and everything is working fine.

    Now I am wondering how I could have a reaction system (like on here with insightful, awesome..etc) without Yaga...

  • Ok, so I enabled Yaga again and found the line referenced here:

    [/customers/5/4/a/pmono.no/httpd.www/2018forum/applications/yaga/settings/class.hooks.php:887] Gdn_Configuration->loadArray(); [/customers/5/4/a/pmono.no/httpd.www/2018forum/applications/yaga/settings/class.hooks.php:887] YagaHooks->SettingsController_Render_Before();

    And simply commented it out:

    /** Gdn::config()->loadArray(C('Yaga.ConfBackup'),'applications/yaga'); */

    Probably a terrible solution, and one that will haunt me at some later point, but it actually seems to work :P

Sign In or Register to comment.