Jump to content

Declaration of Upgrader::checkPSVersion()


Recommended Posts

Hi,

 

I have a prestashop in 1.6.0.14, with the last click and upgrade addon (1.6.7). In the setting page of this add on, i can not do the upgrade, because there is this message :

 

 
( ! ) Strict standards: Declaration of Upgrader::checkPSVersion() should be compatible with UpgraderCore::checkPSVersion($refresh = false, $array_no_major = Array) in C:\wamp64\www\orbans\override\classes\Upgrader.php on line 75
Call Stack
# Time Memory Function Location
1 0.0008 253544 {main}( ) ...\index.php:0
2 0.1872 12230152 DispatcherCore->dispatch( ) ...\index.php:54
3 0.3861 14194400 include_once( 'C:\wamp64\www\orbans\modules\autoupgrade\AdminSelfUpgrade.php' )
 
Does someone know why?
Link to comment
Share on other sites

try to add this function to your existing Upgrader override file located here...

/override/classes/Upgrader.php

    public function checkPSVersion($force = false)
    {
        $array_no_major = array('minor');
        $this->checkPSVersion($force, $array_no_major);
    }
Link to comment
Share on other sites

Found it !! In override/classes/upgrader.php, change for this :

 

public function checkPSVersion($force = false, $array_no_major = array('minor'))
 
{
 
$dont_show_notif_prestashop_version = 1;
 
if($dont_show_notif_prestashop_version == 1 && false)
 
return false ; 
 
else
 
return parent::checkPSVersion($force,$array_no_major);
 
}
 
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...