Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Plugin Activation errors
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years ago.
- AuthorPosts
- September 17, 2017 at 1:36 am #14752
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 restrictionError:
[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.
September 17, 2017 at 6:25 am #14758Wow, looks like this person is having the exact same issues as me:
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 6 years ago by
asmith007.
September 17, 2017 at 7:37 am #14760Hi!
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 thefile_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.
Best,Attachments:
You must be logged in to view attached files.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 17, 2017 at 7:48 am #14762Yes this fix has worked. Thank you.
September 17, 2017 at 7:49 am #14763You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 6 years ago by
- AuthorPosts
You must be logged in to reply to this topic.