Author Topic: Parse error: syntax error, unexpected T_OBJECT_OPERATOR  (Read 7332 times)

GF38storic

  • Guest
Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« on: 13 December 2010, 21:05:28 »
Buona sera a tutti,
I installed this component without problems and Alexandria library is present in component bar but when i tried to use it (by clicking on control panel, books, etc..), it always return this error

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/webserve/domains/mydomain.fr/files/files/administrator/components/com_abook/controller.php on line 41

I don't know what to do

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.043
  • Karma: +1/-0
Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« Reply #1 on: 14 December 2010, 10:07:58 »
Hello GF38storic,
thanks for your reporting.
The line 41 of file administrator/components/com_abook/controller.php checks if the cover folder exist.
What version of Joomla have you installed? What language are you using?
Have you translated by yourself the language file of Alexandria Book Library?
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!

GF38storic

  • Guest
Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« Reply #2 on: 15 December 2010, 01:43:37 »
Hi Federica,
I have Joomla! 1.5.15 Stable.
I found where comes the problem, the component is not compatible with php4. When i shift php langage to php5, in the backend i can access to Alessandria Book Library and it seems very promising. However i cannot stay (currently) in php5 since i have a lot of bugs due to others problems (Error File do not exist) in my frontend which becomes a blank page with php5 :.(

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.043
  • Karma: +1/-0
Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« Reply #3 on: 15 December 2010, 12:36:02 »
Hello GF38storic,
I don't never tested Alexandria Book Library with PHP4.
I modify the file controller.php.
  • download the attached file (controller.txt)
  • rename it in controller.php
  • replace controller.php in <your_site>/administrator/components/com_abook/controller.php
Try if Alexandria Book Library (administrator) work now.
If you found other bugs Post the php errors.
« Last Edit: 15 December 2010, 13:04:06 by federica »
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!

GF38storic

  • Guest
Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« Reply #4 on: 19 December 2010, 11:47:18 »
Hi Federica,
Me fa molto piacere tutto l'aiuto, grazzie mille.

With this new controller.php, the administrator view of Alexandria Book Library seems to work perfectly with php4 (Although i would like to make my website compatible with Php5 but this another problem and linked to my website and not to your component).
I'm trying it, and i will post any comments on it.

Ciao

Francesco

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.043
  • Karma: +1/-0
Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
« Reply #5 on: 20 December 2010, 12:29:50 »
Hello Francesco,
If you have not a total control of server machine you can to enable this option:
  • Open Joomla Global Configuration->Server
  • set "Error Reporting" to maximum level
This option enable you to see the php log on your site.

Bye bye
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!