Jump to content


PHP Error


  • You cannot reply to this topic
4 replies to this topic

#1 Daimler

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 14 July 2010 - 05:57 PM

i get some errors :

Deprecated: Function split() is deprecated in C:\xampp\xampp\htdocs\x\profile_edit.php(887) : runtime-created function on line 1

Deprecated: Function split() is deprecated in C:\xampp\xampp\htdocs\x\profile_edit.php(887) : runtime-created function on line 1

Deprecated: Function split() is deprecated in C:\xampp\xampp\htdocs\x\profile_edit.php(887) : runtime-created function on line 1

Deprecated: Function split() is deprecated in C:\xampp\xampp\htdocs\x\profile_edit.php(887) : runtime-created function on line 1

Deprecated: Function split() is deprecated in C:\xampp\xampp\htdocs\x\profile_edit.php(887) : runtime-created function on line 1

On that lines i have the fallowing code:

885 {
886 $funcbody = $arrpd['get_value_db'];
887 $func = create_function('$arg0', $funcbody);
888 $p_arr_new[$fname] = $func($p_arr);
889 }

Can someone know what-s the problem ? thank you

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 14 July 2010 - 11:52 PM

Unfortunately, that file is not part of the Etomite CMS code base... But I do know WHY you are getting those errors... The split() function is deprecated as of PHP 5.3 and should be replaced with the explode() function... The php.net site has a full list of all deprecated functions as well as the appropriate work-around for each one... If you ae getting an error for split() then you will most likely get additional errors at some point unless that is the only deprecated function currently used in your scripts... Look at line 1 for the split() function...

I hope this information is found helpful...

#3 Daimler

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 15 July 2010 - 09:51 AM

View PostRalph, on 14 July 2010 - 11:52 PM, said:

Unfortunately, that file is not part of the Etomite CMS code base... But I do know WHY you are getting those errors... The split() function is deprecated as of PHP 5.3 and should be replaced with the explode() function... The php.net site has a full list of all deprecated functions as well as the appropriate work-around for each one... If you ae getting an error for split() then you will most likely get additional errors at some point unless that is the only deprecated function currently used in your scripts... Look at line 1 for the split() function...

I hope this information is found helpful...

Thanks for answer mate,

At line 1 i have just this string:

1 <?

I dont understand why i recieve that error because i cant replace antything with explode there :|

P.S. - Im sorry if i post somewere else..im new here and im realy not so god at php :)

Edited by Daimler, 15 July 2010 - 09:57 AM.


#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 15 July 2010 - 12:42 PM

The way that I resolve such issues is to do a global search of the entire code base structure for each deprecated function... Error codes don't always point to the exact line of code so tracking them down by the error text isn't always helpful...

#5 Daimler

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 21 July 2010 - 03:55 PM

Ok, thank you for your time





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users