Then why did this work fine before? I am running php8.2 since I am on debian 12, I think about a year and this rotate issue surfaced since a few months ago. Since then I have been running apt update && upgrade and Invision Community updates, so one of those are likely candidates as a source of the problem.
Will all due respect, you are not helping much. I rather have some useful suggestions, either from you or from another community member.