Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Parse Error

Parse Error

Getting the following error when opening my article editor.

Whoops \ Exception \ ErrorException (E_PARSE)
syntax error, unexpected '=', expecting ')'
1722.        // get results from php script
1723.       $result = eval( ' ' . $php . ' ' );

There was a previous forum post about this but it was concerning PHP4-PHP5 incompatibility. We are using PHP5. We just did a bunch of updates but we tested them on a sandbox server first (same box, different domain) and this didn't happen to that.

nharroff
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Parse Error

Also, it is coming from Joomla_3/components/com_chameleon/helper.php1723.

nharroff
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Parse Error

Hi,

thanks for your message. It's an odd problem.
There could be 2 issues combining here:
1 - "opening an article editor". Is this front end or back end? If back end, then Chameleon shouldn't be triggering at all. If front end, then I expect it's an AJAX call that's being intercepted. Generally Chameleon manages to avoid being triggered by AJAX calls. It's not necessarily a problem - that can in fact be useful - but it would be interesting to know which call is triggering it.

2 - since the error is occurring within evaluated PHP, this can only happen if your PHP code in a Chameleon rule is actually malformed. Can you examine the PHP tab inside each of your rules, and paste the contents of that PHP code into the forum here? One of those rules will have some malformed PHP.

Thanks
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Re: Parse Error

Ah! First off, yes, it was on the front end. I started to go through our rules and look for php that was wrong. I found this line in one of the rules:

"capellc.cape.k12.me.us"=array("LLC"),
and changed it to this
"capellc.cape.k12.me.us"=>array("LLC"),

Problem solved. Thank you for the nudge in the right direction.

nharroff
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Parse Error

:-) Glad you found it - happy to help out.

Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3314 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1691
Total Polls:
6
Total Posts:
5912
Total Posts Today:
6
User Info:
 
Total Users:
11515
Newest User:
velis415
Members Online:
0
Guests Online:
228

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked