Apache 500 error with 7.x-3.2

Created on 27 February 2023, over 1 year ago
Updated 21 June 2023, about 1 year ago

Problem/Motivation

After upgrading Drupal 7 via drush, my site went down with Apache 500 error.
Drupal 7.94
PHP 7.2.31
Weight 7.x-3.2

Lots of troubleshooting led me to this error on the update page:
Parse error: syntax error, unexpected '?' in /var/www/virtual/rapidwords.net/htdocs/sites/all/modules/weight/weight.install on line 39

Deleting weight module directory and replacing with 7.x-3.1 immediately resolved the issue.
I'm not a programmer -- just reporting what happened.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dhigby

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

Comments & Activities

  • Issue created by @dhigby
  • First commit to issue fork.
  • @vladimiraus opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Please test the patch.

  • πŸ‡ΈπŸ‡°Slovakia poker10

    @dhigby are you sure you are on PHP 7 and higher? That error seems like a PHP 5 error, where the null coalescing operator was not present. It was added in php 7.0.

    I have tested the expression and it does not throw an error for me in PHP >= 7.0.

  • πŸ‡ΊπŸ‡ΈUnited States dhigby

    @poker10 I apologize. I recently discovered that the webserver is still running a version of PHP 5, but I was fooled because PHP -v reports 7.2 I've asked the admin to fix this and will try to activate the module again.

Production build 0.69.0 2024