Warning : file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/usr/share/pear:/home/vol2_8/infinityfree.com/if0_34925717/htdocs) in /home/vol2_8/infinityfree.com/if0_34925717/htdocs/core/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69
Other Information
my website was running normaly before general error 502 . after that I get error 500 for all my websites . how to fix this ??
all paths are in htdocs directory , there is no wrong with my php code . it was working normaly 3 days ago . I think it’s a serverside permission after upgrading php 3 days ago. because I got error 502 first , after a few hours I got 500 error without doing anything .
This is surprising how it has worked before because the error above literally says that the php code has failed to open a file in the root folder which is out of your permission.
here is my second website http://syinvestor.42web.io/invest/?i=1. it’s been working for almost 2 years and I got clients . I got error 500 at the same time 3 days ago
Warning : file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/php_sessions:/tmp:…:/var/www/errors:/usr/share/pear:/home/vol2_8/infinityfree.com/if0_34925717/htdocs) in /home/vol2_8/infinityfree.com/if0_34925717/htdocs/core/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69
When I check your site, I now see a 502 Bad Gateway error. That’s a bit of a weird error code to see, but in my experience, it can mean one of two issues:
There is something completely wrong with the PHP installation on the server.
You are running into an account resource limit.
To figure this out, I copied your website’s code onto a testing server to check it. When I ran it there, I got the following error message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /var/www/html/core/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 54
Both my testing server and the hosting servers have a PHP memory limit of 128 MB, so it’s very likely that your site is running into the memory limits on your hosting account too, and that’s why it’s crashing.
If at all possible, I would try removing the nexmo-bridge entirely and see if that helps. You may also find it helpful to setup a local testing server with similar specifications and limits to our servers to test for issues like this, seeing how you also found that our hosting isn’t the best at providing useful feedback in case of problems.