Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1342756

    I am trying to update my test site from 4.8.6.1 to 4.9.

    I have been an Enfold user for 7 years and am using the same method I always use, namely FTP upload of the new Enfold files.

    Process
    1. Download new theme zip file from Envato, Installable WordPress file only
    2. Unzip locally
    3. FTP upload new theme folder, renamed enfold-new, into /wp-content/enfold/themes
    4. Via FileZilla, rename enfold folder to enfold-old, rename enfold-new to enfold

    Every time I try it and then refresh the WP admin screen, I then get:
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    and the site is dead.

    When I rename the folders back, the website comes back. I have deleted enfold-new, downloaded another copy of the theme from Envato, and tried again – same result.

    I have successfully revalidated the Envato private token today but Theme Update says

    Theme Updates
    No Updates available. You are running the latest version! (4.8.6.1)
    Check Manually

    A click on manual check does NOT find version 4.9, it takes me to WordPress Updates and says

    Themes
    Your themes are all up to date.

    #1 – Why does the manual check fail to find 4.9?

    #2 – Is there anything different in 4.9 that would prevent the FTP upload / update method from working as it previously did?

    #3 – Can you offer any suggestions as to how I can try to figure out what’s going wrong?

    #1342761

    Hey,

    Thanks for contacting us!

    1- There could be an error with your personal token. You can install Envato market plugin – https://www.envato.com/lp/market-plugin/ and insert your personal token there to check if throws any errors.

    2- No, the process you take is correct and should update the theme.

    3- I think an issue with your personal token is preventing auto update. As I mentioned in #1, Envato Market plugin would throw an error if that is the case. We can update the theme for you as well. If you would like us to do so, please post FTP and WP admin logins here privately :)

    Best regards,
    Yigit

    #1342890

    I installed the plugin. Existing token on the site yields:

    Incorrect token permissions, please generate another token or fix the permissions on the existing token.
    Please ensure only the following permissions are enabled:
    View and search Envato sites
    Download your purchased items
    List purchases you've made
    
    Additional Error Details:
    Found too many permissions on token..
    sale:verify
    []

    I created a new token as per plugin instructions, entered it into Envato Market, Save Changes and get:
    Your OAuth Personal Token has been verified.

    When I then enter this new token into Theme Options and Revalidate, I get:

    We checked the token on 2022/03/02 15:59 and we were able to connect to Envato and could access the following information:
    Your purchases
    Username could not be accessed (needed for your information only)
    E-Mail could not be accessed (needed for your information only)
    
    Following errors occurred:
    username Errorcode 403 returned by Envato: Forbidden:
    - code: not_authenticated
    email Errorcode 403 returned by Envato: Forbidden:
    - code: not_authenticated

    The old token in https://build.envato.com/my-apps#tokens had this:

    This token has access to:
    View and search Envato sites
    View your Envato Account username
    View your email address
    Download your purchased items
    Verify purchases of your items
    List purchases you've made

    I then found this page: https://kriesi.at/documentation/enfold/theme-registration/#toggle-id-5, which says the token also needs “View the user’s account profile details”. So I added the other 3 from above and this. The token then validates.

    Before moving on, this raises an issue.

    The default plugin setting states you only need 3 permissions (as did the error message after I’d first installed the plugin):

    View and search Envato sites
    Download your purchased items
    List purchases you've made

    The existing tokens (and I have another licence/token as well as this site we are discussing) all have the 6 permissions above. But creating a new token with 3 or 6 doesn’t validate. I had to add “view account profile” as well. Why does the plugin say you only need 3, the old tokens have 6, but you actually (apparently) now need 7? Have Envato changed the rules/guidance? Whatever, if Enfold needs the 7 then maybe you might want to consider highlighting a link to that #toggle-id-5 page in a sticky post at the top of the forum?

    All that aside, I now have a nice, shiny bright new token that validates on the test site. But the manual update check still fails to find 4.9, and when I do the FTP directory re-name to update, I get the critical error again and the site is dead.

    Please note that the live site, which has the original token that failed on the test site, has found the 4.9 update (it is also on 4.8.6.1) and I have successfully re-validated that original token this afternoon. (The test site is set up as a sub-domain of the live site.)

    I know you offered to update the theme for me but I’d like to get to the bottom of why this token & site update has suddenly stopped working after all these years. Next steps?

    #1343016

    Hi,

    Enfold auto updater requires 7 tokens to be enabled unlike Envato Market plugin and the reason why token is not working on your site might be a restriction on Envato API to block using the same token on multiple installations but to be honest I am not sure.

    When you update the live site with the token, are you still getting critical error?

    Best regards,
    Yigit

    #1343878

    Sorry, been busy elsewhere…

    Updating the live site via Updates > Themes, because 4.9 was showing as available, and using the old, original token that validated in Theme Update, crashed the site with the “critical error”. I had to FTP version 4.8.6.1 back up to /themes to get the site back online.

    After this, back on 4.8.6.1, I could validate this original token in Enfold Child > Theme Update – but the Manual Update check there failed to find 4.9 and Envato Market also fails that token with:

    Incorrect token permissions, please generate another token or fix the permissions on the existing token.
    Please ensure only the following permissions are enabled:
    View and search Envato sites
    Download your purchased items
    List purchases you've made
    Dismiss this notice.
    Additional Error Details:
    Found too many permissions on token..
    sale:verify
    []

    So I tried the new token I generated a few days ago. Theme Update again validates the token but Envato Market fails it as above.

    I then created another new token today. This again validates in Theme Update but again no Manual Update shows up. When I go into Envato Market and add this newest token, Save Changes, I get the error again as above (Incorrect token permissions). But if I go to the Themes tab, it lists Enfold Version 4.9 as available. I have not tried clicking Activate on this for fear of crashing the site again.

    One last try: I did the FTP upload of 4.9 into /themes, did the directory re-name as I’ve always previously done – and the site crashed with ‘critical error’. So reverted back to 4.8.6.1.

    So it appears both sites are now well and truly messed up, and cannot be updated.

    Why is Enfold Child > Theme Update validating all three tokens but Envato Market fails all three? This must be why the auto update is failing but doesn’t explain why the FTP upgrade is also failing.

    What next?

    #1344005

    Hi,

    Could you please post FTP and WP admin logins of your test site here privately so we can look into it? I think the critical error is related to something else and is not connected to the token. We would like to enable debugging mode and find out what is causing the issue and after fixing that we could revert to older version and try updating with the token :)

    Best regards,
    Yigit

    #1344022

    Details attached.

    #1344036

    Hi,

    I updated the theme via Envato Market plugin and it threw the error however I am unable to update files via FTP. I tried to enable debugging mode by editing wp-config.php file but I am unable to upload it. I could not downgrade Enfold version as well.
    Permissions seem correct so I think it might be a security measure by your hosting providers.

    Could you please enable debugging mode by editing wp-config.php file and changing “false” to “true” in following line

    define( 'WP_DEBUG', false );

    Best regards,
    Yigit

    #1344051

    Hi Yigit,

    The site was down. Appearance > Themes said “The active theme is broken. Reverting to the default theme.” It says Enfold Child is Active but then below it says:

    Broken Themes
    The following themes are installed but incomplete.
    Name	Description			
    enfold	Stylesheet is missing.		Delete

    I’ve renamed ‘enfold’ to ‘enfold-4-9’, uploaded 4.8.6.1 and it’s live again.

    Options > Theme Update is also now showing there is a new version (4.9) available.

    Debugging is active plus define( ‘WP_DEBUG_LOG’, true );

    I have hopefully fixed the FTP problem. The hosting provider said that whilst permissions looked OK to you, their system sometimes overrides this after I’d set you up as a new user (he didn’t say why) but he has reset it so you should be fine now.

    #1344108

    Hi,

    Thanks for the update. I’ve uploaded the latest version of the theme for you, and the problem seems to be coming from the shortcodes folder in your child theme, most likely toogles.php. I’ve renamed the shortcodes folder, and it’s working as it should now. Could you check what you are overriding in toggles.php please? If you don’t intend to override anything in that file, then you can delete it.

    Best regards,
    Rikard

    #1344141

    Hi,

    In toggles.php I change the <p> class of the tab headings to <h2> for better SEO e.g.

    Lines 853-858
    Change all instances of p.toggler to h2.toggler
    
    Line 1074
    Change p to h2
    "<h2 data-fake-id='#
    
    Line 1080
    Change p to h2
    '</h2>';

    I can see from the latest toggles.php code that this has been changed so I need to update my ‘shortcode’ alterations. Can I still make these changes if I figure out the new code? I’d better check the other ones I alter as well.

    Can I turn debugging off?

    Assuming the shortcodes were the cause of the critical error upon trying to update, what do you think is creating the errors on the token? If I try to Save Changes in Envato Market now I still get the ‘Incorrect token permissions’ errors yet it validates correctly in Theme Options/Update.

    #1344224

    Hi,

    Thanks for the update. You should still be able to override that theme file, please copy the file from the parent theme, then make the changes you would like to make to it.

    You can turn debugging off if you like.

    I’m not sure what is causing the token problem to be honest with you, we haven’t any other users with the same problem. Maybe you could try reaching out to Envato support? They should be in a better position to help you out with that.

    Best regards,
    Rikard

    #1349574

    I’m not sure what is causing the token problem to be honest with you, we haven’t any other users with the same problem. Maybe you could try reaching out to Envato support? They should be in a better position to help you out with that.

    Just coming back on this last point having tried to engage with Envato Support on this matter over a number of weeks, as @Rikard suggested.

    To quote them from various responses I received:
    “The Envato Market plugin is maintained – we ensure it works best on the latest version of WordPress and on a modern hosting platform, however we can’t guarantee it’ll work on all WordPress sites or hosting environments.”
    and
    “Unfortunately, we are no longer actively providing customer support for the Market Plugin, but, as previously stated, we highly advise on common issues that some users encounter in the ‘Help’ tab of the plugin. ”
    and
    “If you’ve tried all the troubleshooting steps (listed under the Help tab) and you’re still unable to get the Envato Market plugin to work on your site/hosting, at this time, our advice is to remove the Envato Market plugin and instead visit the Downloads section of ThemeForest/CodeCanyon to download the latest version of your items.”

    My guess on why I was getting the errors I reported from the plugin is that the Enfold auto updater requires 7 tokens to be enabled but the Market plugin is very clear on only enabling 3, and no more.

    Whatever, given Envato’s “no support” stance on the plugin and the fact they’re not even willing to look at the problem, I’ve uninstalled the plugin. Case closed!

    #1349617

    Hi,

    Thank you for your patience.

    You may have to look for a different server that is compatible with the plugin or a server that have less strict security features to ensure that the automatic update will push through. But if that is not an option, you can always update the theme manually via FTP.

    Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Cannot update Enfold on website’ is closed to new replies.