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


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/

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:     }

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

Any ideas?


  • Options
    TimTim Operations Vanilla Staff
    edited May 2018

    Your config file appears to be corrupt.

    You can find this file here: /customers/5/4/a/

    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,]

  • Options
    TimTim Operations 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,]

  • Options


    [/customers/5/4/a/] Gdn_ConfigurationSource::fromArray();
    [/customers/5/4/a/] Gdn_Configuration->loadArray();
    [/customers/5/4/a/] YagaHooks->SettingsController_Render_Before();
    [/customers/5/4/a/] PHP::call_user_func_array();
    [/customers/5/4/a/] Garden\EventManager->fire();
    [/customers/5/4/a/] Gdn_PluginManager->callEventHandler();
    [/customers/5/4/a/] Gdn_PluginManager->callEventHandlers();
    [/customers/5/4/a/] Gdn_Pluggable->__call();
    [/customers/5/4/a/] VanillaStatsPlugin->settingsController_home_create();
    [/customers/5/4/a/] Gdn_Dispatcher->dispatchController();
    [/customers/5/4/a/] Gdn_Dispatcher->dispatch();
  • Options
    TimTim Operations Vanilla Staff

    Well there we have it.

    [/customers/5/4/a/] 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,]

  • Options

    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...

  • Options

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

    [/customers/5/4/a/] Gdn_Configuration->loadArray(); [/customers/5/4/a/] 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.