Islandora-Collaboration-Group / islandora_webform

islandora_webform
GNU General Public License v3.0
6 stars 8 forks source link

500 error enabling Islandora Webform Embargo #54

Open bondjimbond opened 4 years ago

bondjimbond commented 4 years ago

Trying to enable Islandora Webform Embargo, I get a 500 error. Apache logs show:

[Wed Apr 08 14:27:53.221241 2020] [:error] [pid 6007] [client 10.0.2.2:54695] PHP Parse error: syntax error, unexpected '?' in /var/www/drupal/sites/all/modules/islandora_webform/submodules/islandora_webform_embargo/islandora_webform_embargo.module on line 25, referer: http://localhost:8000/admin/modules

Problem code is here: https://github.com/Islandora-Collaboration-Group/islandora_webform/blob/7.x/submodules/islandora_webform_embargo/islandora_webform_embargo.module#L25

noahwsmith commented 4 years ago

Looks like a PHP 7 function. @emudojo will look into a patch for old PHPs.

noahwsmith commented 4 years ago

@bondjimbond patch: https://github.com/Islandora-Collaboration-Group/islandora_webform/pull/56