WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] A few problems (8 posts)

  1. Bill Dennen
    Member
    Posted 3 years ago #

    Hi,

    I am having trouble with the front-end editor. Basically, when I double-click on content to edit it, the NicEdit box comes up empty. Nothing in it.

    I am running wp-admin behind SSL and thought that might be it. So, as a test, I set this to false.

    define('FORCE_SSL_ADMIN', false);

    Now, when I double-click on the content, the NicEdit box is filled with simply:

    -1

    Clearly FORCE_SSL_ADMIN is having some effect. But, there may be something else going on here, too.

    any ideas?

    Thanks.

  2. Bill Dennen
    Member
    Posted 3 years ago #

    I did some more digging.

    With FORCE_SSL_ADMIN true, since this is how we want to run it.

    URL of post = http://somedomain.com/somesite/2010/10/test-2/

    All of our public-facing pages are accessed over http. Backend should be https.

    If I try to edit the content with the front-end-editor, I get the blank NicEdit box.

    If I change the URL of the public page to https:

    https://somedomain.com/somesite/2010/10/test-2/

    it works! Looking for suggestions.

  3. Bill Dennen
    Member
    Posted 3 years ago #

    any suggestions for this? Should this plugin work with an SSL backend?

  4. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    It fails because it's trying to make an ajax request to a SSL page (wp-admin/admin-ajax.php) from a regular page.

    So, you either make the entire site SSL or tweak the ajax_url variable in the plugin to use the http:// protocol.

  5. TheRingBearer
    Member
    Posted 2 years ago #

    scribu > Could you please detail more about tweaking the ajax_url variable ? If the plugin use some php functions in wp-admin directory AND if wp-admin is always accessed through https, how could you make it work ?

  6. Nyhm
    Member
    Posted 2 years ago #

    @scribu, Could you clarify this issue? If page is https, then wp-admin/admin-ajax.php should be over https ... right?

    What I'm seeing is a bunch of access logs of wp-admin/admin-ajax.php via http when WP admin is strictly https, which bothers me greatly (and causes 'partially encrypted content' warnings).

  7. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    To generate the ajax url, the plugin uses the admin_url() function:

    http://plugins.trac.wordpress.org/browser/front-end-editor/trunk/php/core.php?rev=428274#L53

    which should be SSL aware:

    http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/link-template.php#L2043

    I don't know what else to tell you.

  8. Nyhm
    Member
    Posted 2 years ago #

    Yes, that's exactly what I thought, too. I must have a plugin that is hard-coding the http. Thanks for your input.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic