Belle
New Poster 
Posts: 4
Registered: 5-25-2024
Member Is Offline
|
|
"Not allowed to run this file directly" Error when upgrading to 1.10.01
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
|
|
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
|
|
To make this easier for less-experienced admins, I've published v1.10.02. With this version you can have this extra option:
Upload all XMB files over the old version
Navigate to the install page like example.com/install/
XMB will detect the old config.php file, change it for you, and then proceed to upgrade.
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
New Poster 
Posts: 4
Registered: 5-25-2024
Member Is Offline
|
|
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
Hope you had a great Christmas and New Years.
|
|
|
miqrogroove
|
|
|
|
|