Closed (works as designed)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2013 at 07:40 UTC
Updated:
30 Jul 2013 at 19:06 UTC
Hi, Just downloaded mb. Get the following error from the command below:
aegir@xyz:...$ drush mb clockmein menu cron --write
Parse error: syntax error, unexpected T_STRING in .../module_builder/Task/Generate.php on line 8
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: syntax error, unexpected T_STRING in .../module_builder/Task/Generate.php, line 8
Downloaded 30th July, 2013 @ around 8:30am BST
Comments
Comment #1
mshepherd commentedsame error when accessing admin/modules/module_builder
Comment #2
joachim commentedI've recently added use of namespaces to Module Builder, and that's what your system is choking on.
Namespaces are new to PHP 5.3. What version of PHP are you using?
Comment #3
mshepherd commentedAh, 5.2.
Little chance of upgrading in the immediate future.
Comment #4
joachim commentedPHP 5.2 has been unsupported since 6 Jan 2011... http://www.php.net/eol.php
You can roll back to commit 171de59665ea497d7f2dcfcb52e2ec0b5c0e3537 -- that's the last one before I added namespaces.
Comment #5
mshepherd commentedThanks for the tip.