Cannot delete post links
-
An impressive plugin! However, I have found a couple of problems (which may be linked) and hope you can help!
The plugin picks up the post title for the link. If you later change the post title, it keeps the previous title. It would be very useful if one could get the plugin to update on request.
As an attempted workaround, I thought I would delete the previous entries, pointing to November star charts, and then link again. However, though the links appear to vanish in the editing window, they are still visible on the post itself, and have returned when one returns to the editing window!
Cheers,
Paul
The page I need help with: [log in to see the link]
-
Hi Paul,
Good point, for performance and speed reasons the related posts are cached but that does mean that it doesn’t automatically update the title. Will look into what’s possible.
Not sure why deleting doesn’t work though. Are you using the classic editor or new Gutenberg block editor?
Hi Brecht.
Thank you for the swift response! I am using Gutenberg.
I have not been able to reproduce this problem yet. Does it happen all the time? Is there a specific set of steps I can take to recreate the issue (starting from a new page)?
I have just tried deleting another link from the same page, and that works fine! I then reinstated the link, and that was good too. However, when I again tried to delete the two “November” links, they refused to go, as previously.
One thought that occurs to me is that the two November pages are being used without a sidebar in the layout, and as, for some reason, I made them to/from links from the night sky post, maybe that is confusing things?
Huh. Strange. You’re not able to remove when editing either the November or Night Sky page?
No, and it appears to be only those two pages that I cannot remove the links to.
As an experiment, I temporarily allowed sidebars for the two “November” pages, and the links back to Night Sky showed on them. I was able to delete those.
I have also tried deleting all the links individually in the widget on the Night Sky page, and they all do delete successfully – except for the two November pages. Very strange!
The only unusual thing about the two “November” pages is that they each include an iframe which runs a little Canvas app to draw a map of the stars.
Could you check if there are any JavaScript errors in the console when the deleting doesn’t work?
https://codex.ww.wp.xz.cn/Using_Your_Browser_to_Diagnose_JavaScript_ErrorsI get these on the Night Sky page:
JQMIGRATE: Migrate is installed, version 1.4.1
VM5189:1 Uncaught SyntaxError: Unexpected token <
at t.activateScript (rocket-loader.min.js:1)
at rocket-loader.min.js:1
at t.run (rocket-loader.min.js:1)
at rocket-loader.min.js:1
at HTMLScriptElement.<anonymous> (rocket-loader.min.js:1)
t.activateScript @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
t.runOnLoad @ rocket-loader.min.js:1
y @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4
ajax @ jquery.min.js:4
getTimeZone @ widget.js:22
getMoonPhase @ widget.js:86
moonPhaseBuildWidget @ widget.js:350
moonPhaseCheckScript2 @ widget.js:151
script.onload @ widget.js:147
load (async)
moonPhaseCheckScript2 @ widget.js:147
moonPhaseCheckScript @ widget.js:138
(anonymous) @ widget.js:355
(anonymous) @ widget.js:357
jquery.min.js:4 Mixed Content: The page at ‘https://www.skymania.com/wp/your-night-sky-this-month/’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://api.geonames.org/findNearbyPlaceNameJSON?lat=51.4809181&lng=-0.0207105&style=full&username=adam’. This request has been blocked; the content must be served over HTTPS.
send @ jquery.min.js:4
ajax @ jquery.min.js:4
getTimeZone @ widget.js:22
getMoonPhase @ widget.js:86
moonPhaseBuildWidget @ widget.js:350
moonPhaseCheckScript2 @ widget.js:151
script.onload @ widget.js:147
load (async)
moonPhaseCheckScript2 @ widget.js:147
moonPhaseCheckScript @ widget.js:138
(anonymous) @ widget.js:355
(anonymous) @ widget.js:357
VM5236:1 Mixed Content: The page at ‘https://www.skymania.com/wp/your-night-sky-this-month/’ was loaded over HTTPS, but requested an insecure script ‘http://static1.twitcount.com/js/twitcount.js’. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ VM5236:1
(anonymous) @ VM5236:1
t.activateScript @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
s @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
t.run @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
load (async)
t.runOnLoad @ rocket-loader.min.js:1
y @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(anonymous) @ rocket-loader.min.js:1
(index):1 Mixed Content: The page at ‘https://www.skymania.com/wp/your-night-sky-this-month/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://fonts.googleapis.com/css?family=Droid+Sans:400,700|Droid+Serif:400,700,400italic,700italic|Open+Sans:400italic,600italic,700italic,400,300,600,700,800’. This request has been blocked; the content must be served over HTTPS.Is that rocket-loader JS file coming from another plugin?
Try disabling all other plugins for a second and see if it works then.
A Google search told me that the Cloudflare plugin uses rocket-loader JS, so I disabled that, but the links still would not be deleted. I therefore disabled all the other plugins too (apart from yours obviously) but still no luck.
Eureka! I have found the problem, and I feel very silly. The option for “page” under post types was somehow turned off, with only “post” available. I added “page” and was able to delete the links. I imagine that I must have had “page” selected previously in order to add the two “November” pages. Sorry!
Happy to hear you found the problem and got things working!
Will do some testing to make sure you’re still able to delete them when this happens.
The topic ‘Cannot delete post links’ is closed to new replies.