Jump to content

Class Collection not found- Error in upgrade from prestashop 1.5.6 to 1.6


Recommended Posts

I have been trying to upgrade my website built on Prestashop 1.5.6 to 1.6 through the 1-Click-Upgrade module. 

 

Both my back office and front office are not working now and I am getting the following error.

 

Fatal error: Class 'Collection' not found in /public_html/classes/ObjectModel.php on line 1519

 

 

I have also deleted the cache/class_index.php but it didn't seem to work.

 

Please advice, what could be wrong.

 

Thank you so much!!

Link to comment
Share on other sites

This is the line of code from the error.  The problem is that this line of code comes from PS v1.5.6

$definition['associations'][Collection::LANG_ALIAS] = array(

In PS v1.6, the Collection class no longer exists. 

 

If I had to guess, you have some sort of server caching active.  And the old class objects are in the cache.  You will need to find some way of clearing whatever cache is being used.

Link to comment
Share on other sites

I cleared the cache manually by clearing the content of the following folders
 

cache/smarty/compile
 
cache/smarty/cache
 
img/tmp

 

 

But still am getting the same error.

 

Is there any change which I need to make in ObjectModel.php? Sending the ObjectModel.php file for your reference.

 

My technical knowledge is limited hence I need a little handholding.

 

Thanks so much

Edited by apatan (see edit history)
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...