VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: aravot on October 28, 2007, 08:38:42 AM

Title: [FIXED] mod VirtueMart login module error on php4
Post by: aravot on October 28, 2007, 08:38:42 AM
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
Title: Re: mod VirtueMart login module error on php4
Post by: jenkinhill on October 28, 2007, 12:06:27 PM
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

Title: Re: mod VirtueMart login module error on php4
Post by: jenkinhill on October 29, 2007, 21:42:07 PM
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.
Title: Re: mod VirtueMart login module error on php4
Post by: aravot on October 30, 2007, 20:34:37 PM
Q&T note; tracker URL http://virtuemart.net/index.php?option=com_flyspray&Itemid=91&do=details&task_id=1519&option=com_flyspray&Itemid=91
Title: Re: [TRACKER 1519] mod VirtueMart login module error on php4
Post by: gregdev on October 31, 2007, 05:02:42 AM
Fixed in SVN rev. 1025. That code is now compatible with PHP 4 (and PHP 5, of course).

Greg