Change WordPress user roles and capabilities Forums Bug Reports Strange error with Elegant Themes when attempting to update

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1546
    Printrbot
    Spectator

    I am getting a strange error when I attempt to update the plugin…
    http://www.screencast.com/t/loRVGmHB

    Not sure why that plugin would cause an issue, but I have also double checked the key and it does match…
    http://www.screencast.com/t/9SJOQy3KE
    http://www.screencast.com/t/BtgjaZJS

    #1547
    Vladimir
    Keymaster

    Did you check the URE’s license key at ‘Settings->URE->General’ tab? May be URE’s update error took place but WordPress got the wrong error message…

    Is it possible to get a copy of ‘Elegant themes’ plugin to try the update of URE with ET activated (even without API key)? Send installation package to the support [at-sign] role-editor.com then.

    #1549
    Printrbot
    Spectator

    The license is valid. http://www.screencast.com/t/p6tDN57arE3o

    I will email you the ET plugin. You can also download it from here I think… http://www.elegantthemes.com/downloads/elegant-themes-support.zip

    #1551
    Printrbot
    Spectator

    FYI – here is the reply I got from WP Engine support regarding this issue…

    ======================================
    Hi there,

    I’m actually seeing a few issues with this plugin. For instance it’s WordPress.org plugin page is throwing an instant error that could have something to do with why this plugin is not avaible for update:

    http://pasteboard.co/1gHsuBtS.png

    I saw that you put in a support request to the plugin’s support forum which is great. I can imagine based on their most recent update release that their ability to define the plugin’s licence key in the wp-config.php may have something to do with it:

    http://pasteboard.co/1gHvC0N9.png

    As of right now there is no clear error being generated on our end because of this failed update and does look like a plugin conflict between it and the Divi theme made by Elegant Themes.

    A temporary work around may be to either deactivate the theme during low traffic time and attempt the update or by deactivating and removing the User Role Editor plugin and installing the latest downloaded version. Not great options and I would highly recommend backing up the site before making either of those changes so I would recommend waiting to hear back from the plugin developer and let us know if they find something specific to our platform.

    We would usually recommend testing this issue in staging but because it’s related to a licence key it’s very unlikely we woule be able to reproduce the issue using the printerbot.staging.wpengine.com URL as it wouldn’t have a licence key for either and making the update would likely fail there.

    Feel free to pass this information to them and apologies there isn’t anything clear for us to point to with this one.

    Best wishes,

    Richard | Enterprise Support Specialist
    WP Engine

    ===============================================

    #1552
    Vladimir
    Keymaster

    Hi,

    Thanks. For the additional information and provided code.
    Richard from WP Engine was almost right when wrote: “does look like a plugin conflict between it and the Divi theme made by Elegant Themes.”. It is a conflict between WordPress and the Divi theme. As if you get update error for any other plugin you will get the similar error message replacement from Divi theme.
    I found a reason, why instead of the URE plugin update error we see the error message from the Divi theme in this case.
    There is this function (I have an older version possibly) at the themes/Divi/epanel/custom_functions.php file:

    
    add_filter( 'gettext', 'et_admin_update_theme_message', 20, 3 );
    function et_admin_update_theme_message( $default_translated_text, $original_text, $domain ) {
    	global $themename;
        $theme_page_message = 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Automatic update is unavailable for this theme.</em>';
    	$updates_page_message = 'Update package not available.';
    
        if ( is_admin() && $original_text === $theme_page_message ) {
            return __( 'There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s details</a>. <em>Before you can update your Elegant Themes, you must first install the <a href="https://www.elegantthemes.com/members-area/documentation.html#updater" target="_blank">Elegant Updater Plugin</a> to authenticate your subscription.</em>', $themename );
        }
    
    	if ( is_admin() && $original_text === $updates_page_message ){
    		return __( 'Before you can update your Elegant Themes, you must first install the <a href="https://www.elegantthemes.com/members-area/documentation.html#updater" target="_blank">Elegant Updater Plugin</a> to authenticate your subscription.', $themename );
    	}
    
        return $default_translated_text;
    }
    

    This function does not check a $domain value. I’m sure it should. If we add

    
     if ($domain!='Divi') {
         return $default_translated_text;
     }
    

    to the begin of the function above, we will see the correct error message:

    
    An error occurred while updating User Role Editor Pro: Update package not available.
    

    which in other cases is replaced by the message from the Divi theme code, as this function makes replacement not for the ‘Divi’ text domain only, but and for the default one too.
    Contact Elegant Themes support to fix this issue.

    #1553
    Printrbot
    Spectator

    I have relayed this info to ET support but I can’t get anyone to reply or help out. So I deleted the role editor plugin on our staging site and installed the latest version. It worked, but of course I lost all of the data and settings.

    What about just copying over the files via FTP and overwriting everything in the /user-role-editor-pro/ folder? I assume all of the data would remain in the database for users and their roles?

    http://www.screencast.com/t/HinNvJ48x

    I’m just trying to find a work around solution in case ET support does not get back to me.

    #1554
    Vladimir
    Keymaster

    Manual URE plugin update scenario without losing any data:
    1) Deactivate plugin
    2) Delete old files under plugin folder using FTP
    3) Copy new files into plugin folder
    4) Activate plugin back

    In case your site missed URE license key somehow, starting from version 4.18.5 I removed the feature, when URE license key was deleted automatically in case of site domain, absolute path or database name change. Additionally you may specify URE license key at wp-config.php as the PHP constant. Look at version 4.18.5 changelog.

    #1555
    Printrbot
    Spectator

    I followed the steps and it worked perfectly. The license key was also saved. Thanks for the help! Hopefully Elegant Themes will fix their issue so that I don’t run into this issue again.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.