Title: 502 error when I am using PHP7
Last modified: November 15, 2016

---

# 502 error when I am using PHP7

 *  Resolved [Dahnark](https://wordpress.org/support/users/dahnark/)
 * (@dahnark)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/502-error-when-i-am-using-php7/)
 * I am using your plugin to change admin and login urls, it is working perfectly
   but when I logout, I got a 502 error. I can login and logout without problems,
   except that this logout redirect to 502 error
 * I thought that it was caused by cloudflare pagerules but not, I switched to PHP5
   and all is working.
 * I can logout without this redirect to 502 error with PHP7 if I disable hide my
   wp.
 * Anyway to fix this? thank you in advance.
    -  This topic was modified 9 years, 6 months ago by [Dahnark](https://wordpress.org/support/users/dahnark/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Darrel](https://wordpress.org/support/users/johndarrel/)
 * (@johndarrel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/502-error-when-i-am-using-php7/#post-8474626)
 * Hi Dahnark,
 * I noticed that on nginx with PHP7 you get the gateway error. Here is a solution
   to fix that.
    [http://jvdc.me/fix-502-bad-gateway-error-on-nginx-server-after-upgrading-php/](http://jvdc.me/fix-502-bad-gateway-error-on-nginx-server-after-upgrading-php/)
 * Let me know if this solution worked for you
 * Best,
    John
 *  Thread Starter [Dahnark](https://wordpress.org/support/users/dahnark/)
 * (@dahnark)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/502-error-when-i-am-using-php7/#post-8474684)
 * Hello, I reinstalled your plugin but it doesn’t work with nginx in normal version,
   just pro version.
 *  Plugin Author [John Darrel](https://wordpress.org/support/users/johndarrel/)
 * (@johndarrel)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/502-error-when-i-am-using-php7/#post-8475952)
 * Hey,
 * The free version doesn’t work with nginx because usually it needs support and
   we offer support only in the PRO version.
 * I thought that you already bought the PRO version.
 * John

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘502 error when I am using PHP7’ is closed to new replies.

 * ![](https://ps.w.org/hide-my-wp/assets/icon-256x256.png?rev=3217792)
 * [WP Ghost (Hide My WP Ghost) - Security & Firewall](https://wordpress.org/plugins/hide-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-my-wp/reviews/)

## Tags

 * [error-502](https://wordpress.org/support/topic-tag/error-502/)
 * [PHP 7.0](https://wordpress.org/support/topic-tag/php-7-0/)
 * [php-7](https://wordpress.org/support/topic-tag/php-7/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Darrel](https://wordpress.org/support/users/johndarrel/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/502-error-when-i-am-using-php7/#post-8475952)
 * Status: resolved