Title: [Plugin: WordPress HTTPS (SSL)] Edit the Host
Last modified: August 20, 2016

---

# [Plugin: WordPress HTTPS (SSL)] Edit the Host

 *  Resolved [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/)
 * Hi! I accidently typed and saved the wrong host for ssl. This was a text input
   setting on the plugin. What file in the backend would I need to go to change 
   this? When I login to wordpress it tries to take me to the domain name host that
   I input. I uninstalled the plugin to keep the site live.
 * Thanks!
 * Adam B
 * [http://wordpress.org/extend/plugins/wordpress-https/](http://wordpress.org/extend/plugins/wordpress-https/)

Viewing 15 replies - 16 through 30 (of 30 total)

[←](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/?output_format=md)
2

 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926369)
 * Sorry, I changed the wp-config.php file. which resulted in the fatal error above.
 * I’m now trying to changed
    $wordpress_https->isSsl()
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926370)
 * Where did you put it?
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926371)
 * I the code you gave me in wp-config.php right above “that’s all happy blogging”
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926372)
 * Well… something else is causing that error.
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926373)
 * it’s because currently I’m editing the line 330 in jigoshop
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926375)
 * Just undo it and see if it works. If it doesn’t, I can tell you what to do.
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926376)
 * I just undid everything, for some reason, saying there’s something extra. Hmm
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926377)
 * From:
 *     ```
       'ajax_url' => (!is_ssl()) ? str_replace('https', 'http', admin_url('admin-ajax.php')) : admin_url('admin-ajax.php'),
       ```
   
 * To:
 *     ```
       'ajax_url' => admin_url('admin-ajax.php'),
       ```
   
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926378)
 * okay that part is fixed haha wow, I’m not with it. I’m sorry
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926379)
 * Any time you update that plugin, you’ll have to re-do that fix. I would advise
   talking to the plugin author about changing it. The `admin_url` function has 
   a second argument `$scheme` that they should be using. Ask them to update their
   code.
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926380)
 * Okay will do. However, the actual checkout creates
 * > Warning: require_once(/home/predator/public_html/https://predatorproducts.com/
   > wp-admin/includes/ajax-actions.php) [function.require-once]: failed to open
   > stream: No such file or directory in /home/predator/public_html/wp-admin/admin-
   > ajax.php on line 30
   > Fatal error: require_once() [function.require]: Failed opening required ‘/home/
   > predator/public_html/https://predatorproducts.com/wp-admin/includes/ajax-actions.
   > php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/predator/public_html/
   > wp-admin/admin-ajax.php on line 30
 *  error. after simply adding the ajax_url. I”ll keep looking at it
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926381)
 * It’s officially fixed!
 * Thank you sooo much!
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926382)
 * Okay so here is a recap on the issue.
 * You are right, they have a second argument and the code `'ajax_url' => (!is_ssl())?
   str_replace('https', 'http', admin_url('admin-ajax.php')) : admin_url('admin-
   ajax.php'),`
    Is wrong.
 * Then, for some reason in the actual admin-ajax folder it was trying to call a
   full domain name, instead it needed to have just have `wp-admin/includes/ajax-
   actions.php'`
 * I”ll contact the developer and let them know of error.
 * You have helped me soo much. Expect good words around!
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926383)
 * You can let them know that they can use my plugin for SSL detection. Very popular
   plugins such as Gravity Forms do this, so I’m going to support it for the foreseeable
   future.
 * For example, from:
 *     ```
       'ajax_url' => (!is_ssl()) ? str_replace('https', 'http', admin_url('admin-ajax.php')) : admin_url('admin-ajax.php'),
       ```
   
 * To:
 *     ```
       'ajax_url' => ( !( isset($wordpress_https) ? $wordpress_https->isSsl() : is_ssl() ) ? str_replace('https', 'http', admin_url('admin-ajax.php')) : admin_url('admin-ajax.php') ),
       ```
   
 * Or even better:
 *     ```
       'ajax_url' => admin_url('admin-ajax.php', ( isset($wordpress_https) ? $wordpress_https->isSsl() : is_ssl() ) ? 'https' : 'http'),
       ```
   
 * Or simply calling `admin_url('admin-ajax.php')`, but they may have a reason for
   doing it their way.
 *  Thread Starter [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * (@renderinnovations)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926384)
 * Awesome! There are tons of people that are having this issue with jigoshop. I’ll
   be sure to send them to this discussion to solve the issue! You’re help has been
   so awesome

Viewing 15 replies - 16 through 30 (of 30 total)

[←](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/?output_format=md)
2

The topic ‘[Plugin: WordPress HTTPS (SSL)] Edit the Host’ is closed to new replies.

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

 * 30 replies
 * 2 participants
 * Last reply from: [renderinnovations](https://wordpress.org/support/users/renderinnovations/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-ssl-edit-the-host/page/2/#post-2926384)
 * Status: resolved