Error: Class "JoomShaper\SPPageBuilder\DynamicContent\Services\CollectionsService" Not Found - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Error: Class "JoomShaper\SPPageBuilder\DynamicContent\Services\CollectionsService" Not Found

DP

Dutch Powerhouse

SP Page Builder 8 months ago

Hello,

I get this error "Class "JoomShaper\SPPageBuilder\DynamicContent\Services\CollectionsService" not found" on the pages where I use SP Pagebuilder.

I got this error when I downgraded to version 5.4.6 after first updated to 5.5.0 and a day later to 5.5.1 I went back to version 5.4.6 because version 5.5.1 resulted in tons of 500 errors on my site. I have 4 CPU and in no time it was all used by SP pagebuilder (and my template?) and my users got 500 errors when visiting my pages.

After investigation with my hosting we noticed that SPpagebuilder is doing this for some reason and my top requested urls are:

246837 times > /templates/shaper_soccer/css/bootstrap-legacy/variables 147107 times > /templates/shaper_soccer/css/bootstrap-legacy/mixins 90722 times > /templates/shaper_soccer/css/bootstrap-legacy/forms.less 79155 times > /templates/shaper_soccer/css/bootstrap-legacy/wells.less 69497 times > /templates/shaper_soccer/css/bootstrap-legacy/accordion.less

So before fixing this 500 error I needed to go back to the SP version where I did not encounter any problems. This was version 5.4.6.

But when installing that version it looks like not all files are deleted and now, for some reason, the extension is looking for the CollectionsService.php from version 5.5.0. ?!?

I fixed this error by totaly deleting SP Page builder and then install version 5.4.6 again. But this still leaves me with the inital problem that an update to 5.5.x will result in way to much CPU usage and thus the 500 error for my visitors.

I am on Joomla 4.4.10 with php 8.2.27

0
21 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 8 months ago #183491

Hello Dutch Powerhouse,

Thank you for reaching out to our technical support forum. I’m sorry to hear about the trouble you’re experiencing. Rest assured, I will look into this issue for you and work to resolve it as quickly as possible.

Please take a full site backup with Akeeba Backup in ZIP format and share here. Follow this tutorial. I will check it on my localhost. I have tried to take a backup. But the backup cannot be extracted or unzipped.

Best regards

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #183498

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. I have downloaded your site backup and installed the latest version Page Builder. It works fine on my end. Please check this backup.

How to run akeeba backup.

https://drive.google.com/file/d/16fMwHR2ZAa3yctnP5rn7zm6YlwB7ijQj/view

Best regards,

Toufiqur Rahman (Team Lead, Support)

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183532

Hi Toufiq,

You say it works fine on your end but what do you mean by that? No countless request to the above template files (that don't exist) in your error log? No exceptional high CPU after the update due to these countless requests.

Which hosting you use for this test and can I see your error log?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #183588

Check now your dev site and let me know the update. Thanks

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183682

Hi Toufiq, not sure what you did but I made a new copy of the development site. Then first updated to 5.5.0 and then to 5.5.1 (just like I did on production site) and same problem still occurs. CPU goes sky high due to the amount of request from the site itself. I see the same "file does not exist" errors.

Please check the server error log in the hidden content part for more details.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 8 months ago #183694

Apologies for the inconvenience. Could you please confirm whether you have created a completely new development site or if you are working with the previous one? If it is a new one, kindly provide the administrator access.

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183788

I can confirm that I made a new copy of the development site. You can still use the same administrator access. (see hidden content in my first forumpost)

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #183796

Please check now. Thanks

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183930

The errors about the templates .less files are gone. Not sure about the CPU usage as on the development site I am the only visistor. What did you do?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #183948
0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183958

Ok thanks, I first updated to version 5.5.1 and then replaced those two files. The errors about the .less files are now gone from my error log. CPU not sure yet. I will closely monitor this the coming days and let you know.

But due to the update to 5.5.1 I now have the same problem with the redirects as described in https://www.joomshaper.com/forum/question/37745

So one problem solved and a new one arised....

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #183969

Can you share a screencast video about the redirects issue?

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #183972

Yes sure. See hidden content part for a link.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #184024

Yes, We have solved this issue. We will release it soon. Thanks

0
DS
David Soens
Accepted Answer
8 months ago #185908

Hello, I have the same issue on a client site. I updated SP Page Builder from 5.4.4 to 5.5.2 and got the error: Class "JoomShaper\SPPageBuilder\DynamicContent\Services\CollectionsService" not found on all pages. Then I restored the site to before the update. Now it is running 5.4.4 again however it still has the error and strangely, the components/com_sppagebuilder/addons/dynamic_content_collection/admin.php file is still there dated after the restoration.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #185914

Please check now. Thanks

0
DP
Dutch Powerhouse
Accepted Answer
8 months ago #185915

For some reason not all files are restored or overwritten when you downgrade after an update. I had the same experience. At one point I uninstalled SP Page Builder completely from my site.

Then installed the SP Page Builder version where I had no issues. In that way you don't have to deal with old/new files that causes these errors. This should work for you as well.

But be sure to make a backup or first try it this on your development site. Also you can export your SP Page Builder MySQL database to make sure you don't loose any pages/modules you made with SP Page Builder. Later you can import those again if needed.

0
DS
David Soens
Accepted Answer
8 months ago #185928

Thanks for the fix Toufiq and the explanation Dutch Powerhouse! In 12 minutes no less.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 8 months ago #185930

Ha Ha Ha! You are most welcome dude! Can I expect a stellar review on this platform?

https://extensions.joomla.org/extension/sp-page-builder/

https://www.trustpilot.com/review/www.joomshaper.com

0
JA
Jeff Algarra
Accepted Answer
5 months ago #192369

Why doesnt anyone provide informtion on how to fix it? Surely support is busy and who wants to wait days if not more to fix the problem?

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 5 months ago #192413

Can you provide me administrator access to check the issue?

0