Page 1 of 1

Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 02:27
by fw115

Code: Select all

[Mon Jan 22 01:25:46.948784 2018] [fcgid:warn] [pid 30640] [client 192.168.0.31:52010] mod_fcgid: stderr: PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /var/www/clients/xxxxxx/administrator/components/com_phocacart/libraries/phocacart/pagination/pagination.php on line 41

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 13:08
by fw115
Hello ?

can you confirm this ? are you working on it ? Some infos would be nice , because the shop does not work and i am afraid to go back to 3.02 that would maybe cause more issues .

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 15:57
by Jan
Hi, which PHP version do you run?

Please open the file:
administrator/components/com_phocacart/libraries/phocacart/pagination/pagination.php

and on line 41
change
FROM:

Code: Select all

public static function getMaximumLimit(int $limit) : int {
TO:

Code: Select all

public static function getMaximumLimit($limit) {
I will change it in the same version
Jan

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 16:26
by fw115
Hi Jan,

Code: Select all

php -v 
PHP 5.6.33-0+deb8u1
Thank you.

PHP switch to PHP 7 is scheduled here in Feb 2018

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 16:59
by Jan
Did the change fix the problem?
PHP switch to PHP 7 is scheduled here in Feb 2018
Yes, this was an error, fixed to work with PHP 5.

Jan

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 17:19
by fw115
Hi Jan, sorry forgot to mention that: Yes the fix worked. So Thank you

Re: Syntax error in pagination.php on line 41 after Update to 3.03

Posted: 22 Jan 2018, 18:16
by Jan
Ok, thank you.