• Resolved aqsis1

    (@aqsis1)


    I tried installing Elementor on an existing WordPress site (hosted on OpenShift/RHCloud), and ran into some problems, couldn’t seem to edit any pages with Elementor. So I tried running up a clean install of WordPress on a new app in OpenShift.

    Clean install of 4.5.3, installed Elementor only, no other plugins, and using Twenty Sixteen as the them. I create a page, edit with Elementor, drop a Text Editor onto the default section, and all seems ok, I can see the default text, I can edit it in the edit panel. But if I select something else, and then try to select the Text Editor again, nothing. If I save, it says it’s saved, but when I return to the page, it’s unchanged, no Text Editor widget.

    Very keen to use Elementor in place of SiteOrigin, it seems so much more powerful, any help appreciated. I’m running on a Mac in Chrome. The only messages in the developer console are:

    JQMIGRATE: Migrate is installed, version 1.4.1
    Failed to parse SourceMap: http://wp2-pendng.rhcloud.com/wp-content/plugins/elementor/assets/admin/js/lib/backbone.radio.min.js.map
    jquery-migrate.min.js?ver=1.4.1:2
    JQMIGRATE: Migrate is installed, version 1.4.1

    Below is my system info:

    == Server Environment ==
    Operating System: Linux
    Software: Apache/2.2.15 (Red Hat)
    MySQL version: 5.5.45
    PHP Version: 5.4.40
    PHP Max Input Vars: 1000
    PHP Max Post Size: 200M
    GD Installed: Yes

    == WordPress Environment ==
    Version: 4.5.3
    Site URL: https://wp2-pendng.rhcloud.com
    Home URL: http://wp2-pendng.rhcloud.com
    WP Multisite: No
    Max Upload Size: 200 MB
    Memory limit: 40M
    Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
    Language: en-US
    Timezone: 0
    Admin Email: paul.gregory@pendng.com
    Debug Mode: Inactive

    == Theme ==
    Name: Twenty Sixteen
    Version: 1.2
    Author: the WordPress team
    Child Theme: No

    == User ==
    WP Profile lang: en_US
    User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

    == Active Plugins ==
    Elementor
    Name: Elementor
    Version: 0.5.2
    Author: Elementor.com

    https://wordpress.org/plugins/elementor/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Your problem really interested me, so I have opened an account on openshift and saw the problem.

    The WordPress admin is configured somehow to work only with SSL so if you edit pages with Elementor in non SSL URL it will failed.

    Verify before you start editing the page that you have HTTPS in your URL.

    Thread Starter aqsis1

    (@aqsis1)

    Excellent, that solved it perfectly, thank you so much. Can go and start refactoring my site now to use Elementor.

    Sincerely

    Paul

    Hi,

    Can you insert this code in your theme functions.php and see if it work without interaction from your side.

    add_filter( 'admin_url', function( $url ) {
        if ( is_ssl() || force_ssl_admin() ) {
            $url = str_replace( 'http://', 'https://', $url );
        }
        return $url;
    } );
    Thread Starter aqsis1

    (@aqsis1)

    Tried that, didn’t notice any difference when editing with Elementor either from the dashboard page list, or direct from the page.

    Paul

    This need to solve the problem deal with the url for http and https, if you can edit without touching the url the fix is working.

    Thread Starter aqsis1

    (@aqsis1)

    Yep, I thought that was the case. However, when I added this, I didn’t notice any difference. If I click the “Edit with Elementor” link in the page list of the admin interface, which is https necessarily, it opens the Elementor editor with http, and exhibits the same problem as before. If I then change the Elementor URL to be https and refresh, it works properly.

    Paul

    Thread Starter aqsis1

    (@aqsis1)

    Sorry, been away from the site for a while. This is still not resolved for me. I click the edit in Elementor link from any of the possible locations, and it still opens with http, and I have to manually add https to the url and refresh to be able to use Elementor.

    Not insurmountable, but inconvenient.

    @yehudah I have a similar problem related to the HTTPS. We are using CloudFlare and their FlexibleSSL., which means that the request to the server is actually via HTTP, but it proxied with CloudFlares SSL.

    I’ve done some digging in your code and found that Utils::get_edit_link() is using get_permalink(), which using get_home_url() for page editing (link-template.php). I suspect that something is messed up there, because is_ssl() is true but it still generates an http scheme URL.

    I’m pretty sure it’s because the following logic is executed:
    `
    $scheme = parse_url( $url, PHP_URL_SCHEME );
    $url = set_url_scheme( $url, $scheme );
    `

    So even if is_ssl() is true, it’s ignored since the request is HTTP. A quick fix would be:
    `
    public static function get_edit_link( $post_id = 0 ) {
    $edit_url = add_query_arg( ‘elementor’, ”, get_permalink( $post_id ) );
    if ( is_ssl() ) {
    $edit_url = str_replace(‘http://’, ‘https://’, $edit_url);
    }

    return apply_filters( ‘elementor/utils/get_edit_link’, $edit_url, $post_id );
    }
    `

    • This reply was modified 7 years, 6 months ago by Vova Feldman.

    I have a site also using Cloudflare’s FlexibleSSL and have noticed some quirks. I’ll report back if I can detail them specifically.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can't edit or save any page’ is closed to new replies.