Plugin Activation errors

This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14752
    asmith007
    asmith007
    Participant

    This site is under a sub-directory – designerblindsandshutters.net under /public_html

    Problem
    I have tried activating the plugin but it just hangs and then timeout. One time I was able to produce the error output but I am unable to do this again. When I saw the error it said something about open_basedir restriction

    Error:

    [17-Sep-2017 04:19:20 UTC] PHP Warning: file_exists(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/netsprin:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/netsprin/public_html/designerblindsandshutters.net/wp-includes/functions.php on line 1602

    I have spoken to my Hosting provider and there only response is they can not change the security of open_basedir being able to run scripts from any directory.

    • This topic was modified 4 years, 9 months ago by asmith007 asmith007.
    • This topic was modified 4 years, 9 months ago by asmith007 asmith007.
    #14758
    asmith007
    asmith007
    Participant

    Wow, looks like this person is having the exact same issues as me:

    Can't turn on plugin

    Mine did the same, open_basedir errors then it filled up the error_log in /wp-admin/ – that is why this guy had exceeded his disk quota. After I tried Activating the plugin 5 times – the error_log file was 3.6Gb!!!!

    • This reply was modified 4 years, 9 months ago by asmith007 asmith007.
    #14760
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you very much for letting me know. I believe I have found out why in the meantime.
    It turns out, there is a very rare issue with the

    file_put_contents(..)

    PHP function. So basically when the plugin simply tries to place a file into the WordPress upload path, it fails for some reason. Not only fails, it re-tries a bazzilion times, even though there is no loop whatsoever. The error is basically one single function, it blows my mind. More interestingly, this function is widely used by plugin developers, so I still don’t get why exactly is this happening, and why can’t I re-create it. I’m in this business for a very long time now, and this is probably the strangest error I have ever seen yet.

    I have already fixed the auto updater version, and the version for codecanyon is under approval (I hate it that I cannot immediately upload a fix there).

    I’m attaching a fixed version to this post. Please install this instead of the one you got. This does no longer have that function in effect, should not cause this issue anymore.

    Attachments:
    You must be logged in to view attached files.
    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14762
    asmith007
    asmith007
    Participant

    Yes this fix has worked. Thank you.

    #14763
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.