XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: "Not allowed to run this file directly" Error when upgrading to 1.10.01
Belle
New Poster
**


Avatar


Posts: 4
Registered: 5-25-2024
Member Is Offline


posted on 12-23-2025 at 04:42 PM
"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 :)
View user's profile
miqrogroove
XMB 1.10 Lead Developer
*********


Avatar


Posts: 612
Registered: 10-1-2002
Member Is Offline

Mood: Past Three O'Clock

posted on 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.
View user's profile Visit user's homepage
miqrogroove
XMB 1.10 Lead Developer
*********


Avatar


Posts: 612
Registered: 10-1-2002
Member Is Offline

Mood: Past Three O'Clock

posted on 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:
  • 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.
View user's profile Visit user's homepage
Belle
New Poster
**


Avatar


Posts: 4
Registered: 5-25-2024
Member Is Offline


posted on 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.
View user's profile
miqrogroove
XMB 1.10 Lead Developer
*********


Avatar


Posts: 612
Registered: 10-1-2002
Member Is Offline

Mood: Past Three O'Clock

posted on 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.
View user's profile Visit user's homepage

  Go To Top

Powered by XMB 1.10.02
XMB Forum Software © 2001-2025 The XMB Group
[Queries: 14] [PHP: 35.3% - SQL: 64.7%]