Classic SEO - issue editing snippet/title

So after trying versions v0.3.0 and v0.3.1, clearing the caches in between, with no improvement, then reverting back to Rankmath, which got things back to normal, I have now tried 0.2.2 and can happily say that everything is back to normal.

So I have now reactivated Github Updater. Once the cache is refreshed, it indicates that a new version of Classic seo is available (0.3.2). An error occurs during the update and the site is stuck in Maintenance mode.

After deleting the maintenance folder and trying to update once again, I get this message:

The plugin classicpress-seo/classicpress-seo.php has been deactivated due to an error: Plugin file does not exist.

When I check the files on the server I still have a classicpress seo folder in the plugins folder, with the assets and languages folder as well as .gitignore and License.

So I start again and re-upload v0.2.2 back into the classicpress seo folder, clear cache, activate it and the settings still appear to be saved and everything appears normal again.

So I try with the update again. It fails and I get this message:

Update Failed: chb44.com | 524: A timeout occurred body{margin:0;padding:0} Error 524 Ray ID: 539e796e3f2bcda7 • 2019-11-22 22:54:12 UTC A timeout occurred You Browser Working Paris Cloudflare Working chb44.com Host Error What happened? The origin web server timed out responding to this request. What can I do? If you’re a visitor of this website: Please try again in a few minutes. If you’re the owner of this website: The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server. To resolve, please work with your hosting provider or web development team to free up resources for your database or overloaded application. Additional troubleshooting information here. Cloudflare Ray ID: 539e796e3f2bcda7 • Your IP: 2a01:cb05:832f:9700:bc7c:d26f:c724:8fd6 • Performance & security by Cloudflare

And my site then gets stuck into maintenance mode.

Haven’t a clue if this is a problem with my site, my hosting, the github updater or something else.

Eventually after 4 attempts, it updates to version 0.3.1

After once again clearing the cache, I notice that the same problem that I was having previously of not being able to edit snippet and not insert links has returned.

Will revert back to v0.2.2 for now.

3 Likes

I’ve been carrying out some tests.

Updating

Update available but doesn’t update

I ran into an issue where on the plugins page, it says there was an update available for Classic SEO, from 0.3.1 to 0.3.2. After updating, the version remained at 0.3.1 and I still got the update available notice. Tried a few times, same result. I then noticed that the GitHub Updater was fetching v0.3.1 each time, hence the reason the update was seemingly failing. After clearing the Updater cache, the update worked first time.

So in this case, it would appear that it’s necessary to click on the “Refresh Cache” button in GitHub Updater settings before every update.

Update fails with “deactivated due to an error” message

You may get a message similar to the following after updating Classic SEO:

The plugin classicpress-seo/classicpress-seo.php has been deactivated due to an error: Plugin file does not exist.

I suspect this issue is to do with folder names and the way GitHub packages the files into the zip.

I’ve flagged this as an issue which I will look into.

Unable to edit snippets & add links

I’m struggling with this one. I can’t reproduce this at all.

I’ve tested using these themes:

  • ClassicPress TwentySeventeen
  • Twenty Nineteen
  • News Portal
  • GeneratePress
  • Storefront
  • Divi
  • Astra

and with the these active plugins:

  • Contact Form 7
  • Flying Pages
  • WP Edit
  • WP Fastest Cache
  • WP Mail SMTP
  • WP-Optimize
  • AddToAny Share Buttons
  • Anti-spam (By webvitaly)
  • NextScripts: Social Networks Auto-Poster
  • Pin It Button On Image Hover And Post

Everything works as expected for me.

Could you tell me exactly what does, or does not, happen when you try to edit the snippet / title and when you try to add a link to the page? For instance, is the “Edit Snippet” button disabled and when you click on it nothing happens?

Calling all Classic SEO users

I could do with some help in trying to track this problem down. I know @anon71687268 has said he can’t reproduce the issue. I’d be grateful if others could try to a) edit the snippet on a page and post and b) add a link into a post and page.

Could you please report back here either way and let me know what theme you’re using.

Thanks!!

3 Likes

