WordPress.org

Ready to get started?Download WordPress

Forums

User Access Manager
[resolved] Fatal Error (10 posts)

  1. uzegonemad
    Member
    Posted 2 years ago #

    Upon installing this plugin, I get the following issue:

    Fatal error: Call-time pass-by-reference has been removed in /path/to/folder/wp-content/plugins/user-access-manager/class/UamUserGroup.class.php on line 646

    I'm using php 5.4 and nginx as my webserver, if it helps.

    http://wordpress.org/extend/plugins/user-access-manager/

  2. greybe
    Member
    Posted 2 years ago #

    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.

  3. stacef
    Member
    Posted 2 years ago #

    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

  4. Solsikken
    Member
    Posted 2 years ago #

    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.

  5. rockedge
    Member
    Posted 2 years ago #

    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.

  6. Solsikken
    Member
    Posted 1 year ago #

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

  7. goetzm
    Member
    Posted 1 year ago #

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

  8. pa.Nick
    Member
    Posted 1 year ago #

    Thank you, rockedge!

  9. zappsdev
    Member
    Posted 1 year ago #

    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

  10. GM_Alex
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed since version 1.2.3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic