- Beiträge: 1
- Dank erhalten: 0
Can't add products or pictures
12 Jahre 9 Monate her - 12 Jahre 9 Monate her #449
von noratx
Can't add products or pictures wurde erstellt von 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
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
Letzte Änderung: 12 Jahre 9 Monate her von noratx.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
12 Jahre 9 Monate her #450
von Simpel
Simpel antwortete auf 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
to
* 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 );
};
}
Bitte Anmelden oder Registrieren um der Konversation beizutreten.