VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: stephenclark2000 on December 09, 2013, 14:27:16 PM

Title: Mac (OS Mavericks) update requires Xampp (localhost) update & breaks Virtuemart
Post by: stephenclark2000 on December 09, 2013, 14:27:16 PM
Hi there,

I recently updated my Mac to OS Mavericks.  This required an update to Xampp (my localhost server program) which stopped virtuemart working properly on a site I am developing locally.

The message coming up is:

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/XAMPP/xamppfiles/htdocs/pitmaster5/libraries/joomla/filter/input.php on line 652

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/XAMPP/xamppfiles/htdocs/pitmaster5/libraries/joomla/filter/input.php on line 654

The Xampp server details are:

Database server

Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.6.12 - Source distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Web server

Apache/2.4.4 (Unix) PHP/5.5.3 OpenSSL/1.0.1e mod_perl/2.0.8-dev Perl/v5.16.3
Database client version: libmysql - mysqlnd 5.0.11-dev - 20120503 - $Id: 40933630edef551dfaca71298a83fad8d03d62d4 $
PHP extension: mysqli

What can I do to get VM working properly again?

Thanks

/Steve
Title: Re: Mac (OS Mavericks) update requires Xampp (localhost) update & breaks Virtuemart
Post by: jenkinhill on December 09, 2013, 15:48:34 PM
Edit your Xampp php.ini to limit error reporting - or turn it off in Joomla. http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: Mac (OS Mavericks) update requires Xampp (localhost) update & breaks Virtuemart
Post by: stephenclark2000 on December 10, 2013, 14:43:16 PM
Many thanks for getting back to me so quickly...  I've completed your suggestions...

I've pretty much butchered the php.ini to take out all error reporting (systematically, when just setting error_Reporting= Off didn't work). 

I've also turned off error reporting in the Joomla server config.

Neither of these things have seemed to work...  the" Deprecated: preg_replace():" messaging still appears.

Any other ideas?
Title: Re: Mac (OS Mavericks) update requires Xampp (localhost) update & breaks Virtuemart
Post by: GJC Web Design on December 10, 2013, 15:27:16 PM
error_reporting(E_ERROR);

in the top of  libraries/joomla/filter/input.php  after the security check line?

is your joomla old?
Title: Re: Mac (OS Mavericks) update requires Xampp (localhost) update & breaks Virtuemart
Post by: stephenclark2000 on December 10, 2013, 17:45:20 PM
Using a 2.5 version of Joomla and the 'shop & buy' template from Gavick.com

Can't tell exactly which version it is as I've just killed it trying to manually update Virtuemart to 2.0.24c (as the extension manager dosen't sem to play ball when using Xampp and localhost ).

Will have to relaunch from back up and test your suggestion.

Thanks,

/S