# 502 error on pulled website

**URL:** <https://community.localwp.com/t/502-error-on-pulled-website/44338>\
**Category:** Support\
**Created:** [August 28, 2024, 8:16pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338 "2024-08-28T20:16:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielspolderman](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nielspolderman](https://community.localwp.com/u/nielspolderman)\
**Post date:** [August 28, 2024, 8:16pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338/1 "2024-08-28T20:16:24Z")

</div>

### What issue or error are you experiencing?

# 502 Bad Gateway

* * *

nginx/1.16.0

I was trying to pull a website, but only on this project I got a 502 error.

> [@How to increase the PHP memory limit beyond 256MB for memory-intensive websites](https://community.localwp.com/t/how-to-increase-the-php-memory-limit-beyond-256mb-for-memory-intensive-websites/33776/3):
>
> Hi @s.doig! These values can be edited in the php.ini.hbs file within the site’s conf/php/ folder. You can open this file in the text editor of your choice, and save the updated values. After making any adjustments, be sure to stop the site and restart it so that Local can compile and use those new settings. Check here for more Local performance troubleshooting if needed!

Already checked in the php.ini.hbs and edit the other files

> [@Increasing wp memory limit](https://community.localwp.com/t/increasing-wp-memory-limit/33521):
>
> do these 3 steps for wp memory increase from 40M to 256 Edit the (php.ini) file by adding: memory\_limit = 256M Edit (wp-config.php) file by adding: define (‘WP\_MEMORY\_LIMIT’, ‘256M’); 3.Edit (default-constants.php) file by replacing 64M and 40M both to 256M The max memory limit was already 256M By the way I am using Bricks builder and thats one of the requirements for it 64M but I maxed it out anyway hope that helps thanks

I also disconnect and reconnect my Flywheel account and checked this on another wifi.

Other websites works just fine on Local WP

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [August 28, 2024, 8:18pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338/2 "2024-08-28T20:18:50Z")

</div>

There could be a conflict within the site. Something else you could try is using the Open Shell function in Local to use WP-CLI and deactivate plugins, or swap out the theme.

For starters, you could run something like `wp plugin deactivate --all`

---

<div class="post-metadata">

**Author:** ![nielspolderman](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nielspolderman](https://community.localwp.com/u/nielspolderman)\
**Post date:** [August 28, 2024, 8:31pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338/3 "2024-08-28T20:31:09Z")

</div>

Done! `Succesful deactivated them but still that 502 error.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [August 28, 2024, 8:37pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338/4 "2024-08-28T20:37:05Z")

</div>

After you deactivated the plugins did you try Stopping and Starting the site? That might help it to recompile and refresh.

Next though you could try swapping out your theme. If you have any default WordPress themes installed on the site you could also activate one of them from CLI.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [November 26, 2024, 8:38pm UTC](https://community.localwp.com/t/502-error-on-pulled-website/44338/5 "2024-11-26T20:38:04Z")

</div>

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