Support » Plugin: User Access Manager » [Plugin: User Access Manager] Fatal Error

Viewing 9 replies - 1 through 9 (of 9 total)
  • Had the same problem, my plugin had been working fine… so it’s because of the legacy code.

    simply search the UamUserGroup.class.php file for any references passed like so

    function myFunc($arg) { }
    myFunc(&$arg);

    And replace like so

    function myFunc(&$arg) { }
    myFunc($var);

    Work fine for me! Hope this helps.

    stacef

    (@stacef)

    I’ve got the same fatal error issue but, in looking through UamUserGroup.class.php, I’m not seeing the functions you mention. There are many other functions, some with arguments, some without, but then I don’t find the functions called. I’ve checked UAM 1.2.1 and 1.2.2.

    Can you be more specific about the code to replace? I’m using wp 3.2.1

    Thanks,
    Stace

    Same issue here, the site is crashed – any help out there?

    I’ve got the same fatal error issue but, in looking through UamUserGroup.class.php, I’m not seeing the functions you mention.

    Thanks in advance.

    In UamUserGroup.class.php, line 646 &$this
    remove the & ….do the same on line 994 remove the &. I can get the plugin to run if the error reporting is OFF in the php.ini as this is only part of the true fix. I am sorting that out where to add the & in the function definition to comply with PHP 5.4.4 to really fix it. The error occurs now is an empty object with no value.

    I have the same problem, and do not understand the proposed solution. Will appreciate any help. Thanks.

    Hi, the installation worked fine, besides the first ‘&’ was located a row earlier than mentioned. Tx a lot and greetings from Palatina/Germany!

    Thank you, rockedge!

    I had the same issue and removing the & from $this on lines 645 and 994 fixed the issue.

    The issue is that you can’t pass an object by reference, which is what the & does if you add it to the beginning of variables. The way PHP 5 works is that when you pass an object as a argument into a function the argument points to the same value as the original object by default.

    Here is a little more information:
    http://php.net/manual/en/language.oop5.references.php

    Plugin Author GM_Alex

    (@gm_alex)

    Fixed since version 1.2.3

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: User Access Manager] Fatal Error’ is closed to new replies.