I installed Classic SEO on a brand new site with no other plugins and the default theme. It did appear to work as expected in that I was able to edit the snippet. It was just a super quick look at the code on the master branch to ensure it wasn’t a conflict at the base level… it wasn’t an actual attempt to reproduce the error. :slight_smile:

3 Likes

I’ve 2 sites running smoothly through all updates. Next week I’ll move other 5 so I can test a bit…

4 Likes

No, sorry. Didn’t intend to misquote you or anything. All I meant to say is that you didn’t experience the same problems as @spanner44 when you tried it.

2 Likes

This is what happens when I install the updated versions.

First problem, if I highlight some text, then click the insert link button, the little box appears as usual with a place for the url as well as the cog. If I press the cog which take me to more options, the page freezes. I can click on the side bar (Dashboard, Media, pages etc), I can click on publish, save draft as long as it is the view. But basically it is frozen.

Second problem is in the classic seo box/tab. the title doent show, it says you can enter a custom text and if you tryt and enter a meta description, then as soon as you click ‘Edit Snippet’, the page scrolls to the top.

Also, I presume this is related, but haven’t checked this, is that a contributor asked me why all my links had reverted to no-follow, when I hadn’t done anything different. This seemed to resolve itself according to him when I reverted back to RankMath and I presume is ok on v0.2.2

I hope this is clear. As I have previously mentioned, RankMath (latest updated version) appears to work fine and also classic seo v0.2.2 (which I am now currently using seems to work ok as well.

2 Likes

That part sounds like a JS error. It could be that the JS didn’t load, it’s conflicting with something else, or the id on the link doesn’t match what the JS is targeting.

2 Likes

Certainly does.

I can’t answer this except to say that there is a setting in General Settings → Links that allows all external links to be set to nofollow, but this is disabled by default. It might be worth checking though just to rule it out.

@spanner44 are you familiar with the browser dev console? Pressing F12 usually opens the console. If you go to edit a page or post with the dev console open, then refresh the page, in the “console” tab, it should show any JS errors if there are any.

Similarly, if you go to the “network” tab, that will show any 404 errors.

As an example, the console looks like this in Firefox:

Sorry if I’m teaching your grandmother to suck eggs!

Finally, if you want me to logon to your site sometime, please pm me the details but I’ll understand perfectly if you’d rather not do this.

1 Like

I hope I have got this correct.

Updated once again to latest version. Cleared cache. Same problem.

Did the console and this is what I got in Red:

JQMIGRATE: Migrate is installed, version 1.4.1
jquery.tag-editor.js?ver=1.0.21:1 Uncaught ReferenceError: classicPress is not defined
at jquery.tag-editor.js?ver=1.0.21:1
at jquery.tag-editor.js?ver=1.0.21:1
jquery.tag-editor.js?ver=1.0.21:1 Uncaught TypeError: Cannot read property ‘replace’ of undefined
at a.fn.init.a.fn.tagEditor (jquery.tag-editor.js?ver=1.0.21:1)
at new e (post-metabox.js?ver=0.3.2:1)
at e.value (post-metabox.js?ver=0.3.2:1)
at e.value (post-metabox.js?ver=0.3.2:1)
at new n (post-metabox.js?ver=0.3.2:1)
at HTMLDocument. (post-metabox.js?ver=0.3.2:1)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=cp_eee8806a:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=cp_eee8806a:2)
at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=cp_eee8806a:2)
at HTMLDocument.J (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=cp_eee8806a:2)
(unknown) DomDistiller debug level: 0

When I click the link options I get this:

