dlin04
Forum Replies Created
-
Jetpack support corrected the issue with the WP reader feed.
Setting the neve-blog resolution, then regenerating the thumbnails caused the desired resolution image to render for the featured image at the top of the blog post.
Thanks for your help.
nevermind – working on this. I think I understand how this works now.
- This reply was modified 2 years, 8 months ago by dlin04.
Ok, this gets even crazier.
Pasting this into a Custom HTML block on the Widgets page will result in “There was an error. The response is not a valid JSON response.” upon attempting to update Widgets:
<a class="wordpress-follow-button" href="https://mudkingdom.com" data-blog="https://mudkingdom.com" data-lang="en">Follow The Mud Kingdom on WordPress.com</a><script type="text/javascript">(function(d){var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');p.type = 'text/javascript';p.async = true;p.src = '//widgets.wp.com/platform.js';f.parentNode.insertBefore(p,f);}(document));</script>
BUT, pasting the following into a Custom HTML block on the Widgets page will result in normal updating upon attempting to update Widgets:
<a class="wordpress-follow-button" href="https://mudkingdom.com" data-blog="https://mudkingdom.com" data-lang="en">Follow The Mud Kingdom on WordPress.com</a><script type="text/javascript"> (function (d) { var f = d.getElementsByTagName("SCRIPT")[0], p = d.createElement("SCRIPT"); p.type = "text/javascript"; p.async = true; p.src = "//widgets.wp.com/platform.js"; f.parentNode.insertBefore(p, f); })(document);</script>
VERY ODD BEHAVIOR – the code is functionally the same, but with some line breaks in the part that will run. Yet, one prevents Widgets from updating (saving). The other one won’t.
The
WordPress.com Follow Button
is just some html code, generated here:
https://wordpress.com/support/follow-button/In my case, the html code in its entirety, as copied into the Custom HTML block:
<p><a class="wordpress-follow-button" href="https://mudkingdom.com" data-blog="https://mudkingdom.com" data-lang="en">Follow The Mud Kingdom</a><script type="text/javascript">(function(d){var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');p.type = 'text/javascript';p.async = true;p.src = '//widgets.wp.com/platform.js';f.parentNode.insertBefore(p,f);}(document));</script></p>
It is not output by a plugin – I’ve tried this with all plugins disabled and using the Twenty Twenty default theme.
Now this renders just fine in 5.7, and it is currently rendering on my blog. The trouble is that I just can’t update my widgets at all with that html code in my custom html block. It’s very odd.
FYI, I said “WordPress.com Follow Button” which is the script in question.
Please treat this like you would any other javascript – why is the custom HTML block not updating when I have javascript in it?
If it will work with other javascript, why does THIS javascript cause only version 5.8 of wordpress to not be able to update widgets?
I’m fully aware that I am www.ads-software.com. I am using WordPress. It is privately hosted. It is the www.ads-software.com software that is not able to update the widgets on my www.ads-software.com site when I add javascript to the custom html block.
Are you trying to tell me that this is not an issue with the WordPress software?
Is there some reason why the custom HTML block in widgets won’t support the following code?
<script type="text/javascript">(function(d){var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');p.type = 'text/javascript';p.async = true;p.src = '//widgets.wp.com/platform.js';f.parentNode.insertBefore(p,f);}(document));</script>
– reset permalinks
– checked https addresses in general settings – no issues, just root https on domain– all plugins disabled
– twenty twenty theme
– server appears responsive, if I remove the code from the custom html block, it updates just fine
– site health is good– I will have to check permalinks?
Forum: Fixing WordPress
In reply to: wp-admin/widgets.php custom_HTML block errorsAfter some troubleshooting, I’ve narrowed down the issue.
I can save my widgets when I have a custom HTML block, but not if I include the following code in the custom html block:
<script type="text/javascript">(function(d){var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');p.type = 'text/javascript';p.async = true;p.src = '//widgets.wp.com/platform.js';f.parentNode.insertBefore(p,f);}(document));</script>
When trying to ‘Update’ widgets:
There was an error. The response is not a valid JSON response.Forum: Fixing WordPress
In reply to: wp-admin/widgets.php custom_HTML block errorssame issue, false alarm.
- This reply was modified 3 years, 3 months ago by dlin04.
Forum: Fixing WordPress
In reply to: wp-admin/widgets.php custom_HTML block errorsHello. I had previously managed to use the theme customizer to remove the legacy Custom HTML widget and replace it with the Custom HTML block widget.
However, after disabling all plugins again and activating the Twenty Twenty theme, when I attempt to edit my widgets (Appearance > Widgets) I am unable to Update (save) my edits.
The message: “There was an error. The response is not a valid JSON response.” appears in the lower left.
Please note that if I remove the Custom HTML block, the widgets Updates (saves) normally.
api-fetch.min.js?ver…a093f9f92520a98df:2 POST https://REPLACEME/wp-json/batch/v1?_locale=user 418
_ @ api-fetch.min.js?ver…a093f9f92520a98df:2
f @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
b @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
a @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
b.method.r @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
a @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
t @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
y @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
(anonymous) @ edit-widgets.min.js?…fef25865f0e87b861:2
(anonymous) @ api-fetch.min.js?ver…a093f9f92520a98df:2
P @ api-fetch.min.js?ver…a093f9f92520a98df:2
T @ core-data.min.js?ver…eb531dcf64543c5b7:2
run @ core-data.min.js?ver…eb531dcf64543c5b7:2
async function (async)
run @ core-data.min.js?ver…eb531dcf64543c5b7:2
G @ core-data.min.js?ver…eb531dcf64543c5b7:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
c @ redux-routine.min.js…c977063e356eb95cf:2
t @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
(anonymous) @ edit-widgets.min.js?…fef25865f0e87b861:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
Promise.then (async)
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
Promise.then (async)
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
Promise.then (async)
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
r @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
c @ redux-routine.min.js…c977063e356eb95cf:2
t @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ redux-routine.min.js…c977063e356eb95cf:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
(anonymous) @ data.min.js?ver=7bfa…e459d5ec92d30fdda:2
ki @ react-dom.min.js?ver=16.13.1:176
ji @ react-dom.min.js?ver=16.13.1:13
mi @ react-dom.min.js?ver=16.13.1:13
lf @ react-dom.min.js?ver=16.13.1:13
wi @ react-dom.min.js?ver=16.13.1:187
Kd @ react-dom.min.js?ver=16.13.1:32
pc @ react-dom.min.js?ver=16.13.1:32
Wf @ react-dom.min.js?ver=16.13.1:34
(anonymous) @ react-dom.min.js?ver=16.13.1:236
uf @ react-dom.min.js?ver=16.13.1:15
Qd @ react-dom.min.js?ver=16.13.1:42
sc @ react-dom.min.js?ver=16.13.1:41
unstable_runWithPriority @ react.min.js?ver=16.13.1:25
Da @ react-dom.min.js?ver=16.13.1:60
mk.Events.current @ react-dom.min.js?ver=16.13.1:236
Ei @ react-dom.min.js?ver=16.13.1:41