Title: Buf Fix: Admin Panel over HTTPS problems
Last modified: August 21, 2016

---

# Buf Fix: Admin Panel over HTTPS problems

 *  [eyalgursoy](https://wordpress.org/support/users/eyalgursoy/)
 * (@eyalgursoy)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/buf-fix-admin-panel-over-https-problems/)
 * On WP sites that force SSL in the admin panel, Exec-Php is referencing JS files
   from HTTP and not HTTPS.
 * This can be fixed by adding the following code in `wp-content/plugins/exec-php/
   includes/const.php` line 42:
 *     ```
       if (function_exists('plugins_url'))
       	define('ExecPhp_HOME_URL', plugins_url() . '/'. ExecPhp_HOMEDIR);
       ```
   
 * change the following if statement from:
    `if (defined('WP_PLUGIN_URL'))` to `
   elseif (defined('WP_PLUGIN_URL'))`
 * [https://wordpress.org/plugins/exec-php/](https://wordpress.org/plugins/exec-php/)

Viewing 1 replies (of 1 total)

 *  [msebald](https://wordpress.org/support/users/msebald/)
 * (@msebald)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/buf-fix-admin-panel-over-https-problems/#post-4735739)
 * Thank you for this little patch. I do not see any more errors in the admin panel
   now.

Viewing 1 replies (of 1 total)

The topic ‘Buf Fix: Admin Panel over HTTPS problems’ 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/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 1 reply
 * 2 participants
 * Last reply from: [msebald](https://wordpress.org/support/users/msebald/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/buf-fix-admin-panel-over-https-problems/#post-4735739)
 * Status: not resolved