• Resolved impeka

    (@impeka)


    Hi,

    After updating to the most recent version 2.0.6 I get this fatal error in my error log.

    PHP Fatal error: Call to undefined function initUserAccessManger() in /wp-content/plugins/user-access-manager/user-access-manager.php

    Also, to make sure I downloaded a fresh version of the plugin and overwrote my current one to make sure I wasn’t missing anything.

    Any ideas?

    • This topic was modified 8 years ago by impeka.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gm_alex

    (@gm_alex)

    Please reupload the whole module and try again.

    • This reply was modified 8 years ago by gm_alex.
    Thread Starter impeka

    (@impeka)

    Hi Alex,

    I added an edit on my initial ticket that to make sure I covered all bases I downloaded a fresh version of the plugin and overwrote the current one.

    What else could cause this?

    Plugin Author gm_alex

    (@gm_alex)

    Sorry didn’t noticed you answered me. If you have a look at the main plugin file (https://github.com/GM-Alex/user-access-manager/blob/master/user-access-manager.php) there is a

    require_once 'init.php';
    

    So I can only guess that the file init.php is corrupted or has wrong file permissions. Seems really strange, because normally the require_once should fail, if the files isn’t loaded. Could you double check if the file is there and has the missing function defined?

    • This reply was modified 8 years ago by gm_alex.
    Thread Starter impeka

    (@impeka)

    Hi Alex,

    The require_once ‘init.php’; was there but it would never load that file. I added some error logs before the init.php (and it would get there) and an error log inside the init.php file and it wouldn’t.

    There was also some error logs

    PHP Warning: require_once(): failed to open stream: No such file or directory in plugins/user-access-manager/user-access-manager.php on line 65

    So for now, as a temporary fix I change the require_once ‘init.php’; to the full path on my server.

    Can you have a look at that and maybe in your next version add the plugin path directive?

    Any ideas why it would do that?

    Thank you

    Plugin Author gm_alex

    (@gm_alex)

    Only idea I have is that you are using windows. But anyway I changed it to full paths for the next release. Thanks for figuring that out!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Fatal error: Call to undefined function initUserAccessManger()’ is closed to new replies.