Jump to content
Sign in to follow this  
tonymatt

Deprecated error: Ajax Attribute Manager v2.8.2 beta

Recommended Posts

I feel the install went well. I do not have any extra's that are in the instructions.

 

In admin, editing my product, there is much code that popped up ending in the following:

 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\osc231\catalog\admin\attributeManager\includes\attributeManagerGeneralFunctions.inc.php on line 55

 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\osc231\catalog\admin\attributeManager\includes\attributeManagerGeneralFunctions.inc.php on line 58

 

Functions.php:

 

$attributeManager =& new attributeManagerAtomic(amGetSessionVariable(AM_SESSION_VAR_NAME));

}

else

$attributeManager =& new attributeManagerInstant($_GET['products_id']);

 

***

 

In the front end, at the products Product Info page is:

 

Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\wamp\www\osc231\catalog\includes\functions\database.php on line 99

 

Database.php:

 

return mysql_fetch_array($db_query, MYSQL_ASSOC);

 

****

 

I am searching to try and find a start on what to do. If anyone has a clue I would appreciate it. Thanks.

Share this post


Link to post
Share on other sites

Hi tony,

You need remove the &, after this, the php code need look like this:

Functions.php:

 

$attributeManager = new attributeManagerAtomic(amGetSessionVariable(AM_SESSION_VAR_NAME));

}

else

$attributeManager = new attributeManagerInstant($_GET['products_id']);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×