You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing this down just in case someone is still using the pagequery plugin in combination with php 7.1+ and stumbles over the same issue.
The following issue is found in in the nginx error log, after accessing a page that has a pagequery in it with sorting by date (other pagequeries are not affected):
Root cause: PHP syntax has changed from 7.1+ onwards and now complains about declarations like $dkey = '';
Solution: change $dkey = ''; to $dkey = array(); -> error is gone
For more information on the background, just search the net for Uncaught Error: [] operator not supported for strings, and youo will get plenty results.
The text was updated successfully, but these errors were encountered:
I'm writing this down just in case someone is still using the pagequery plugin in combination with php 7.1+ and stumbles over the same issue.
The following issue is found in in the nginx error log, after accessing a page that has a pagequery in it with sorting by date (other pagequeries are not affected):
Root cause: PHP syntax has changed from 7.1+ onwards and now complains about declarations like
$dkey = '';
Solution: change
$dkey = '';
to$dkey = array();
-> error is goneFor more information on the background, just search the net for
Uncaught Error: [] operator not supported for strings
, and youo will get plenty results.The text was updated successfully, but these errors were encountered: