Viewing 15 replies - 16 through 30 (of 30 total)
  • Thread Starter renderinnovations

    (@renderinnovations)

    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

    (@mvied)

    Where did you put it?

    Thread Starter renderinnovations

    (@renderinnovations)

    I the code you gave me in wp-config.php right above “that’s all happy blogging”

    Plugin Author mvied

    (@mvied)

    Well… something else is causing that error.

    Thread Starter renderinnovations

    (@renderinnovations)

    it’s because currently I’m editing the line 330 in jigoshop

    Plugin Author mvied

    (@mvied)

    Just undo it and see if it works. If it doesn’t, I can tell you what to do.

    Thread Starter renderinnovations

    (@renderinnovations)

    I just undid everything, for some reason, saying there’s something extra. Hmm

    Plugin Author mvied

    (@mvied)

    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

    (@renderinnovations)

    okay that part is fixed haha wow, I’m not with it. I’m sorry

    Plugin Author mvied

    (@mvied)

    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

    (@renderinnovations)

    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

    (@renderinnovations)

    It’s officially fixed!

    Thank you sooo much!

    Thread Starter renderinnovations

    (@renderinnovations)

    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

    (@mvied)

    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

    (@renderinnovations)

    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)

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