PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/clients/websites/w_ksv2b1/public_html/ksv2b1/profiles/commerce_kickstart/modules/contrib/message_notify/message_notify.module on line 75

I tried different ways to get around this when setting up *commerce_kickstart v2-beta02*

* installing fresh — unsuccessful because of this
* installing beta01 then upgrading code to beta01 — WSOD because of this
* on PHP 5.2 — WSOD
* on any other PHP 5.3 environment — WSOD

This error is persistent on drush (e.g. `drush st`) and also listed many lines in the apache error_log

With this persistent error (install / post-install) ... this makes beta01 more stable than beta02

Comments

Zem’s picture

http://drupal.org/node/1734808 provided the solution that works for me.

Changed line 75 in profiles/commerce_kickstart/modules/contrib/message_notify/message_notify.module
from

$view_modes = $class::viewModes(); // Breaks PHP 5.2 compatibility.

to

$view_modes = call_user_func(array($class, 'viewModes'));

This issue is fixed in the latest dev version of message notify

leonblueeyes’s picture

It works for me too. You save me a lot of my time. Thank you very much!!!

catalin.anghelache’s picture

Thanx.

bojanz’s picture

Status: Active » Closed (duplicate)