Parse error: syntax error, unexpected T_OBJECT_OPERATOR

Started by GF38storic, 13 December 2010, 21:05:28

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

GF38storic

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

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

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.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

GF38storic

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 :.(

federica

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.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

GF38storic

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

federica

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.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]