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: syntax error, unexpected '=', expecting ')' on line 566

Parse error: syntax error, unexpected '=', expecting ')' on line 566

Hey !

Metamod was exactly what I needed for my website : a module that can identify the author of the article and display a "WHO IS HE"...

Works great on local but since I uploaded my joomla site on the web hosting service, I got this message :

Parse error: syntax error, unexpected '=', expecting ')' in /.../modules/mod_metamod/helper.php on line 566

The incriminated lines seems to be :

Code:

function displayModules(&$all_mod_array, &$params, $attribs = array(), &$changeCache = null) {


        if (is_array($all_mod_array) && count($all_mod_array)) {

            $app    =& JFactory::getApplication();
            $db     =& JFactory::getDBO();
            $user     =& JFactory::getUser();
            $aid    =  $user->get('aid', 0);

            $quoted_mod_identifiers = modMetaModHelper::quotedEscapedListFromModuleArray( $db, $all_mod_array );

However, I am not a php pro... i fact I don't know anything...
So... If you can help me out on this one, it would be great.
I still can disable the module, but it would be a pity...

Thanks

Vinny

vinny38
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

http://www.metamodpro.com/forums/topic?id=76
Read the first answer, I have the same problem. Not yet solved, though.

Tasty
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

Hey!
thanks for answering.
I can't really figure out if it's the same problem or not...
That would mean i should forget about metamod module... :-(

vinny38
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

Hi Vinny,

yes, it's the same issue. In the last release of MetaMod I unwittingly put in some code that is specific to PHP5. My main testing machine is now PHP5 so I didn't notice it. I'll be releasing an update without this problem on Monday.

Sorry!
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
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

Hi Stephen

Thanks for your answer.
why sorry ?? It is great news you will release an update on Monday !!!
I'll wait for it !!

Thanks a million
keep up with the great job

vinny38
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

MetaMod 2.2 has been released, which is now PHP4 compatible again.

http://www.metamodpro.com/get-started/download

Have fun!

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
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Parse error: syntax error, unexpected '=', expecting ')' on line 566

YEAAAH

works great !!!

Thanks again Stephen

vinny38
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
271

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