4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: abda53bd on January 12, 2023, 09:25:08 PM

Title: MAIN_SCRIPT error (with fix) on 1.9 on PHP 8.1.12
Post by: abda53bd on January 12, 2023, 09:25:08 PM
PHP Fatal error:  Uncaught Error: Undefined constant "MAIN_SCRIPT" in includes/page_header.php:83

I get this error after creating a new account on a new install and trying to log in.

Fix:
file: global.php
line 27 add:


if(!defined('MAIN_SCRIPT')){
define('MAIN_SCRIPT', __FILE__);
}

It's possible this only happens on non-verified accounts
Title: Re: MAIN_SCRIPT error (with fix) on 1.9 on PHP 8.1.12
Post by: kai on January 13, 2023, 08:17:00 AM
Yes, this will be fixed in the next version.