nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Assigning the return value of new by reference is deprecated
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm)
View previous topic :: View next topic  
Author Message
hicux
webmaster


Joined: Apr 28, 2008
Posts: 13

PostPosted: Thu Oct 07, 2010 2:29 am    Post subject: Assigning the return value of new by reference is deprecated Reply with quote

I tried to search on the forum but I didn't get any answer. Any suggestion about this error.

includes/nukeSEO/nukeSEOfunctions.php 318 Assigning the return value of new by reference is deprecated

The error comes from this line.

Code:
$client =& new xmlrpc_client('/version.php', 'nukeseo.com', 80);


I got more deprecate error from this function

Code:
if ( !function_exists('seoGetCurrentVersion') )

{
  function seoGetCurrentVersion ($p1, $debug=0) {
    require_once ('includes/xmlrpc/xmlrpc.php');
    $client =& new xmlrpc_client('/version.php', 'nukeseo.com', 80);
    $client->return_type = 'xmlrpcvals';
    $client->setDebug($debug);
    $msg =& new xmlrpcmsg('script.getCurrentVersion');
    $p1 =& new xmlrpcval($p1, 'string');
    $msg->addparam($p1);
    $res =& $client->send($msg, 0, '');
    if ($res->faultcode()) return $res;
    else return php_xmlrpc_decode($res->value());
  }
}
  
Back to top
View user's profile Send private message Visit poster's website
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Thu Oct 07, 2010 7:24 pm    Post subject: Reply with quote

Haven't looked at that code in a while. What version of PHP are you using?

You can probably comment that out for now. It's only used to check for a new version of the software - it doesn't affect the functionality.
_________________
  
Back to top
View user's profile Send private message Visit poster's website
Palbin
webmaster


Joined: Nov 28, 2007
Posts: 38

PostPosted: Mon Nov 15, 2010 9:51 am    Post subject: Reply with quote

It would be PHP 5.3+.
  
Back to top
View user's profile Send private message
GazJ
webmaster


Joined: Mar 20, 2007
Posts: 29

PostPosted: Mon Mar 28, 2011 3:04 pm    Post subject: Reply with quote

remove the & in =& new xmlrpc_client
all will be fixed after that
  
Back to top
View user's profile Send private message
GazJ






PostPosted: Mon Mar 28, 2011 3:06 pm    Post subject: Reply with quote

Code:
if ( !function_exists('seoGetCurrentVersion') )

{
  function seoGetCurrentVersion ($p1, $debug=0) {
    require_once ('includes/xmlrpc/xmlrpc.php');
    $client = new xmlrpc_client('/version.php', 'nukeseo.com', 80);
    $client->return_type = 'xmlrpcvals';
    $client->setDebug($debug);
    $msg = new xmlrpcmsg('script.getCurrentVersion');
    $p1 = new xmlrpcval($p1, 'string');
    $msg->addparam($p1);
    $res = $client->send($msg, 0, '');
    if ($res->faultcode()) return $res;
    else return php_xmlrpc_decode($res->value());
  }
}


that fixes it
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukeSEO (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.03 Seconds