Closed (fixed)
Project:
PHP-Nuke to Drupal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2010 at 18:27 UTC
Updated:
26 Nov 2010 at 10:00 UTC
Enabled all required modules for migration, then enabled phpnuke2drupal mod and immediately came into a syntax error:
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /sites/all/modules/phpnuke2drupal/phpnuke2drupal.module on line 456
Any help is appreciated!
Comments
Comment #1
manumad40 commentedJust change the line 456:
$class::execute($context);Into:
$operation = new $class($context, $step = 20);When the error happened to me, my PHP was 5.2.12 and I think that this version is not compatible with the syntax into that line.
Hope this helps!
Comment #2
jonhattancommited thanks.
http://drupal.org/cvs?commit=404806
Comment #4
jimahuja commentedPrefer to use the PHP function call_user_func() to call the function of the classes. Refer to the http://php.net/manual/en/function.call-user-func.php for detailed usage of function.