Mick23 Posted January 28 Posted January 28 When a member makes an anonymous post, their post appears five times after this error appears on the frontend: [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] There are no modifications to that template file, and no option to revert because of that. Caches have been cleared. The system log contains: TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\Post given, called in /home/everybum/public_html/community/system/Content/Comment.php on line 1360 (0) #0 /home/mysitename/public_html/community/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment(NULL, Object(IPS\forums\Topic\Post)) #1 /home/mysitename/public_html/community/system/Content/Content.php(3292): IPS\Content\_Comment->changeAuthor(Object(IPS\Member), false) #2 /home/mysitename/public_html/community/system/Content/Comment.php(199): IPS\_Content->setAnonymous(true, Object(IPS\Member)) #3 /home/mysitename/public_html/community/applications/forums/sources/Topic/Post.php(140): IPS\Content\_Comment::create(Object(IPS\forums\Topic), '<p>\n\tTest post\n...', false, NULL, NULL, Object(IPS\Member), NULL, NULL, NULL, true) This appears to have started after the most recent update was applied: 4.7.15 Metor 1
Nathan Explosion Posted January 28 Posted January 28 Keep an eye on this, as it's likely the same issue under the hood... Metor and Mick23 2
Marc Posted January 29 Posted January 29 On 1/28/2024 at 5:01 AM, Mick23 said: When a member makes an anonymous post, their post appears five times after this error appears on the frontend: [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] There are no modifications to that template file, and no option to revert because of that. Caches have been cleared. The system log contains: TypeError: IPS\forums\_Forum::setLastComment(): Argument #2 ($updatedItem) must be of type ?IPS\Content\Item, IPS\forums\Topic\Post given, called in /home/everybum/public_html/community/system/Content/Comment.php on line 1360 (0) #0 /home/mysitename/public_html/community/system/Content/Comment.php(1360): IPS\forums\_Forum->setLastComment(NULL, Object(IPS\forums\Topic\Post)) #1 /home/mysitename/public_html/community/system/Content/Content.php(3292): IPS\Content\_Comment->changeAuthor(Object(IPS\Member), false) #2 /home/mysitename/public_html/community/system/Content/Comment.php(199): IPS\_Content->setAnonymous(true, Object(IPS\Member)) #3 /home/mysitename/public_html/community/applications/forums/sources/Topic/Post.php(140): IPS\Content\_Comment::create(Object(IPS\forums\Topic), '<p>\n\tTest post\n...', false, NULL, NULL, Object(IPS\Member), NULL, NULL, NULL, true) This appears to have started after the most recent update was applied: 4.7.15 We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
Solution Stuart Silvester Posted January 29 Solution Posted January 29 We have released a patch for this issue. To apply, please go to AdminCP > Support > 1st (or top left) box will have a "Optional Patch Available" link. Click it and follow the instructions. Marc and Mick23 1 1
Recommended Posts