-3

I recently updated PHP version of my PHPlinkdirectory to latest version, but after updating it I started getting following error. I instantly changed the new version to the old but the error still exits.

The PHP is running on version 5.4.

Strict Standards: Only variables should be assigned by reference in /home/domain/public_html/init.php on line 275

Strict Standards: Non-static method SmartyPaginate::connect() should not be called statically in /home/domain/public_html/index.php on line 688

Strict Standards: Non-static method SmartyPaginate::getTotal() should not be called statically in /home/domain/public_html/libs/smarty/SmartyPaginate.class.php on line 51

Strict Standards: Non-static method SmartyPaginate::getUrlVar() should not be called statically in /home/domain/public_html/libs/smarty/SmartyPaginate.class.php on line 52

Strict Standards: Non-static method SmartyPaginate::disconnect() should not be called statically in /home/domain/public_html/index.php on line 693

Strict Standards: Non-static method SmartyPaginate::reset() should not be called statically in /home/domain/public_html/index.php on line 694

Strict Standards: Non-static method SmartyPaginate::setPrevText() should not be called statically in /home/domain/public_html/index.php on line 696

Strict Standards: Non-static method SmartyPaginate::setNextText() should not be called statically in /home/domain/public_html/index.php on line 697
halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

I think it is not about PHP version. You are calling a normal function like it is static but it is not.

You can try to way in here:

public static function connect() {

}

or you can call function like this:

$paginate = new SmartyPaginate;
$paginate->connect();
$paginate->getTotal();
  • you can call a method that's not static using `::` e.g. (`parent::method`) - problem may be elsewhere .. hard to be definitive without seeing code – treyBake Oct 19 '18 at 08:16