Jump to content

Compile Error


SpyCraft3r

Recommended Posts

Hi everyone, I hope you guys can help me.

I am getting the following error when trying to access the backend:

Compile Error: Declaration of AdminDashboardControllerCore::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false)

[Symfony\Component\Debug\Exception\FatalErrorException 0]

I am using the most current version of PS (1.7.7.4) and PHP 7.4 (Apache).

I have done much research on this topic and most posts tell me to downgrade my PHP version to 7.0 or 7.1 to fix the error I receive, however the following happens with each PHP version

Version 7.0

Website totally will not operate because 7.0 is obsolete

Version 7.1

500 page error and cannot access my site

Version 7.2

Can't access site at all

Version 7.3 to 7.4

Can access the backend but difficult to login but still receive the error when trying to access the Dashboard, from what I can work out the error happens when trying to access my admin folder via https://www.mywebsite.com.au/admin-folder.

Most of the information I have found is dating back as far as 2017 I am surprised that I am still getting the error after all this time. I hope someone can help.

Link to comment
Share on other sites

Hi everyone,

After some more research I have managed to fix the error, just incase this helps someone else, what I did is below:

After installing PHP 7.1 I realised I had only installed the PHP version without the extensions, I went back in to my WHM and looked at the extensions in PHP version 7.4. I then wrote all of the extension in 7.4 on paper, then cheched version 7.1 and realised that most extensions erre not installed soI installed the same extension as 7.4 in to 7.1.

After this I looked at the Prestashop System requirements to check that I had everything installed, I noticed that I didn't have the allow_url_fopen enabled enable either, after doing this my problems have gone and I am now on PHP version 7.1 and everything is running smooth.

As I run my own web server through WHM, other people will have to see their provider to see if they have everything installed and enabled.

Link to comment
Share on other sites

  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...