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
asleulv
✭
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?
0
Comments
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:
EDIT: This was ruled out after reviewing the config file in private. The file was valid.
Vanilla Forums COO [GitHub, Twitter, About.me]
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?
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