Can't Access SPPB After Upgrade To J6; Libraries/loader.php - Question | JoomShaper

Celebrate JoomShaper's Sweet 16 with Flat 35% OFF!

Can't Access SPPB After Upgrade To J6; Libraries/loader.php

Karen Dunne

Karen Dunne

SP Page Builder 1 week ago

I've upgraded a site from Joomla 5 to Joomla 6.

SPPB pages will not display in the backend. Instead, it only shows the following error and a button to go back to admin:

Warning: Cannot redeclare class joomla\cms\filesystem\folder (previously declared in /home/demo/public_html/rta/libraries/vendor/joomla/filesystem/src/Folder.php:19) in /home/demo/public_html/rta/libraries/loader.php on line 576

Warning: Cannot redeclare class joomla\cms\filesystem\file (previously declared in /home/demo/public_html/rta/libraries/vendor/joomla/filesystem/src/File.php:19) in /home/demo/public_html/rta/libraries/loader.php on line 576

This is Joomla! 6.1.1, php 8.4.22, SPPB 6.6.1, Helix 2.2.6

0
23 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225612

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. To better address the issue, could you kindly provide Joomla administrator access? This will enable me to thoroughly investigate the matter and provide you with a prompt resolution.

I appreciate your cooperation and will ensure to get back to you as soon as possible.

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225616

Thank you, Toufiq.

I'm not able to provide admin access at the moment. The site is on a dev server.

Do those warnings look familiar to you? Screenshot:

https://monosnap.ai/file/9AyWPT4jXWrJRPUdTaCVAaVtGPo1Qy

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225625

Please let me know whether the Behaviour - Backward Compatibility 6 plugin is enabled or disabled. If it is disabled, please enable it and check again.

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225639

Yes, it's enabled.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225673

PHP version?

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225703

This is Joomla! 6.1.1, php 8.4.22, SPPB 6.6.1, Helix 2.2.6

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225709

Is it possible to create an staging site to check the issue?

0
G
Gina.One
Accepted Answer
1 week ago #225863

Hello, I have the same issue, hoped that with Pagebuilder 6.6.2 the problem could be resolved.

Thank you for your help.

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225869

Hi Toufiq,

I have the site in a staging area that you can access. But, I'm hesitant to add the login credentials here because I can see Gina's hidden content. I don't think that's supposed to be visible to me. So that makes me think that hidden content won't actually be hidden and I don't want to share login credentials publically.

I created a chat with Claude.ai and the results may help with troubleshooting. I've shared that chat here: https://claude.ai/share/69a5f0f4-123d-4edc-b362-00164b3b65ce

Please advise.

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225870

Here's a screenrecording of the issue: https://www.loom.com/share/7f78f782cd994a5fb24acf57a48a71d5

P.S. When installing SP Page Builder 6.6.1 and 6.6.2, the installation completes but generates the following warning:

"Unexpected token '<," ... is not valid JSON"

Screenshot: https://monosnap.ai/file/GNzeDZyRy14uU2n4HELrAa7UZ9rVau

0
G
Gina.One
Accepted Answer
1 week ago #225881

Thanks, Karen. For now, disabling the reporting errors helps. I don't receive the JSON warning. It looks like everything is working normally.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225918

Is it possible to provide me a staging site access to check the issue?

0
G
Gina.One
Accepted Answer
1 week ago #225958

Try now

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225959

Please check now. I just installed latest version of Page Builder.

0
G
Gina.One
Accepted Answer
1 week ago #225960

I switched the error reporting on and it give still the error. it shows that I could update to version 6.6.2

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225973

Provide me phpmyadmin access.

0
Karen Dunne
Karen Dunne
Accepted Answer
1 week ago #225982

Toufiq, and Gina.

The hidden content is visible to me. I should not be able to see the login credentials. Nor would you want anyone other than Joomshaper staff to have your login information.

https://monosnap.ai/file/2XZQRXZ98W1wJuWOM4uhdeH0k7jvQC

0
G
Gina.One
Accepted Answer
1 week ago #225989

ok thanks, do the see also your https://monosnap.ai now? can you delete?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #225992

Initial solution

components/com_sppagebuilder/helpers/autoload.php

Find out this code

if (!class_exists($original)) {
    class_alias($alias, $original);
}

Replace with this code

if (!class_exists($original, false)) {
    class_exists($alias);
}

Note: Final fix will add next release.

-Thanks

0
G
Gina.One
Accepted Answer
1 week ago #225997

I just realised that the front end error still appears:

Warning: Cannot redeclare class joomla\cms\filesystem\file (previously declared in /home/httpd/vhosts/conrad-scuol.ch/httpdocs/libraries/vendor/joomla/filesystem/src/File.php:19) in /home/httpd/vhosts/conrad-scuol.ch/httpdocs/libraries/loader.php on line 576

can you give me an e-mail address for Login? I changed them.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #226041
0
G
Gina.One
Accepted Answer
1 week ago #226052

you are great! thank you!

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 1 week ago #226054

You are most welcome & Thanks

0