Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: GF38storic on 13 December 2010, 21:05:28

Title: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: GF38storic 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
Title: Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: federica 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?
Title: Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: GF38storic 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 :.(
Title: Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: federica 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.
Try if Alexandria Book Library (administrator) work now.
If you found other bugs Post the php errors.
Title: Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: GF38storic 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
Title: Re: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
Post by: federica 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:
This option enable you to see the php log on your site.

Bye bye