Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
marklcfc Posted October 15, 2022 Posted October 15, 2022 (edited) I gave a warning via mobile but it didn't complete, it brought an error which was this Exception: Unknown or bad format (P-1Y11M24DT43S) (0) #0 /home/storm/sites/foxestalk-co-uk/public/applications/core/sources/Warnings/Warning.php(400): DateInterval->__construct() #1 /home/storm/sites/foxestalk-co-uk/public/system/Content/Item.php(463): IPS\core\Warnings\_Warning->processAfterCreate() #2 /home/storm/sites/foxestalk-co-uk/public/system/Content/Item.php(143): IPS\Content\_Item::createFromForm() #3 /home/storm/sites/foxestalk-co-uk/public/applications/core/modules/front/system/warnings.php(140): IPS\Content\_Item::create() #4 /home/storm/sites/foxestalk-co-uk/public/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_warnings->warn() #5 /home/storm/sites/foxestalk-co-uk/public/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #6 /home/storm/sites/foxestalk-co-uk/public/applications/core/modules/front/system/warnings.php(42): IPS\Content\_Controller->execute() #7 /home/storm/sites/foxestalk-co-uk/public/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_warnings->execute() #8 /home/storm/sites/foxestalk-co-uk/public/index.php(13): IPS\_Dispatcher->run() #9 {main} Now when selecting that warning from their profile it gives an error with this error in logs Unknown or bad format (P-1Y11M24DT43S) And I have tried clearing the cache Edited October 15, 2022 by marklcfc
Jim M Posted October 15, 2022 Posted October 15, 2022 Please switch to an unmodified theme and disable any third-party applications/plugins to see if the issue still remains. Likely this is related.
marklcfc Posted October 15, 2022 Author Posted October 15, 2022 (edited) Same happened on the default theme with those disabled. I was clicking the existing warning hovercard thing, I didn't go through the warning process a member again. This only happens on the new warning I gave, every previous warning loads correctly. I have however undone and deleted the warning now. Edited October 15, 2022 by marklcfc
Jim M Posted October 15, 2022 Posted October 15, 2022 8 minutes ago, marklcfc said: Same happened on the default theme with those disabled. I was clicking the existing warning hovercard thing, I didn't go through the warning process a member again. This only happens on the new warning I gave, every previous warning loads correctly. I have however undone and deleted the warning now. I would suggest going through a new warning process again. If there was an issue with that particular warning, going through it with all the third-party add-ons disabled should help.
Marc Posted October 17, 2022 Posted October 17, 2022 Of course if you are able to actively replicate theissue, please do let us know
appe Posted December 10, 2022 Posted December 10, 2022 @Marc Stridgen I will jump into the topic with the same issue. I am able to replicate the error as many times as you wish. It just needs a warning submit to the user. I have disabled ALL third-party plugins and apps and using default theme. I've got exactly the same error as above. Warnings works properly only if end dates (expiration, restrictions, ban) does not go into next year. Everything setup up to 23:59, 31 Dec 2022 works fine.
Marc Posted December 12, 2022 Posted December 12, 2022 On 12/10/2022 at 7:24 PM, appe said: @Marc Stridgen I will jump into the topic with the same issue. I am able to replicate the error as many times as you wish. It just needs a warning submit to the user. I have disabled ALL third-party plugins and apps and using default theme. I've got exactly the same error as above. Warnings works properly only if end dates (expiration, restrictions, ban) does not go into next year. Everything setup up to 23:59, 31 Dec 2022 works fine. Is this also happening on a default unaltered language pack? I am unable to replicate this on my own instance
TSP Posted December 14, 2022 Posted December 14, 2022 I'll also jump in here and confirm that our moderators get this error a lot. Examples: Unknown or bad format (P-1Y11M24DT2M3S) #0 /data/ipsdiskcache/prod/template_2_e554b6dcaef0395bbd7d6d63ba187d0a_modcp.php(6271): DateInterval->__construct('P-1Y11M24DT2M3S') #1 //system/Theme/SandboxedTemplate.php(61): IPS\Theme\Cache\class_core_front_modcp->warnHovercard(Object(IPS\core\Warnings\Warning)) #2 //applications/core/modules/front/system/warnings.php(116): IPS\Theme\_SandboxedTemplate->__call('warnHovercard', Array) #3 //system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_warnings->view() #4 //system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #5 //applications/core/modules/front/system/warnings.php(42): IPS\Content\_Controller->execute() #6 //system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_warnings->execute() #7 //index.php(13): IPS\_Dispatcher->run() #8 {main} Exception: Unknown or bad format (P-1Y11M24DT2M3S) (0) #0 //applications/core/sources/Warnings/Warning.php(400): DateInterval->__construct('P-1Y11M24DT2M3S') #1 //system/Content/Item.php(463): IPS\core\Warnings\_Warning->processAfterCreate(NULL, Array) #2 //system/Content/Item.php(143): IPS\Content\_Item::createFromForm(Array, NULL) #3 //applications/core/modules/front/system/warnings.php(140): IPS\Content\_Item::create() #4 //system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_warnings->warn() #5 //system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #6 //applications/core/modules/front/system/warnings.php(42): IPS\Content\_Controller->execute() #7 //system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_warnings->execute() #8 //index.php(13): IPS\_Dispatcher->run() #9 {main} #0 //init.php(1029): IPS\_Log::log('Exception: Unkn...', 'uncaught_except...') #1 [internal function]: IPS\IPS::exceptionHandler(Object(Exception)) #2 {main}
Martin A. Posted December 14, 2022 Posted December 14, 2022 (edited) I can also confirm this. First one occurred a few months ago. Edited December 14, 2022 by Martin A.
Marc Posted December 15, 2022 Posted December 15, 2022 Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.
Andy Millne Posted December 15, 2022 Posted December 15, 2022 Which version of PHP are you using if affected by this please?
appe Posted December 15, 2022 Posted December 15, 2022 On 12/12/2022 at 10:19 AM, Marc Stridgen said: Is this also happening on a default unaltered language pack? I am unable to replicate this on my own instance Yes, it is. I have English unaltered and the same error appears. 11 minutes ago, Andy Millne said: Which version of PHP are you using if affected by this please? PHP version 8.1.10
Marc Posted December 15, 2022 Posted December 15, 2022 Could you please all update your access details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We can then see what you all have that is causing the same issue, and get you sorted SeNioR- 1
Marc Posted January 10, 2023 Posted January 10, 2023 This has now been resolved in our latest 4.7.6 release. Please upgrade to that release if you are seeing this issue. If you have the same problem after upgrading, please let us know.
Recommended Posts