XMB Forum Software

"Not allowed to run this file directly" Error when upgrading to 1.10.01

Belle - 12-23-2025 at 04:42 PM

URL https://nostalgia.forum
Version 1.9.12


When attempting to upgrade to 1.10.1, I receive the error "Not allowed to run this file directly". The user attached to the database has full permissons.

In my error log, I get this:


Quote:

23-Dec-2025 16:23:33 UTC] PHP Fatal error: Uncaught Error: Call to undefined function debugURLsettings() in /example/forum/header.php:235
Stack trace:
#0 /example/forum/index.php(27): require()
#1 {main}
thrown in /example/forum/header.php on line 235


My forum is set in debug mode.

Any help is much appreciated :)

miqrogroove - 12-23-2025 at 11:30 PM

Hi, please check that you're using the new version of config.php. I suggest manually copying the settings from the old one, and the new one has been named config-dist.php to avoid conflicts. Or, if you have a file comparison program you could try that. After the settings are in the new format, copy or rename the config-dist.php file to config.php.

I apologize for not anticipating the need to automate this. I will add it as an idea for future versions.

Also, the header.php line 235 is from the 1.9.12 version of header.php. This might be the source of the problem too, so please check both files.