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.

miqrogroove - 12-24-2025 at 10:03 PM

To make this easier for less-experienced admins, I've published v1.10.02. With this version you can have this extra option:

The only other thing you might notice is the forum front page would still display the "Not allowed" message until you visit the installer.

Belle - 1-3-2026 at 07:05 PM

Hi Miqro, thanks for this. I'll try the 1.10.02 version and get back to you :)

Edit: I'm back - the forum has been updated, however looks like I will need to update my templates from $variableexample to their new format <?= $variableexample ?>. Is there a way to do this automatically? I did try copying over the templates.xmb file etc, but nothing seems to have updated. Apologies if I have missed a step.

Edit 2: Just re-re-read the install notes about previous templates being destroyed - no problem, I can get things fixed up manually if needs be :smilegrin:

Hope you had a great Christmas and New Years.

miqrogroove - 1-3-2026 at 11:38 PM

That's good progress.

The templates.xmb file isn't used in v1.10. Several notes on that here https://docs.xmbforum2.com/index.php?title=Breaking_Changes_...

For migration of templates that were customized, there's a script to help with that. https://sourceforge.net/p/xmb-forum/code/HEAD/tree/hacks/tru...

It might not get 100% of the details you need, but it does take care of a lot of repetitive work.