Title: Bug fix: Exec-PHP causes dashboard to fail in HTTPS WP site
Last modified: August 21, 2016

---

# Bug fix: Exec-PHP causes dashboard to fail in HTTPS WP site

 *  [Olathe](https://wordpress.org/support/users/olathe/)
 * (@olathe)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/bug-fix-exec-php-causes-dashboard-to-fail-in-https-wp-site/)
 * When Exec-PHP is enabled and the site is set up to force HTTPS, the dashboard
   will not work properly because it cannot load admin-ajax.php, since it tries 
   to load it from `http://servername/wp-admin/admin-ajax.php` rather than `https://
   servername/wp-admin/admin-ajax.php`.
 * This can be fixed by changing a line in `wp-content/plugins/exec-php/includes/
   admin.php`:
 * `'requestFile' => get_option('siteurl'). '/wp-admin/admin-ajax.php',`
 * to
 * `'requestFile' => admin_url() . '/admin-ajax.php',`
 * [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)

The topic ‘Bug fix: Exec-PHP causes dashboard to fail in HTTPS WP site’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/exec-php.svg)
 * [Exec-PHP](https://wordpress.org/plugins/exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/exec-php/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Olathe](https://wordpress.org/support/users/olathe/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/bug-fix-exec-php-causes-dashboard-to-fail-in-https-wp-site/)
 * Status: not resolved