Unable to edit element in Cornerstone

Hi,

after the most recent update, I’m seeing some strange issues when trying to edit some cornerstone pages. Before the updates, I was perfectly able to edit the pages without any issues.

The problem is this:
This element could not render due to invalid template markup. This could be due to changes introduced by a third party plugin. The front end of your site should still function normally

I am running the latest versions:
WordPress 4.9.8
X Theme 6.3.6

I read about others having the same issues, so I tried clearing the cache, but the problem persists. If I were only able to manually edit the HTML and remove the offending code, it would be an easy fix, but that seems impossible.

Any idea on how I can fix this?

Sample URL: https://vibegroup.nl/it-recruitment-specialist/ (The code renders fine BTW, just not in Cornerstone).

If required, I can give you admin access to wp-admin.

I look forward to your reply!

Regards,
Rinck

Hello Rinck,

Please check for the following first:

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.

  2. If you’re using a caching plugin, clear all caches including browser cache then deactivate your caching plugin and other optimization plugins.

  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.

  4. Test for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

  5. Remove custom CSS, Javascript and templates.

  6. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

If the issue persists, please provide us with the admin access to your site in a Secure Note:

Hi, sorry for the late reply. Apparently I forgot to mention in my previous post that I had already found the checklist you mentioned and tried all steps, without any success.

I have created an exact copy of this website on our test server and created credentials for you to take a look at the issue. I will post these in a private message.

Regards,
Rinck

Hello @VibeGroupNL,

Thanks for updating the thread.

I tried loading and login the website but it keeps on loading, so I am not able to login and test the problem. Can you please confirm?

Having said that, in first reply you posted I see that you are using X Theme version 6.3.6. Since then we have released couple of bug fixes release. I suggest you please update X Theme and Cornerstone to version 6.3.8 and 3.3.8 respectively and see how it goes.

Thanks.

Hi,

I’ve updated all the plugins and rebooted the server; you may have just been unlucky to catch the test server during some routine maintenance. Its not the fasted, but is currently up and running! :wink:

After the updates, the issue still persists.

Regards,
Rinck

Hi Rinck,

Sorry that you’re having that issue, I can confirm that the theme has that bug on the previous release, but it has been fixed with the latest version (X6.3.8 / CS3.3.8)

I did check the page that you point above and yes I can see the issue, but there is another issue though that hindering me (not sure if this is happening on your live site as well), but your test site does not allow saving in Cornerstone, It gives me that error below when I try to save.

{"success":false,"data":{"invalid_user":true,"message":"nonce verification failed."}}

Upon further investigation, I see that your MYSQL version is 5.5.62, would you mind updating this to 5.6 or higher. Also, please update your PHP version to 7.1. Please contact your hosting support if you need assistance on this matter.

Let us know how it goes,
Cheers!

I could upgrade both MySQL and PHP, but don’t see how these are related to issue. These upgrades have been scheduled, but yet due to other priorities.

The saving issue has been resolved now, was due to memory_limit restrictions on the test server, which I have now upped. Although I am curious as to why the saving would require so much memory; it wouldn’t save with anything less than 512MB of available RAM.

Hi Rinck,

I took some time to investigate your issue further. On your test site, I did the following.

  1. Re-installed WordPress.
  2. Re-installed latest version of X theme.
  3. Re-installed latest version of Cornerstone plugin.
  4. Switched to your parent X theme (It seems you’re using an older version of child theme, please download our newer version of child theme from your Themeco dashboard).
  5. Regenerated permalink settings to reset your .htaccess file (I have chosen the same postname setting as it was).
  6. Purged server cache.

After doing the above steps, I was able to edit your referenced page in Cornerstone. Could you please test it on your end as well.

Thanks!

Hi,

thanks for your reply; however, it seems as if nothing has changed. The element you posted in your screenshot was never the issue, it has always been almost all the way at the bottom of that particular page (I’ve attached a screenshot as well to show the problem element).

When I look at the page now, the problem is still there. If I could remove the broken element, or edit it somehow, I could easily fix it, but the problem is that I can’t and I can’t remove it from the page HTML either, since Cornerstone doesn’t accept any changes from outside its own editor.

Any other ideas?

Hi Rinck,

I can see that in the preview, but there is nothing in the skeleton mode.

Hence, there is no missing or corrupted HTML at all as it works when I imported the home page content to a test page (but goes back after page reload). But I still can’t find what’s causing this. Would you mind providing your FTP login credentials as well? I’ll check if there are any errors being logged.

Thanks!

Unfortunately we don’t have an FTP server running; instead we always use SFTP over SSH which requires a certificate. I could generate one for you or if you have one you prefer to use, you could send me the public part and I’ll create an account for you. Otherwise, if there a logfile you wish to see, maybe I could just attach that to this message? Nginx error log? Or is there a specific X theme log somewhere?

Thanks!

Hi There @VibeGroupNL

In that case, edit your wp-config.php file in the root of your WordPress installation and replace the following line define( 'WP_DEBUG', true ); with the below code.

define( 'WP_DEBUG', true ); 
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

This will create an error log file under your wp-content directory, with the name of debug.log. Perform some activities on your site again and then check your dubug.log file to see the actual errors.

Let us know how it goes.
Thanks!

I just updated wp-config.php with your suggestions and tried opening the page again, saving it, but no debug.log appears; so I’m assuming no errors were thrown.

However, your suggestion to use skeleton mode did lead me to the actual issue: the Classic Promo elements which were not shown had an HTML error inside, there was a keyword “name” between the “href” and “title” attribute. After removing that, and switching back to rich text mode for this element, the element magically reappears! :smiley:

Thanks very much for your help, I’ll fix the issue on the live website and we should be good to go!

Regards,
Rinck

You’re welcome, Rinck. Glad we’re able to lead you to the offending element.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.