0
votes

i upgraded my Concrete 5.7 website from php 5.6.x to 7.0.4 and get the folowing error

 {"error":{"type":"Whoops\\Exception\\ErrorException","message":"Cannot use 'Null' as class name as it is reserved","file":"\/usr\/share\/nginx\/html\/concrete\/vendor\/zendframework\/zend-queue\/library\/ZendQueue\/Adapter\/Null.php","line":24,"trace":[{"file":"\/usr\/share\/nginx\/html\/concrete\/vendor\/zendframework\/zend-queue\/library\/ZendQueue\/Adapter\/Null.php","line":24,"function":null,"class":null,"args":[]}]},"errors":["Cannot use 'Null' as class name as it is reserved"]}

the function that trigger this is a concrete 5 function itself.

What can i do to fix this?

PHP 7.0.12-1+deb.sury.org~trusty+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.12-1+deb.sury.org~trusty+1, Copyright (c) 1999-2016, by Zend Technologies

1
Rename the class.user557846
This is why you should use a proper IDE when you write code. It would have told you that Null is a reserved word in PHP. It has nothing to do with Concrete 5.Magnus Eriksson
@MagnusEriksson Eriksson the stuff that makes this error is in the Concrete5 base folder i didnt change anything there. if it would be my class i just would rename it like Dagon said "file":"\/usr\/share\/nginx\/html\/concrete\/vendor\/zendframework\/zend-queue\/library\/ZendQueue\/Adapter\/Null.php"Burak Topal
@CD001 - Yepp... and it's a known compatibility issue: github.com/zendframework/ZendQueue/issues/25Magnus Eriksson
@MagnusEriksson - heh, you'd think Zend (the PHP people) would know what they're doing... they must have had an inkling naming a class Null was a probably a bad idea.CD001

1 Answers

0
votes

The solution is to upgrade your concrete5 installation to a current version.