×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Parse error: syntax error, unexpected T_OBJECT_OPE

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 3 months ago #2413

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I am trying to get Joomla comment to only appear on some of the articles of the page. When I go to manage content settings I get the following:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/losha3/public_html/administrator/components/com_comment/toolbar.comment.html.php on line 29

Any ideas how to fix this? This happens when I go to "manage comments", and when I go to "Comment Settings"

Thanks for your help. I am using Joomla! 1.5.9

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 3 months ago #2415

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Which version of !jocomment? Hopefully not 4.0 alpha :)

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2523

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
3.26 is the version I just uploaded. I had a real hard time installing it over the last version of Jcomment I had so I finally just deleted the mysql data and tables, plus uninstaLLed the program and finally was able to load the latest 3.26. However, now when I click on Components>>!JoomlaComment>> any thing I select from that drop down list gets the same parse error.

Thanks for any help.

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2542

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
were you using ako comment?

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2584

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I don't think so. What is that?

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2585

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I see what it is.... No the only comment component I have ever used is joomla comment. It eworked fine until I updated to Joomla 1.5.9 then my commentw went crazy. That is why I updated to the latest joomla comment

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2588

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Sorry, I didn't understand you.
Is it working now or not?

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2611

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
No, it is still not working. I just was not sure what you were talking about when you spoke of ako comment. Then I did a Google search and figured out what you were asking.

Anyway, I still have the problem and I have never used any other comment component on my Joomla site. I really liked the last incarnation and I like this one as well except I am unable to set any perameters due to the parsing error. Sorry for the confusion. What are my options? (Please don't say I have to delete and reload)

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2612

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
May I get admin account and ftp access??

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2621

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I PMed you the info. Let me know what you find out. Many thanks in advance.

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 2 months ago #2623

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I didn't understand what for is the first web site you sent me in your PM.
Anyway, your backend is working now. I just uncommented the line that was causing the troubles and it is working.
I've changed:
function existsAkoTable() { JFactory::getDBO()->setQuery(); } [code] to [code] function existsAkoTable() { $database = JFactory::getDBO(); $database->setQuery(''); } [code] The above code seems to make problems with your PHP version 4.4.9 Is there anyone with the same PHP version out there? I would like to know if it is a common problem. Thanks.[code]
function existsAkoTable()
{
JFactory::getDBO()->setQuery();
}
to [code] function existsAkoTable() { $database = JFactory::getDBO(); $database->setQuery(''); } [code] The above code seems to make problems with your PHP version 4.4.9 Is there anyone with the same PHP version out there? I would like to know if it is a common problem. Thanks.[code]
to
function existsAkoTable() { $database = JFactory::getDBO(); $database->setQuery(''); } [code] The above code seems to make problems with your PHP version 4.4.9 Is there anyone with the same PHP version out there? I would like to know if it is a common problem. Thanks.[code]
function existsAkoTable()
{
$database = JFactory::getDBO();
$database->setQuery('');
}
The above code seems to make problems with your PHP version 4.4.9 Is there anyone with the same PHP version out there? I would like to know if it is a common problem. Thanks.[code]

The above code seems to make problems with your PHP version 4.4.9

Is there anyone with the same PHP version out there? I would like to know if it is a common problem. Thanks.

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 1 month ago #3190

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Thanks for the help and sorry for the delay. I have been busy. Everything seems to be working fine now.

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 1 day ago #3931

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
If you are interested to know why this code doesn't work with php4 look here
compojoom.com/blog/8-news/71-system-requirements.html

Parse error: syntax error, unexpected T_OBJECT_OPE 15 years 20 hours ago #3942

  • David
  • David's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
I need too get with my host then because as I understand it, I am using php 5, or at least it says so. Thanks for the "heads-up".

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 11 months ago #4144

  • blair
  • blair's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
I am having the same issue. Probably for the same reason. According to my host i am using php5 but this is the second php version info issue i have had.

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 11 months ago #4157

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey blair, What do you mean with "second php version info issue I have"?

Did changing the code to
$database = JFactory::getDBO();
$database->setQuery('');
helped you?

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 10 months ago #4802

  • Sara
  • Sara's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Yup... I had the same error.

Changed that bit of code and it seems to have remedied the issue.

php version 4.4.9

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 10 months ago #4803

  • blair
  • blair's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Ah sorry i didn't get back to you. I actually didn't change the code. I am on a shared host like so many others. I use lunar pages. I guess they have to enable php 5 on the system. Once they do that it all worked fine for me. So in other words they say its php 5 but only for people who request it. SO you might need to contact your provider.

What i meant was i had another component literally say. "We told you you had to uses php5 or better." when i tried to configure it. So then i had this issue also. So david call your host, or if you go into your control panel there was a way to enable it there as well, at least for me.

But thanks for you help guys!

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 10 months ago #4814

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey blair, thanks for the feedback. So to all of you having the same error - php5 is the solution or changing the code!

Parse error: syntax error, unexpected T_OBJECT_OPE 14 years 10 months ago #4850

  • Alex
  • Alex's Avatar
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 39
  • Thank you received: 0
I have the same issue on 4.0alpha3.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/aivanov/public_html/gorbostroyka/administrator/components/com_comment/toolbar.comment.html.php on line 29

Sorry if I'm a bit slow, which exactly file do I need to modify???
  • Page:
  • 1
  • 2
Time to create page: 0.153 seconds