Site stop working after update module

Created on 1 March 2023, over 1 year ago
Updated 19 April 2023, over 1 year ago

after installing the update of this module, my site stopped working. all pages of the site are displayed as blank

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 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!

  • Thank you! How i can install this patch?

  • 🇹🇷Turkey rgnyldz

    Thanks for the patch, will this be commited soon?

  • Status changed to RTBC over 1 year ago
  • 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.

  • 🇨🇦Canada ianabc

    Works for us. Thank you!

  • 🇦🇺Australia VladimirAus Brisbane, Australia

    I applied the patch, but if you received this error, this is a big security warning for your project. ☠️
    Committed!

  • 🇦🇺Australia VladimirAus Brisbane, Australia
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024