Jump to content

zeppo

Members
  • Content count

    4
  • Joined

  • Last visited


Reputation Activity

  1. Like
    zeppo reacted to thejudge99 in AJAX Attribute Manager support   
    After my service provider said they are migrating to 5.4 in january (from 5.2) i also got these errors and fixed them with the following
     
    in admin/attributeManager/classes/amDB.class.php and in admin/attributeManager/classes/stopDirectAccess.class.php
     
    every function needs to have public static placed in front of it eg
     

    function authorise($sessionVar) { amSessionRegister($sessionVar); $GLOBALS[$sessionVar] = stopDirectAccess::makeSessionId(); }
     
    becomes
     

    public static function authorise($sessionVar) { amSessionRegister($sessionVar); $GLOBALS[$sessionVar] = stopDirectAccess::makeSessionId(); }
     
    and finally in admin/attributeManager/includes/attributeManagerGeneralFunctions.inc.php
     
    change
     

    $attributeManager =& new attributeManagerAtomic(amGetSesssionVariable(AM_SESSION_VAR_NAME));
     
    with
     

    $attributeManager = new attributeManagerAtomic(amGetSesssionVariable(AM_SESSION_VAR_NAME));
     
     
    and change
     

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

    $attributeManager = new attributeManagerInstant($_GET['products_id']);
     
    This removed all warnings for me
×