BUG FIX PROVIDED BUT NOT IMPLEMENTED: Fatal Error creating articles on Joomla 6.1 (classes/base.php) - Forum | JoomShaper
Staff replied SP Page Builder

BUG FIX PROVIDED BUT NOT IMPLEMENTED: Fatal Error creating articles on Joomla 6.1 (classes/base.php)

Asked by Emanuele 4 months ago Last activity 4 months ago

As requested by your standard email support (who redirected me to the forum after my direct reports), I am posting this critical bug fix publicly so your development team can easily spot it and implement it.

The Issue:
When trying to create or edit an article on Joomla 6.1, the system throws a Fatal Error, breaking the page completely.

The Cause:
The error is caused by a deprecated class call in your core files. SP Page Builder is still using the old Joomla framework syntax for file checking.
Error: Class "Joomla\CMS\Filesystem\File" not found

The Fix:
File: components/com_sppagebuilder/builder/classes/base.php
Line: 255

You simply need to change this old syntax:
if (File::exists($admin_file))

To the standard native PHP function (which you already use in other parts of the same file!):
if (file_exists($admin_file))

Please include this one-line patch in the very next release. Currently, the only workaround to use SP Page Builder on Joomla 6.1 without crashing is to force Joomla's "Backward Compatibility" system plugin, which is not an acceptable long-term state.

1 reply

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Can you share your existing forum post that you have already informed.

Best regards,

Toufiqur Rahman (Team Lead, Support)

Log in to reply.