News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] mod VirtueMart login module error on php4

Started by aravot, October 28, 2007, 08:38:42 AM

Previous topic - Next topic

aravot

Joomla 1.0.13
VirtueMart 1.1 r1018

On php4 mod_virtuemart_login.php give the following error. (it is OK on php5)
QuoteParse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/example.com/public_html/modules/mod_virtuemart_login.php on line 75

Database Version: 4.1.21-standard
PHP Version: 4.4.7
Web Server: Apache/1.3.37

jenkinhill

Confirmed for Joomla! 1.0.13 and 1.5 (r9251) and PHP 4.4.4

Quote
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /var/www/html/joomla3/modules/mod_virtuemart_login/mod_virtuemart_login.php on line 75

Works OK in both J! versions with PHP 5.2.4

Database Version: 4.1.22
PHP Version: 4.4.4  (and 5.2.4)
Web Server: Apache
VirtueMart 1.1: Ver. 1018
Joomla! Version: Joomla! 1.0.13 Stable [ Sunglow ]


Database Version: 4.1.22
PHP Version: 4.4.4 and (5.2.4)
Web Server: Apache
VirtueMart 1.1: Ver. 1018
Joomla! Version: Joomla! 1.5 Beta3+ Rev 9251 18/October

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jenkinhill

Just to add to this, the code in the mod is valid  PHP5. As PHP4 is now at "end of life" with no more security updates it is certain to be removed from hosts in the same way that PHP3 was. MY host offers a choice of PHP4 or 5 - but has stated that in early 2008 PHP4 will be removed with PHP5 remaining. I can really see little point in rewriting the module so it will work in a soon to be gone environment.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


gregdev

Fixed in SVN rev. 1025. That code is now compatible with PHP 4 (and PHP 5, of course).

Greg

[tr][td]
[/td][td]
www.plainlycode.com[/td][/tr]
[/table]