Deprecated: Function split() is deprecated in /home/user4092/html/XO4U.BIZ/admin/Product.admin.php on line 144

Deprecated: Function split() is deprecated in /home/user4092/html/XO4U.BIZ/admin/Product.admin.php on line 185

Warning: Cannot modify header information - headers already sent by (output started at /home/user4092/html/XO4U.BIZ/admin/Product.admin.php:144) in /home/user4092/html/XO4U.BIZ/admin/Product.admin.php on line 244

What to do? how to remove them?

  • one
    Observing these errors, it would be logical to get into the specified files in the right lines and deal with the "root of evil." - wind
  • it seems I understood what the error is .... my host is to blame ... old functions pkhp does not recognize - Dima Reznik

2 answers 2

The fault is not the host, which "does not recognize the old functions", the fault of the code of the store that uses them.

Solution - replace split everywhere with preg_split (if the first argument is regular) or explode (if the first argument is a string).

Distinguishing a string from a regular is quite simple, a regular looks scary, like "/;\s*/" , and explode is often done by the symbol ( ":" or "|" ).

  • replaced on explode so advised the hoster everything is OK ... the lines here are $delete_fotos = explode(',', $_POST['delete_fotos']); and here $related_products = explode(',', $this->item->related); right? - Dima Reznik
  • Most likely, correctly) - Sh4dow

These functions are getting older and will no longer be supported. It is better not to use them, but to hide errors, try specifying the error_reporting (0) code at the very beginning of the php code;

  • Good advice: D - Alex Kapustin 2:51 pm