Updated 4.21 to 4.31… busted..
-
Updated 4.21 to 4.31… busted..
Theme 2014I haven’t gone through the massive task of deactivating other plugins…
and my apologies for not chronologically updating to be able to pin point which version the issue started.When the debug page is displayed…. it only suggests shortcode errors.
My shortcodes are all correct as some of these pages been up for a year.
The one I am testing this morning has a generic URL… ie:
https://XXX.xxxxx.com/feed/ical/I looked at the Developers change log.. and V4.21 was about four months ago… and unfortunately there are no similar questions/issues here on the support forum .
But using the Inspector Console in Firefox….
V4.21 shows no errors.
V4.31 displays this error (JS button Errors and Warnings)….
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery.min.js:2:0Obviously I not experienced enough to give more insight… I will download the latest version and see if I can find that nugget of code and manually try a fix.
Thanks again for the great plugin… your work is much appreciated.
-
Forget that last bit of input….
V4.21 shows no errors.
V4.31 displays this error (JS button Errors and Warnings)….
Use of getPreventDefault() is deprecated. Use defaultPrevented instead. jquery.min.js:2:0Both versions show that error… my mistake.. couldn’t go back and re-edit original posting…
sorry about that.. and the “bold” text above was also a blunder…
hi,
I don’t have that error either locally or on remote test site https://test.icalevents.com/.plugin uses/includes standard wordpress jquery. It does not include own version.
Does not have getPreventDefault in it’s own code.
Since it’s a jquery message, deactivating other plugins (as a debug) maybe the way to go to see if they are doing something to the jquery, maybe loading an other version?
Maybe the quick and brutal approach mentioned in link, then it’s not such a massive task (maybe)
https://webdesign.anmari.com/2932/debugging-a-possible-clash-between-plugins-andor-a-theme/Googling that message and bits of that message gives various hints that maybe it’s just firefox ? maybe jquery itself ? version?
https://www.ads-software.com/support/topic/wordpress-dashboard-locked-with-wordfence-enabled?replies=12#post-7210986
Try:
https://www.google.com.au/search?hl=en&q=Use+of+getPreventDefault%28%29+is+deprecated.+Use+defaultPrevented+instead.+jquery.min.js%3A2%3A0#hl=en-AU&q=WordpressI found which plugin generated that error… it’s no big deal and doesn’t have any effect on your plugin.
So we still have no idea what broke the plugin when updating from 4.21 to 4.31 ??????
(your plugin not wordpress itself)I started testing individual Version Updates..
And the plugin crashed at 4.22 .I looked at the developers change log… and couldn’t really see what is drastically different.
I compared V4.21 and V4.22 with Winmerge program… which I often use…
And there were huge differences… quickly looking at the files this morning it appeared like a lot of the changes I saw were for removing blank lines or lines like this
/* ———————Unfortunately, at this time, and my inexperience, going over all these changes to decipher what exactly changed to help negotiate the problem is out of my reach.
I pull from at least 15 Ical type feeds… so it’s not just one feed causing the problem.
As mentioned on the plugin’s debug page all it tells me is that the short code is incorrect.
I do use your shortcode plugin to generate the shortcodes.
I do have another site I don’t have many plugin’s.. sort of a test site.
So when I have time I’ll try to run tests on that site and see if I can find a plugin conflict.You would know what significantly changed between 4.21 and 4.22.. for any insights to the problem.
Thanks again for your time and the plugin.
On my “test” site… where I not previously installed the plugin..
I installed version 4.21.. and tested… with a number of other plugin’s enabled
Worked.Please note I am using your other plugin “amr shortcode any widget”…
with the shortcodes that I am sure you are familiar [do_widget id=”amr_ical_widget-XX”] or this one without the quotes..
[do_widget id=amr_ical_widget-XX]… both work.Installed V4.22… crash.
I then deactivated other plugins… with only your shortcode plugin..
Theme 2014… latest version of WPFINALLY……. as a last ditch attempt… I used the raw short code…
[iCal https://XXX.xxxxx.com/feed/ical listtype=13 days=30 events=10]
Thusly bypassing the “amr shortcode any widget” plugin…
And SUCCESS… so it looks like it’s the “amr shortcode any widget” plugin that is causing the problem. I have not tried reverting to early versions of this plugin to see if they work.. but I think they would.
Note having any problems with my other shortcodes that “amr shortcode any widget” plugin generates on my site (I have a lot !)
Hope that helps and thanks again for your time.
I uploaded a previous version of “amr shortcode any widget” plugin
Version 2.3..Still same problem…
BUT then I tried.. in the Widget area of the Admin.. to add a feed using the Option “Content for Sidebar” and
Success (Still Version 2.3 of amr shortcodes).Updated “amr shortcode any widget” to version 2.8.
Success.But still option “Widgets for Shortcodes” for a feed crashes.
From my observations… it looks like the problem is using “Widgets for Shortcodes” for a feed.
And it “appears” that it “amr ical events lists” conflicts with “Widgets for Shortcodes” Option…
because “Content for Sidebar” “appears to be working.The post above has this statement…
“Note having any problems with my other shortcodes that “amr shortcode any widget” plugin generates on my site (I have a lot !)”That is supposed to say NOT having any problems with any of my other shortcodes being generated by “amr shortcode any widget” plugin..
Sorry about that… too much stuff going on at the same time as test all the versions and permutations.
Thanks again have a great day !
HI Rob,
So to summarise – you have found the plugin which generates the error message and that plugin apparently should not have anything to do with my plugins. However as far as you can ascertain it’s only when 4.22 of the amr-ical-events-list plugin is loaded that the other plugins jquery message is visible? and somehow you think that ‘breaks’ my plugin (I’m confused about that)
Is that a fair summary?
I’m not sure what my shortcode any widget plugin has to do with it. shortcode_any_widget doesn’t use jquery. It would be safer to use the ical plugin shortcodes rather than going passing the whole lot through a widget first and back to the shortcode. Its basically the same code, except widgets echo out directly and shortcodes are returned via a substitution. All the shortcode_for_widgets plugin does really is call the widget, ‘trap’ the output buffer so it doesn’t just output there and return it via the shortcode.
Note:Both amr-ical-list and shortcode_any-idget plugins are active together at the test site, with no errors. See
https://test.icalevents.com/other-testing/do_widget-shortcode-demo/)There is nothing obvious in the changelog or in the code that would indicate changes that might impact jquery. And again the plugin’s use of jquery is totally standard. The only way something might be having a problem is if it loads a non-wp version maybe?
I don;t know what this means:
“the plugin’s debug page all it tells me is that the short code is incorrect.” Perhaps you could screenshot it.So far I have nothing to go on. The error appears not to actually bein any of my plugins? Even googling that message indicates that it’s maybe a jquery bug, or maybe a firefox problem.
Good luck!
“However as far as you can ascertain it’s only when 4.22 of the amr-ical-events-list plugin is loaded that the other plugins jquery message is visible? and somehow you think that ‘breaks’ my plugin (I’m confused about that)”
Every version past 4.22 crashes. I tested all of them.
It starts with 4.22.“I’m not sure what my shortcode any widget plugin has to do with it. shortcode_any_widget doesn’t use jquery.”
There is some confusion… please disregard the very beginning comments I had in the very first post and the Jquery that I thought I saw…
It is not the problem.I tested on my “test site” I set up last year for problems.
The test site with no other plugins has all the problems.“However as far as you can ascertain it’s only when 4.22 of the amr-ical-events-list plugin is loaded that the other plugins jquery message is visible? “
NO… NO jquery error messages or other error messages on the “test site”… No errors messages with Firefox Inspector.
With all my “tests” today… it points to amr-ical-list
In my Widget Admin Page,
not being able to communicate with amr-shortcodes in the option..ge
“Widgets For Shortcodes”I’ll explain again…
Widgets Admin ->
Upcoming Events List–> (drop down menu)
(option)– “Widgets For Shortcodes”I have not had problems with the other “options” in the drop down menu.
I don’t use them but tested them… thus…
I can only pinpoint the problem when the option “Widgets For Shortcodes” is used.I have extensive “Widgets For Shortcodes” used…
it’s only “Upcoming Events Lists” widget.. and the “Widgets For Shortcodes”
That has generated problems… with amr-ical-list (ie the widget “Upcoming Events Lists”)
With amr-ical-list Version 4.22 to 4.31… I tested them all…With all my tests… it only points to amr-ical-list having a problem with “Widgets For Shortcodes” in the drop down box of “Upcoming Events Lists” widget.
A screen shot of the debug page will only show you that no other shortcodes are being use.
It will only show that the shortcode is wrong…
but the short code is exactly correct.I would love to isolate the problem on my end, because that would resolve any future conflicts.
But at this point, on my test site, no other plugins activated.. it just points to amr-ical-list -> Widget “Upcoming Events Lists” -> “Widgets For Shortcodes” being the problem from Version 4.22 forward.
Thank you, thank you, thank you very much for your time on this issue.
Thank you for your plugins. And thank you for your patience.also… I have two fully functioning sites… that I use your plugins.
And a third.. which is my “test site” just for checking problems.
The problems is across all three.
All use Theme 2014.OK so i switched to 2014, drag upcoming events widget to shortcodes sidebar, added an ics link. Still no error of any kind that I can generate. So back to it’s something on your site. Debug as suggested above. In < 5 mins it’ll tell you something and you can quickly ‘reactivate’ all recently active.
ALSO why don’t you just use this shortcode:
[ical listtype=4 ics=yoururl]
instead of the convuluted widget_> sidebar -> shortcode ?
I started using amr-shortcodes before I implemented lists… and just used that method for Upcoming Events Lists…
Thank you very much for taking the time to test Theme 2014.
On my test site I did have success this morning…
Interesting enough the shortcode that it is telling me.. using my “convulted” method is this which works…
[do_widget id=amr_icalendar_widget-3] which is different than my main site.I went over to one of my main full sites…. and with the older version 4.21 this shortcode still works..
[do_widget id=amr_ical_widget-3]So once again.. I updated the main site… and why in the world I didn’t see this before… but the update ERASED (not shouting just emphasizing) all my previous shortcodes in Widgets For Shortcodes menu “Upcoming Events Lists”
No wonder all my previous working shortcodes didn’t work !With the 4.31 version still installed (but and all my previous shortcodes erased)…
I created a new shortcode “Upcoming Events List”… and it worked..
BUT (still not shouting just emphasizing).. the short code now produced is this…
[do_widget id=amr-ical-upe-3]I reinstalled version 4.21.. my erased Upcoming Events Lists came back.
Thank you for your time.. no wonder my shortcodes weren’t working when they got erased and now it appears a different style of shortcode is being generated.
And , either nobody else is using amr-shortcodes to generate their lists… or most likely, something bonkers with my site.
When I have time I hope to “unconvult” the shortcodes.. I have over 25 lists being generated.. and more pages showing the info.
Thank you, once again, for your time, and my apologies for the inconvenience.
- The topic ‘Updated 4.21 to 4.31… busted..’ is closed to new replies.