TIPF Posted July 5, 2022 Share Posted July 5, 2022 (edited) Hi. I've just upgraded to v4.7 and now getting the following error:Fatal error: Cannot use "parent" when current class scope has no parent inΒ /home/www/tipf.co.uk/forums/system/Theme/Theme.php(2703) : eval()'d codeΒ on lineΒ 37 The only theme I have installed is the default, although I do have the app 'Dark mode' installed, this was upgraded 2 days ago and is apparently now compatible with v4.7. Edited July 5, 2022 by TIPF Link to comment Share on other sites More sharing options...
Jim M Posted July 5, 2022 Share Posted July 5, 2022 Sorry, looks like the error was not included. Could you please reply with it? Link to comment Share on other sites More sharing options...
Stuart Silvester Posted July 5, 2022 Share Posted July 5, 2022 This is an issue with a third party application or plugin. Disabling those should fix the issue. Jim M 1 Link to comment Share on other sites More sharing options...
TIPF Posted July 5, 2022 Author Share Posted July 5, 2022 1 hour ago, Stuart Silvester said: This is an issue with a third party application or plugin. Disabling those should fix the issue. Because of the error I can't access the ACP. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 5, 2022 Share Posted July 5, 2022 18 minutes ago, TIPF said: Because of the error I can't access the ACP. Use RECOVERY_MODE: Β Thomas Hop 1 Link to comment Share on other sites More sharing options...
TIPF Posted July 5, 2022 Author Share Posted July 5, 2022 13 minutes ago, Adriano Faria said: Use RECOVERY_MODE: Β Sorry, I've no idea what that is. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 5, 2022 Share Posted July 5, 2022 Read the guide. Add a constant.php file, etc. Recovery mode will make your board load without any 3rd-party resource enabled... then just disable them and your board is back. Link to comment Share on other sites More sharing options...
TIPF Posted July 5, 2022 Author Share Posted July 5, 2022 11 minutes ago, Adriano Faria said: Read the guide. Add a constant.php file Wouldn't know where to start. Link to comment Share on other sites More sharing options...
nodle Posted July 5, 2022 Share Posted July 5, 2022 (edited) 4 minutes ago, TIPF said: Wouldn't know where to start. ConstantΒ - RECOVERY_MODEUseΒ - Used for recovery of the system when failure occurs in 3rd party items, preventingΒ ACPΒ accessExample valueΒ - TRUE Β Add: <?php \define('RECOVERY_MODE','TRUE'); Edited July 5, 2022 by nodle Link to comment Share on other sites More sharing options...
TIPF Posted July 5, 2022 Author Share Posted July 5, 2022 I need point out that I don't know the first thing about coding, I install software, I expect it to work as described. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 5, 2022 Share Posted July 5, 2022 Upload the file to the same folder of conf_global.php via FTP: constants.php then once you're in, disable apps and plugins. This will give you access to your ACP again. After disable apps and plugins, delete the file you uploaded (constants.php). To find out the resource with issue, you will have to enable one, test, enable other, test, etc... or maybe you'll find out which one with problem in the logs. Link to comment Share on other sites More sharing options...
TIPF Posted July 5, 2022 Author Share Posted July 5, 2022 5 minutes ago, Adriano Faria said: Upload the file to the same folder of conf_global.php via FTP: File uploaded, made no difference at all, the site is still not accessible.Β Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 5, 2022 Share Posted July 5, 2022 You better wait for someone from IPS to help you. TIPF 1 Link to comment Share on other sites More sharing options...
Solution TIPF Posted July 5, 2022 Author Solution Share Posted July 5, 2022 I've just checked and it seems I have several uploads of the conf_global.php file in various locations, tried again and I'm inΒ π Adlago 1 Link to comment Share on other sites More sharing options...
Mark H Posted July 5, 2022 Share Posted July 5, 2022 Glad to hear you got this resolved. π For future reference to others, there must be only one instance of conf_global.php, which has to be located in the software's main directory (where e.g. init.php, index.php, and error.php are also located).Β If constants.php is added, it also must be placed in the same directory. TIPF 1 Link to comment Share on other sites More sharing options...
Recommended Posts