[SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Need help with the Administration of your Joomla! 1.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
jaw5623
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Aug 17, 2010 6:26 am
Location: Jeddah, Saudi Arabia

[SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by jaw5623 » Tue Aug 17, 2010 6:38 am

Hello everyone,

I am fairly new to Joomla! and have been working on setting up a site for the last few days. As luck would have it, right after I had finished putting the final touches on everything, I went in and mass activated the plugins (a bad idea?) and now the site has completely crashed. So, now whenever I try to get to any page on the site (front end or back end), I get the following:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in .../plugins/system/mtupgrade/behavior.php on line 52
I went in and looked at line 52 of behavior.php and it reads (in bold):
}

// If no debugging value is set, use the setting from the application configuration.
if ($debug === null) {
$debug = JFactory::getConfig()->getValue('config.debug');
}
Does anyone have any idea what this problem is and -- more importantly -- how to resolve it? Also, in case I need to reinstall Joomla! (please don't let it be so), is there a way to back-up all the articles that I had worked on (ideally with the formatting)?

Thank you for your help!

Sincerely,

Jacques
Last edited by jaw5623 on Tue Aug 17, 2010 10:16 am, edited 2 times in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30932
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: syntax error, unexpected T_OBJECT_OPERATOR

Post by Per Yngve Berg » Tue Aug 17, 2010 6:51 am

Use PhpMyadmin and goto the table jos_plugins and set published=0 on the plugin

jaw5623
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Aug 17, 2010 6:26 am
Location: Jeddah, Saudi Arabia

Re: syntax error, unexpected T_OBJECT_OPERATOR

Post by jaw5623 » Tue Aug 17, 2010 7:31 am

Per Yngve Berg wrote:Use PhpMyadmin and goto the table jos_plugins and set published=0 on the plugin
Hello and thank you so much for the quick reply!

I have logged on to phpMyAdmin and I found the jos_plugins table. I have searched around a bit, but I am not where to set published=0. I am attaching a screen shot for your reference.

Thanks again.

Jacques
Last edited by jaw5623 on Tue Aug 17, 2010 8:19 am, edited 1 time in total.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30932
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: syntax error, unexpected T_OBJECT_OPERATOR

Post by Per Yngve Berg » Tue Aug 17, 2010 7:50 am

Click the browse tab!

jaw5623
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Aug 17, 2010 6:26 am
Location: Jeddah, Saudi Arabia

Re: syntax error, unexpected T_OBJECT_OPERATOR

Post by jaw5623 » Tue Aug 17, 2010 8:25 am

Per Yngve Berg wrote:Click the browse tab!
Aha! It was the "System - Mootools Upgrade" plugin that crashed everything.

Thank you again so much for your help!

Best regards,

Jacques

sony1980
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Sep 24, 2010 9:30 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by sony1980 » Fri Sep 24, 2010 9:37 pm

hello

I have the same problem

but I haved installed joomla on the server (alfahosting) how can I see the table jos_plugin? I only know how to use phpmyadmin locally..please help

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30932
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by Per Yngve Berg » Sat Sep 25, 2010 8:40 am

phpmyadmin is usually available in your hosts cpanel. If not, ask your host.

sony1980
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Sep 24, 2010 9:30 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by sony1980 » Sat Sep 25, 2010 2:18 pm

thank you so much, but i have another question before I do anything wrong.
I wrote SELECT *
FROM `jos_plugins`
WHERE published !=0
I have got 24 datasets : eg. names = Authentifikation - Joomla, Authentifikation - LDAP, .. System - SEF should I set in all of them published=0

sorry, but I want to be sure before I do another mistake..

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30932
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by Per Yngve Berg » Sat Sep 25, 2010 9:21 pm

You cannot unpublish al of them. If you unpublish the Authentication - Joomla, you will not be able to login.

bigone5500
Joomla! Intern
Joomla! Intern
Posts: 78
Joined: Wed Nov 17, 2010 9:29 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by bigone5500 » Tue Nov 23, 2010 12:35 am

Thanks for this thread!

However I am wondering why enabling this plugin crashes joomla. Is there a reason? Is there a fix?

ShannonMCD
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Nov 10, 2010 5:43 am

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by ShannonMCD » Sun Nov 28, 2010 9:44 am

had same problem now fixed thanks to this information so wanted to say thanks..

So Thanks alot...

the-javier
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 23, 2010 5:18 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by the-javier » Thu Dec 23, 2010 5:23 pm

excuse ......
I have the same problem (Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ... / plugins / system / mtupgrade / behavior.php on line 52).
I can only come to my site by ftp. how can I fix my mistake through FTP?
I appreciate any help from you ....

User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4189
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by abernyte » Thu Dec 23, 2010 6:40 pm

The answer is in the previous posts. Use phpMyAdmin from your Host's Control Panel and open your database. Open jos_plugins and set the plugin System - Mootools Upgrade to 0 (unpublished)
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine

the-javier
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 23, 2010 5:18 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by the-javier » Thu Dec 23, 2010 7:46 pm

thank you ...
you are very efficient, I'll do that and be with God ....
have a happy Christmas and new year full of victories and prosperity .....
Until the view.
;D :pop :)

the-javier
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Dec 23, 2010 5:18 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by the-javier » Wed Dec 29, 2010 5:04 pm

hello ....
well I did in my host's phpMyAdmin, Control Panel and open the database. Jos_plugins Open and set the plugin System - Upgrade to mootools 0 (not published) and nothing happened ....
I do not know what could have happened .... and already had a lot of information placed on my website, can I recover some information?
Meanwhile I'll be waiting anxiously for a reply, but thanks for your help in all ways ....

User avatar
cybervigilante
Joomla! Explorer
Joomla! Explorer
Posts: 493
Joined: Mon Apr 23, 2007 11:59 pm
Location: Apache Junction, AZ
Contact:

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by cybervigilante » Wed Jan 26, 2011 10:50 pm

Which field do I set to published=0. there are a bunch of them. I have the latest Joomla 5 and latest joomfish. I set authentication to 0, but is that the one I unset?

There is no mootools upgrade in the table, so that's not the problem.
Arguing with trolls is like watering bricks and expecting flowers.

avijit4all
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 03, 2011 2:45 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by avijit4all » Thu Feb 03, 2011 2:51 pm

if you have only ftp or the plugin file is not in the database..
simply delete the folder in
/plugins/system/mtupgrade

or rename it...

rochdalemark
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Dec 31, 2007 12:48 pm
Contact:

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by rochdalemark » Sun Feb 06, 2011 11:01 am

Thats fine for removing the error. But is there a fix for this issue. Obviously were trying to install mtupgrade for a reason, or were using a site shaper that requires it etc.
So rather than getting rid of the offending plugin, is there a fix for the plugin so that it runs with php4?

avijit4all
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 03, 2011 2:45 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by avijit4all » Sun Feb 06, 2011 11:13 am

use php 5 version..
this should solve it..

rochdalemark
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Dec 31, 2007 12:48 pm
Contact:

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by rochdalemark » Sun Feb 06, 2011 11:32 am

Not really a solution that I can run with, Hosting is already paid for. I also have a number of domains already hosted with them. So migration is not really feasible for me Im afraid.
I need to know if there is a fix, edit or workaround for my current situation to get mtupgrade to work on a site with php 4.

avijit4all
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Feb 03, 2011 2:45 pm

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by avijit4all » Sun Feb 06, 2011 11:51 am

use akeeba component to shift hosting..
its very easy to use akeeba..
takes backup..
restore it..
joomla migration in 20 mins

rochdalemark
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Dec 31, 2007 12:48 pm
Contact:

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by rochdalemark » Sun Feb 06, 2011 12:08 pm

Like I say, as my hosting is already paid for etc, I dont want to have to migrate. Im looking for a fix for the problem if one exists.

User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4189
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by abernyte » Sun Feb 06, 2011 1:28 pm

Joomla 1.5 is not certified to work with php4. It's 5.2+ I am afraid.
http://www.joomla.org/about-joomla/tech ... ments.html
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by brian » Sun Feb 06, 2011 1:46 pm

@rochdalemark php4 is dead. it was officially discontinued by php themselves a long time ago. Any web host that only offers php4 support is clearly a web host that does not care about its customers. Have you spoken to your hosts about this. Many hosts have a simple flip-switch for you to change between php4 and php5
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

amgadmust
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Feb 09, 2011 4:48 am

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by amgadmust » Wed Feb 09, 2011 5:47 am

I appreciate your help. THANKS

DavidVavich
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Jun 12, 2008 2:18 am

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by DavidVavich » Thu May 19, 2011 4:02 pm

I found a fix that worked for me on another site. My host supports BOTH php4 and php5 and even though I have my account set to use php5 by default that does not trickle down to my resold accounts.

Long story short I added the following to my .htaccess file:

Code: Select all

AddHandler application/x-httpd-php5 .php
and it started working instantly.

User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4189
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Re: [SOLVED] syntax error, unexpected T_OBJECT_OPERATOR

Post by abernyte » Thu May 19, 2011 4:58 pm

Thanks for sharing.
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine


Locked

Return to “Administration 1.5”