WordPress.org

Support

Support » Plugins and Hacks » Exec-PHP » Bug fix: Exec-PHP causes dashboard to fail in HTTPS WP site

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/

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