Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 15, 20222 yr 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, 20222 yr by marklcfc
October 15, 20222 yr Please switch to an unmodified theme and disable any third-party applications/plugins to see if the issue still remains. Likely this is related.
October 15, 20222 yr Author 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, 20222 yr by marklcfc
October 15, 20222 yr 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.
December 10, 20222 yr @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.
December 12, 20222 yr 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
December 14, 20222 yr 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}
December 14, 20222 yr I can also confirm this. First one occurred a few months ago. Edited December 14, 20222 yr by Martin A.
December 15, 20222 yr 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.
December 15, 20222 yr 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
December 15, 20222 yr 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
January 10, 20232 yr 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.