-
Hey,
On the website: https://www.paulheatrecovery.co.uk/
When we have the RankMath schema enabled, it causes some child products to return critical errors.
The main issue was the assumption that all inputs were arrays, which was not always the case. By adding type checks and recursively sanitising the data, we ensured that the schema data was correctly handled, preventing TypeError and improving the robustness of the code. This approach also involved logging errors when JSON decoding failed, which helps in diagnosing and fixing data issues more effectively.
However, when we update the plugin, we will need to manually replace the file each time since it will be overwritten.
Do you have any suggestions on how we can put a long-term solution in place which does not involve manually replacing files each update?
Thanks,
Shaun
Jellyhound
You must be logged in to reply to this ticket.