Hello,
Thank you for the file provided.
The fix resolves the issue on this file:
templates/shaper_waynecorp/sppagebuilder/addons/articles_slider/admin.php
However, after replacing this file, other errors immediately appear on other addons included with the template, for example:
templates/shaper_waynecorp/sppagebuilder/addons/thumb_gallery/admin.php:18
Error:
Class "JText" not found
At this stage, the only way to make the website run properly under Joomla 5 is to enable the following plugin:
Behaviour - Backward Compatibility
This indicates that several files from the template or from the SP Page Builder addons included with it are still using old Joomla classes that are not natively compatible with Joomla 5/6.
So the issue does not seem to be limited to one file. It appears to affect several addons included in the WayneCorp template.
The template is advertised as compatible with Joomla 4, Joomla 5 and Joomla 6. Could you please confirm whether all SP Page Builder addons included with this template are also fully compatible with Joomla 5/6 without enabling the Backward Compatibility plugin?
If this is not the case, please provide a complete corrected version of the SP Page Builder addons included with the template, or at least an exhaustive list of the files that need to be updated.
At this stage, the single-file fix provided does not allow us to consider the template fully compatible with Joomla 5/6.
Best regards,