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.phprather thanhttps://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',
The topic ‘Bug fix: Exec-PHP causes dashboard to fail in HTTPS WP site’ is closed to new replies.