Jump to content

Error After Upgrade


TIPF
 Share

Go to solution Solved by TIPF,

Recommended Posts

Posted (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 by TIPF
Link to comment
Share on other sites

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

Posted (edited)
4 minutes ago, TIPF said:

Wouldn't know where to start.

Constant - RECOVERY_MODE
Use - Used for recovery of the system when failure occurs in 3rd party items, preventing ACP access
Example value - TRUE

 

Add:

<?php
\define('RECOVERY_MODE','TRUE');

Edited by nodle
Link to comment
Share on other sites

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

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

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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...