February 11, 2023 at 4:01 pm #12510
Using the countdown timer causes fatal error because time format is not fitting to settings of wordpress. Please see error code.
Time format of wordpress for this webpage is d/m/Y.
When I set the date in the countdown for 12th of February, the countdown timer will show a countdown to 12th of December.
If I set the date to e.g. 14th of December it results on fatal error and breaks the website. Cause the plugin interprets it as 14th month.
fatal error code:
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (14/12/2023 23:30) at position 0 (1): Unexpected character in /home/server605908/ftp/migracja/portablepower_pl/wp-content/plugins/announcer-pro/includes/display.php:451 Stack trace: #0 /home/server605908/ftp/migracja/portablepower_pl/wp-content/plugins/announcer-pro/includes/display.php(451): DateTime->__construct(’14/12/2023 23:3…’, Object(DateTimeZone)) #1 /home/server605908/ftp/migracja/portablepower_pl/wp-content/plugins/announcer-pro/includes/display.php(219): ANCR_Display::countdown_timer(Array) #2 /home/server605908/ftp/migracja/portablepower_pl/wp-content/plugins/announcer-pro/includes/display.php(85): ANCR_Display::html(34099, Array) #3 /home/server605908/ftp/migracja/portablepower_pl/wp-includes/class-wp-hook.php(308): ANCR_Display::display(”) #4 /home/server605908/ftp/migracja/portablepower_pl/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/server605908/ftp/migracja/portablepower_pl/wp-inclu in /home/server605908/ftp/migracja/portablepower_pl/wp-content/plugins/announcer-pro/includes/display.php on line 451
W witrynie wystąpił błąd krytyczny.
Please fix it asap, or return the money for my order. Thanks.February 11, 2023 at 6:33 pm #12512Aakash ChakravarthyKeymaster
Thanks for using Announcer plugin.
Can you please confirm how did you enter the datetime for the countdown timer?
Did you select the date and time from the picker?
The datetime picker allows you to pick date and time only in the format
Please see image below – https://i.imgur.com/4gGgyPa.png
It seems the datetime is entered in the format
14/12/2023 23:30. I’m not sure how it was entered in such a format.
Please use the picker again and ensure that the date is of the above format. If issue persists, please let me know further.
AakashFebruary 11, 2023 at 7:11 pm #12513
I select the date and time from the picker.
It results in such a format for example:
I cant type it manually, as soon as I try, it changes back to the input from the picker.February 11, 2023 at 7:20 pm #12514
Made a screen capture to show you the behaviour:
https://watch.screencastify.com/v/p7jFggIrjXPrgmgi3XOzFebruary 11, 2023 at 7:37 pm #12515Aakash ChakravarthyKeymaster
It looks like some other plugin is overriding the datetime picker. You can see the difference between the picker color and style in my screenshot and your screenshot.
Can you please make this change for now?
Plugins –> Plugin editor –> Announcer – PRO –> select file admin/js/script.js
At line no. 12
Save the file.
Now in the edit page, press Ctrl+Shift+F5 on and notice that the picker won’t show.
You can now type the countdown timer date with the format
2023-03-03 18:32and save the settings.
To find root cause of which plugin is causing this issue, I migth need temp administrator access. If you are fine with this workaround then we are good. Otherwise please send the credentials to my contact form. I’ll login and check.
In the future version, I’ll try to handle this issue and make sure no other plugin can take control of the date time picker.
- You must be logged in to reply to this topic.