Open dropej opened 5 years ago
Hi @dropej, funny... I just ran into this same issue tonight on another chap's installation. Might be a coincidence & unrelated. Where do you see the error? On one of your forms that uses the Form Tools API?
Total stab in the dark, but you might want to try editing the global/code/Core.class.php
file and look for the loadConfigFile method. The first 3 lines of that look like this:
if (self::checkConfigFileExists()) {
require_once(self::getConfigFilePath());
}
Try changing require_once
to require
. Like I said - this is a total guess, but that was the cause a problem I just encountered. I was going to include this change in 3.0.10.
Thank a lot. The error is to get the login to get into the administration of FormTools.
I change require_once to require and do not resolve the problem.
Thanks @dropej - it was a just a hunch.
Unfortunately I'm really not sure of the cause from the stack trace. Would there be any possibility of getting temporary FTP access so I could debug the issue directly? If so, email me at ben.keen@gmail.com.
Another person is also encountering the same issue, so I'll reach out to them too.
@dropej - Just a quick suggestion, did you edit the config.php file and add change http to https for $g_root_url?
Hey @sf23103, yeah I strongly suspect it's a config.php setting. @dropej and I just emailed: his server is failing on a DB query which executes when the page loads, but it's not providing any details about the nature of the error, so it's time to check the PHP error logs.
Curiously, in this instance I'm not even able to catch () {}
the error, so there'd be no way to ward against this problem on this server (e.g. show a nice "Houston, we have a problem" error message).
Yes. Cordialmente,
<p.ramirezr@gmail.com>
https://do.linkedin.com/in/pedrojramirezr http://facebook.com/PedroJRamirezR https://www.instagram.com/pedrojramrod/
On Tue, Nov 27, 2018 at 5:58 PM sf23103 notifications@github.com wrote:
@dropej https://github.com/dropej - Just a quick suggestion, did you edit the config.php file and add change http to https for $g_root_url?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/formtools/core/issues/384#issuecomment-442233045, or mute the thread https://github.com/notifications/unsubscribe-auth/AGl-syBrpW4jHfdlrOLhQjgCGiABo_8Mks5uzbWBgaJpZM4YvwYu .
PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /var/www/html/phpmood/formtools/global/code/Database.class.php:71 Stack trace:
0 /var/www/html/phpmood/formtools/global/code/Settings.class.php(84): FormTools\Database->query('\n ...')
1 /var/www/html/phpmood/formtools/global/code/User.class.php(50): FormTools\Settings::get(Array)
2 /var/www/html/phpmood/formtools/global/code/Core.class.php(816): FormTools\User->__construct()
3 /var/www/html/phpmood/formtools/global/code/Core.class.php(388): FormTools\Core::initUser()
4 /var/www/html/phpmood/formtools/index.php(15): FormTools\Core::init()
5 {main}
thrown in /var/www/html/phpmood/formtools/global/code/Database.class.php on line 71