# Error 500

**URL:** <https://forum.infinityfree.com/t/error-500/84708>\
**Category:** Hosting Support\
**Created:** [October 18, 2023, 9:19pm UTC](https://forum.infinityfree.com/t/error-500/84708 "2023-10-18T21:19:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 18, 2023, 9:19pm UTC](https://forum.infinityfree.com/t/error-500/84708/1 "2023-10-18T21:19:43Z")

</div>

### Website URL

([https://my.wuaze.com/](https://my.wuaze.com/))

### Error Message

**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 ??

---

<div class="post-metadata">

**Author:** ![solace-ken](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/solace-ken/32/29500_2.png) [@solace-ken](https://forum.infinityfree.com/u/solace-ken)\
**Post date:** [October 18, 2023, 10:53pm UTC](https://forum.infinityfree.com/t/error-500/84708/2 "2023-10-18T22:53:40Z")

</div>

Hi,

Maybe try to add this to .htaccess? 🤔

```auto
php_value open_basedir "/htdocs/unsecured"

```

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 18, 2023, 11:17pm UTC](https://forum.infinityfree.com/t/error-500/84708/3 "2023-10-18T23:17:46Z")

</div>

I tried every thing related to .htaccess but got the same error .  
also I tried to modify paths in Autoloader.php and got Error 502 this time

---

<div class="post-metadata">

**Author:** ![anon42008019](https://forum.infinityfree.com/letter_avatar/anon42008019/32/6_449c533f586939b6e5f246632a46421f.png) [@anon42008019](https://forum.infinityfree.com/u/anon42008019)\
**Post date:** [October 19, 2023, 7:30am UTC](https://forum.infinityfree.com/t/error-500/84708/4 "2023-10-19T07:30:46Z")

</div>

> [@Syrianinvestor](#):
>
> File(/autoload.php) is not within the allowed path(s):

You cannot access files on the root directory /, you must access it within the `/home/vol2_8/infinityfree.com/if0_34925717/htdocs/` path.

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 19, 2023, 9:48am UTC](https://forum.infinityfree.com/t/error-500/84708/5 "2023-10-19T09:48:34Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![anon42008019](https://forum.infinityfree.com/letter_avatar/anon42008019/32/6_449c533f586939b6e5f246632a46421f.png) [@anon42008019](https://forum.infinityfree.com/u/anon42008019)\
**Post date:** [October 19, 2023, 10:27am UTC](https://forum.infinityfree.com/t/error-500/84708/6 "2023-10-19T10:27:27Z")

</div>

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.

> [@Syrianinvestor](#):
>
> there is no wrong with my php code

Check it again, it won’t hurt.

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 19, 2023, 11:23am UTC](https://forum.infinityfree.com/t/error-500/84708/7 "2023-10-19T11:23:50Z")

</div>

here is my second website [http://syinvestor.42web.io/invest/?i=1](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

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 19, 2023, 12:05pm UTC](https://forum.infinityfree.com/t/error-500/84708/8 "2023-10-19T12:05:30Z")

</div>

Can you activate display errors and any debug settings?

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 19, 2023, 2:07pm UTC](https://forum.infinityfree.com/t/error-500/84708/9 "2023-10-19T14:07:51Z")

</div>

**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**

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [October 19, 2023, 2:11pm UTC](https://forum.infinityfree.com/t/error-500/84708/10 "2023-10-19T14:11:42Z")

</div>

I Googled your issue, and it seems it is caused by an older version of Vonage’s nexmo-bridge trying to load /autoload.php.

This Stackoverflow thread can help:

> <https://stackoverflow.com/questions/70556505/laravel-8-0-warning-with-nexmo-bridge>

As also mentioned in the thread, the latest version does not have this issue:

> **[Release 0.1.2 · Nexmo/vonage-php-nexmo-bridge](https://github.com/Nexmo/vonage-php-nexmo-bridge/releases/tag/0.1.2)**
>
> What's Changed
> 
> Prevent Autoloader from reading /autoload.php by @szepeviktor in #2
> 
> New Contributors
> 
> @szepeviktor made their first contribution in #2
> 
> Full Changelog: 0.1.1...0.1.2

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 19, 2023, 2:54pm UTC](https://forum.infinityfree.com/t/error-500/84708/11 "2023-10-19T14:54:43Z")

</div>

thank you for your replay . I tried every thing , after upgrading nexmo-bridge now I get error 500 without displaying any reason for the error .

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 20, 2023, 10:20am UTC](https://forum.infinityfree.com/t/error-500/84708/12 "2023-10-20T10:20:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Syrianinvestor](https://forum.infinityfree.com/letter_avatar/syrianinvestor/32/6_449c533f586939b6e5f246632a46421f.png) [@Syrianinvestor](https://forum.infinityfree.com/u/Syrianinvestor)\
**Post date:** [October 20, 2023, 1:55pm UTC](https://forum.infinityfree.com/t/error-500/84708/13 "2023-10-20T13:55:59Z")

</div>

ok , thanks that is the problem . account resource limit .  
I will remove some content from my php code and upload it again . thank you again

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 27, 2023, 1:56pm UTC](https://forum.infinityfree.com/t/error-500/84708/14 "2023-10-27T13:56:13Z")

</div>

Closed on October 27, 2023, 1:56pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
