Jump to content

Fatal Error /vendor/prestashop/autoload/src/Autoloader.php


willump

Recommended Posts

Hello, I get this error when I enter maintenance mode (some addons give me a 500 error, so I tried to understand what was causing it). Do you know a solution to this error?

The error seems not to be linked to the addons but to the prestashop files

67a327af402bf.png

Link to comment
Share on other sites

2 minutes ago, Ewonta said:

You probably have a cache and it wants to find the file. Validate.php

Just add the file Validate.php at the address

/override/classes/Validate.php

And try it

where i can download this file?

 

Link to comment
Share on other sites

The validate file Validate.php you have downloaded from willump is not valid because it does not contain any validate class function.

The system does not only need to find the validate.php in override/classes/ but also needs to find the Validate Class function written in it.

So, if you get the fresh Prestashop installation you will notice a Validate.php file in the yourdomain/classes/Validate.php.

If you do not see it, I think this is a problem.

But from what you write, you do not see it in yourdomain/override/classes/Validate.php.

Not having that file in that path is not something bad, I do not have it.

But the error tells that probably you have a module that override the normal Validate.php with the proper override file in the override directory.

 

Maybe you should copy the Validate.php you have in your classes path with FTP, put it in override/classes/ and see if something changes.

And, you should find out which module is calling Validate.php in override, maybe disabling modules one by one or disabling all and enabling one by one.

 

 

  • Thanks 1
Link to comment
Share on other sites

1 hour ago, heyciao said:

The validate file Validate.php you have downloaded from willump is not valid because it does not contain any validate class function.

The system does not only need to find the validate.php in override/classes/ but also needs to find the Validate Class function written in it.

So, if you get the fresh Prestashop installation you will notice a Validate.php file in the yourdomain/classes/Validate.php.

If you do not see it, I think this is a problem.

But from what you write, you do not see it in yourdomain/override/classes/Validate.php.

Not having that file in that path is not something bad, I do not have it.

But the error tells that probably you have a module that override the normal Validate.php with the proper override file in the override directory.

 

Maybe you should copy the Validate.php you have in your classes path with FTP, put it in override/classes/ and see if something changes.

And, you should find out which module is calling Validate.php in override, maybe disabling modules one by one or disabling all and enabling one by one.

 

 

i have tried to copy Validate.php from classes to override/classes but the error persist.

Is there a way to identify which addon is responsible for the error without disabling them?

Link to comment
Share on other sites

I have read you log error, I do not know if that is a module.

How have you cleared the cache?

4 hours ago, willump said:

if i enter in debug mode, this is the error

Screenshot_359.png

Why this error is different from the first? In Shop.php cannot find the validate class. But also other php files are involved.

It does not say Validate.php is missing, it is saying that the class Validate is not found.

Do you have a complete error log? What is happening, if I go to the website i see the error? paste the url please.

Link to comment
Share on other sites

15 hours ago, heyciao said:

I have read you log error, I do not know if that is a module.

How have you cleared the cache?

Why this error is different from the first? In Shop.php cannot find the validate class. But also other php files are involved.

It does not say Validate.php is missing, it is saying that the class Validate is not found.

Do you have a complete error log? What is happening, if I go to the website i see the error? paste the url please.

I have cleared the cache, multiple times.

The error shown before appears when i enter in debug mode.

If i go into logs i found this.

You could see the error only if you enable debug mode (what you see in the screenshot is all there is), but I can't leave the shop in this state because we have active Google Ads campaigns and are currently working on it.

Screenshot_362.png

Link to comment
Share on other sites

Ciao allora, una cosa simile, quando ho debug attivo è capitata anche a me in un sito per il quale non ne sto venendo a capo.

Io ho delle iniezioni, mi trovo un file png in /img periodicamente che cancello, perchè è in realtà un javascript codificato base64.

VIene caricato da /classes/controller/Controller.php e/o FrontController.php e cambia le cose.

Periodicamente sostituisco i due files con gli originali.

Oggi, in debug mode, su un modulo mi è apparso in chiaro questo errore nel backend, così me lo studio.

A te consiglio vivamente di fare un controllo su tutto il sito di questo tipo:

COn un FTP client tipo Filezilla, ha il tuo sito online nel riquadro a destra, mentre a sinistra hai i files in locale.

Scarica una versione di Prestashop fresca che è della identica versione del tuo sito.

Abilita la comparazione files e cartelle e la navigazione sincronizzata e controlla ogni directory.

Questo ti permette di verificare quando le directory o i files sono diversi. Se trovi files diversi tra loro in locale e online, allora devi scaricare il file in locale (in un altro luogo, senza sovrascrivere l'originale) e usare uno strumento di comparazione file, tipo meld.

Così verifichi in quali righe sono diversi.

 

Non saprei, spero questo ti aiuti. In questo modo io ho trovato innumerevoli errori che ho risolto.

Il fatto che ti capiti questo merita un indagine molto più approfondita. Da quando ti capita. Che versioni hai. Quali moduli hai attivi.

 

 

Lo scrivo anche in inglese nel caso nel forum non sia corretto scrivere in italiano, ma ho intuito che sei italiano quindi per andare più veloce.

Hi then, a similar thing, when I have active debugging, also happened to me on a site for which I'm not getting the hang of it. I have some injections, I find a png file in /img which I periodically delete, because it is actually a base64 encoded javascript. It gets loaded from /classes/controller/Controller.php and/or FrontController.php and changes things. Periodically I replace the two files with the originals. Today, in debug mode, this error appeared clearly on a module in the backend, so I'm studying it. I strongly advise you to check the entire site like this: With an FTP client like Filezilla, it has your online site in the right pane, while on the left you have local files. Download a fresh Prestashop version that is the identical version of your site. Enable file and folder comparison and synchronized navigation and check each directory. This allows you to check when directories or files are different. If you find different files locally and online, then you need to download the file locally (in another location, without overwriting the original) and use a file comparison tool, such as meld. So you can check which lines are different. I don't know, hope this helps you. In this way I found countless errors that I solved. The fact that this happens to you deserves a much deeper investigation. Since when does it happen to you. What versions do you have. Which modules do you have active.

 

Link to comment
Share on other sites

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...