Hopefully someone can help me here.
I have a custom php rule which runs and executes fine on hte dev server and has been doing so for the entire dev process. I just went live with the site and am now getting
PHP Parse error: syntax error, unexpected ';' in /srv/http/sites/all/modules/contrib/rules/rules/modules/php.rules.inc(107) : eval()'d code on line 8
The rule has a number of actions, the first two of which are executing fine with php custom actions to create a flag and create a view respectively. The action that causes the the error seems to be the third one which is supposed to create a rule. I have double checked the imported code and the php action is exactly the same on both servers, but only produces the error on the live server. I've also checked for misplaces semi-colons but can see nothing obvious.
I've attached an export of the rule and the offending action.
If someone has any ideas I'd be very grateful.
| Comment | File | Size | Author |
|---|---|---|---|
| rule_export.txt | 118.24 KB | looplog | |
| php_action.txt | 2.31 KB | looplog |
Comments
Comment #1
looplog commentedhmm, seem to have found the problem. got it working by using concatenation to replace the html_entity call. I think I was using the inline php wrong anyway...