Can't add products or pictures

Meer
12 jaren 9 maanden geleden - 12 jaren 9 maanden geleden #449 door noratx
For some reason, I am not able to add products or pictures.
When I am trying to add them, nothing happens on the site, but I get this in my apache error logs:


[Thu Mar 08 14:29:26 2012] [error] [client 217.208.**.***] PHP Deprecated: Function split() is deprecated in /var/www/administrator/components/com_oscommerce/includes/functions/html_output.php on line 403, referer: http://webshop.***.eu/administrator/index.php?option=com_oscommerce&osMod=categories&page=1&cPath=&action=new_product
[Thu Mar 08 14:29:26 2012] [error] [client 217.208.**.***] PHP Deprecated: Function split() is deprecated in /var/www/administrator/components/com_oscommerce/includes/functions/html_output.php on line 405, referer: http://webshop.***.eu/administrator/index.php?option=com_oscommerce&osMod=categories&page=1&cPath=&action=new_product
[Thu Mar 08 14:29:26 2012] [error] [client 217.208.**.***] PHP Deprecated: Function split() is deprecated in /var/www/administrator/components/com_oscommerce/includes/functions/html_output.php on line 405, referer: http://webshop.***.eu/administrator/index.php?option=com_oscommerce&osMod=categories&page=1&cPath=&action=new_product

PHP version is 5.3.3-7, running on Debian Squeeze with Apache 2.2.16 and MySQL 5.1.49
Laatst bewerkt 12 jaren 9 maanden geleden doornoratx.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 9 maanden geleden #450 door Simpel
Beantwoord door Simpel in topic Re: Can't add products or pictures
Did you read you the changelog?

* development: fixes in files to run with PHP 5.3. it seems some code in the html_output.php is not compatible with PHP 5.3 yet.

Split function does not work anymore in PHP 5.3. Please change to explode

change this on line 403-405
Code:
if ($action_par != '') { $action_params = array(); $action_params = split('&',$action_par); foreach ($action_params AS $this_par) { list($key, $value) = split('=',$this_par); $form .= tep_draw_hidden_field( $key, $value ); }; }


to
Code:
if ($action_par != '') { $action_params = array(); $action_params = explode('&',$action_par); foreach ($action_params AS $this_par) { list($key, $value) = explode('=',$this_par); $form .= tep_draw_hidden_field( $key, $value ); }; }

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us