Can't add products or pictures

More
12 years 1 month ago - 12 years 1 month ago #449 by 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
Last edit: 12 years 1 month ago by noratx.

Please Log in to join the conversation.

More
12 years 1 month ago #450 by Simpel
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
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
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 );
      };
    }

Please Log in to join the conversation.

Time to create page: 0.266 seconds
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