- Issue created by @the.lelik
My site also stopped working when installing this update. Every page including the maintenance pages displayed an almost blank page with an error about an unexpected ? (question mark). I'm new to this but I think it could be the same issue if your site is not set to display errors in the browser. I investigated and it turns out Multiupload Filefield Widget 7.x-1.14 uses a new operator in PHP 7, ?? (double question mark). My site has PHP 5.6.40 is installed, which is supported for Drupal 7 but no longer recommended (see https://www.drupal.org/docs/7/system-requirements/php-requirements → ). Since the old syntax was replaced with the new ?? operator in six places, I'm guessing the code was intentionally updated to the newer PHP syntax. I restored the previous version of this module to get the site working again until I can update PHP.
Should there be a note or requirement somewhere saying this module requires PHP 7 or newer? The operator could also be changed back if that was not intentional since it's basically just a shorter way to accomplish the same thing.
If anyone else is having this issue and uses an older version of PHP, I would recommend upgrading PHP to version 7 or newer.
I was also on PHP 5.6, I updated to 7.4 and it fixed it. Thank you!
- Status changed to RTBC
over 1 year ago 6:47pm 13 March 2023 Thank you for the patch witwar! I reviewed the code changes and can confirm that it changes the PHP 7 "a ?? b" syntax to the PHP 5 compatible "isset(a) ? a : b" syntax correctly according to the documentation. The proper expressions were copied to the correct part of the syntax. There may be a duplicate semicolon at the end of the first changed line 91 though it works with or without it as expected for an empty statement. Nothing else was changed.
I applied the patch and confirmed that my site now works with the patched version of 7.x-1.14 on PHP 5.6.40. It fixed the blank page issue.
-
VladimirAus →
committed daf03907 on 7.x-1.x authored by
witwar →
Issue #3345141 by witwar, VladimirAus: Site stop working after update...
-
VladimirAus →
committed daf03907 on 7.x-1.x authored by
witwar →
- 🇦🇺Australia VladimirAus Brisbane, Australia
I applied the patch, but if you received this error, this is a big security warning for your project. ☠️
Committed! - Status changed to Fixed
over 1 year ago 1:14pm 19 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.