wp-tinymce.php?c=1&ver=4800-20180716:45 Uncaught TypeError: Cannot read property ‘show’ of undefined
at Object.open (wplink.js:1)
at i.onclick (wp-tinymce.php?c=1&ver=4800-20180716:45)
at jg.c.fire (wp-tinymce.php?c=1&ver=4800-20180716:3)
at i.fire (wp-tinymce.php?c=1&ver=4800-20180716:5)
at HTMLDivElement.o (wp-tinymce.php?c=1&ver=4800-20180716:5)
at C (wp-tinymce.php?c=1&ver=4800-20180716:3)
at HTMLDivElement.d (wp-tinymce.php?c=1&ver=4800-20180716:3)
open @ wplink.js:1
onclick @ wp-tinymce.php?c=1&ver=4800-20180716:45
c.fire @ wp-tinymce.php?c=1&ver=4800-20180716:3
fire @ wp-tinymce.php?c=1&ver=4800-20180716:5
o @ wp-tinymce.php?c=1&ver=4800-20180716:5
C @ wp-tinymce.php?c=1&ver=4800-20180716:3
d @ wp-tinymce.php?c=1&ver=4800-20180716:3

Nothing changed when I clicked Edit snippet, it just returns me to the top of the page.

attached screenshot of the test post with the snippet section, which normally has the title already in place and the snippet is able to be changed.

Hope this helps. I don’t mind you looking at my site, where do you want me to send the info to for login etc.

HEdit Post ‹ Life in France — ClassicPress.pdf (500.8 KB)

2 Likes

Too long didn’t read (litterally I didn’t read all of the above): try disabling cloudflare.
I know it seems not related, but I have a very strong gut feeling…
I also agree it “could be” js related.
One of the errors you mention comes from a cloudflare timeout. So first I would disable it and see if something changes.

1 Like

Thanks for this @spanner44.

There are a number of things here that all point to Classic SEO, the most telling being:

Uncaught ReferenceError: classicPress is not defined at jquery.tag-editor.js?ver=1.0.21:1

For information, the following JS files (mentioned in your post) are all related to Classic SEO:

  • jquery.tag-editor.js
  • post-metabox.js
  • wplink.js

The error “classicPress is not defined” suggests that your installation has got a bit messed up. It seems to have a mix of old and new files as “classicPress” is no longer used in version 0.3.x. That’s from version 0.2.x.

I will send you a private message to which you can respond and give me the login details.

3 Likes

@ElisabettaCarrara could you let me know which is the Cloudflare error please so I can investigate further? Thanks.

1 Like

Many thanks for your help. Private message sent with info for you.

3 Likes

This one.
Cloudflare throwing tantrums.
I had inexplicable things happening on a site once. Things seemingly a plugin conflict but no php logs. But broken js and cloudflare getting in the middle of it all.
My culprit was cloudflare…
Here it seems it is throwing tantrums so a check is in order.

2 Likes

Thanks @ElisabettaCarrara. I’ll add this to my notes for future reference. I have no experience of working with Cloudflare so can’t really comment on performance issues but it’s still useful to know.

In this particular case, going on the console errors as reported by @spanner44 and my subsequent investigation, it seems that a Cloudflare tantrum wasn’t to blame here, as I’ll explain in a separate post.

2 Likes

Well, I logged on to @spanner44’s site and think I’ve got to the bottom of the problem.

First of all, I re-uploaded v0.3.2 of Classic SEO to the existing classicpress-seo directory, went into CP admin, onto the plugins page and refreshed the page. This showed v0.3.2 as being installed.

I then tried to edit the snippet in a random page but this failed. On clicking the “Edit Snippet” button, the page jumped to the top as previously described by @spanner44.

I then looked at the source code for the page and noticed that old versions of certain JS files were still being loaded by WP Fastest Cache.

I manually deleted everything in the wp-content/cache/wpfc-minified folder, refreshed the browser and then everything worked as expected.

So in this case, it appears the installation was fine, Classic SEO was working fine, but WPFC was loading old files.

Should anyone come across a similar problem and you’re using a cache / minify plugin, clear the cache after updating Classic SEO (or any plugin for that matter).

Thanks for @spanner44 for allowing me to login to his system to investigate this.

10 Likes

Many thanks for sorting the problem out.

I must say that I wasn’t expecting such a personal touch, which I thinks proves to me that i made the right choice in using this plugin, and also reaffirms that I made the right decision in Classicpress as the attitude of the community in general seems to follow the same ethos.

Many thanks.

13 Likes

A post was split to a new topic: Plugin support and site admin credentials

Happy to help. I’m just glad we were able to get to the bottom of the problem.

2 Likes

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