Jump to content


Photo

PHP 5.3


  • Please log in to reply
7 replies to this topic

#1 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 07 April 2010 - 05:44 PM

To fix the "Function Split() is Deprecated" in index.php (when opening your website), change line:
$tempSnippetParams = split($splitter, $tempSnippetParams);
to
$tempSnippetParams = explode($splitter, $tempSnippetParams);

To fix the "Deprecated: Assigning the return value of new by reference is deprecated in /home/<username>/public_html/manager/includes/browsercheck.inc.php on line 19" when opening the manager, change
$client =& new phpSniff($GET_VARS['UA'],$sniffer_settings);
to
$client = new phpSniff($GET_VARS['UA'],$sniffer_settings);
(thanks Cris.D for the BrowserCheck fix)

To fix the "Deprecated: Function split() is deprecated in /home/<username>/public_html/manager/actions/static/files.static.action.php on line X" (where X = five line numbers) when opening the File Manager, change the following
all instances of split( to explode( - do a search and replace, or change on line 47, 48, 50, 52, 53


#2 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 11 May 2010 - 04:59 PM

Updated post.

#3 Upadesh

Upadesh

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 20 June 2010 - 07:41 AM

Thanx. I am new to this CMS and loved to play with this CMS.

#4 Upadesh

Upadesh

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 22 June 2010 - 09:38 AM

Installation Fix:

Browse ../install/sqlParser.class.php

Find:
$sql_array = split("\n\n", $idata);

Replace with:
$sql_array = explode("\n\n", $idata);

Find:
if (ereg('^\#', $sql_do)) continue;

Replace with:
if (preg_match('/^\#/', $sql_do)) continue;

Find:
if (ereg('^\--', $sql_do)) continue;

Replace with:
if (preg_match('/^\--/', $sql_do)) continue;

Save the file sqlParser.class.php and you are ready to install with out error for deprecated functions in PHP 5.3

Edited by Upadesh, 22 June 2010 - 09:40 AM.


#5 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 22 June 2010 - 10:40 AM

Installation Fix:


Thanks!

#6 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 17 January 2011 - 03:05 PM

I found another bug, but haven't got round to looking for a fix - it occurs twice, with different outcomes with each choice.

When creating a new user, it throws a depreciated error, whether it be show on screen or e-Mail to them...

#7 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 17 January 2011 - 06:53 PM

I found another bug, but haven't got round to looking for a fix - it occurs twice, with different outcomes with each choice.

When creating a new user, it throws a depreciated error, whether it be show on screen or e-Mail to them...


Pretty sure I have that one fixed as part of the PHP 5.3.x deprecation patches I've been working on - again... I lost the original fixed copy because it was on my WAMP server, which was the only server I had at the time with PHP 5.3.x, when a software upgrade wiped out all of the server data...

#8 _rasel^

_rasel^

    Etomite Forum Fan

  • Member
  • Pip
  • 76 posts

Posted 27 February 2011 - 07:36 PM

I found another bug, but haven't got round to looking for a fix - it occurs twice, with different outcomes with each choice.

When creating a new user, it throws a depreciated error, whether it be show on screen or e-Mail to them...

Browse: ../manager/processors/save_user.processor.php line146:

Find:
if($email=='' || !ereg("^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}~]+", $email)){
Replace with:
if($email=='' || !filter_var($email, FILTER_VALIDATE_EMAIL)){

Edited by _rasel^, 27 February 2011 - 07:38 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users