All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

Ticket: Get Error When Trying to Access Bloqs Settings

Status Resolved
Add-on / Version Bloqs 4.6.1
Severity
EE Version 6.0.3

Michael Coogan

Apr 14, 2021

When trying to access bloqs settings in backend (manage.php?/cp/addons/settings/bloqs) I get the following error:

Error Caught
Call to undefined method BoldMinded\Bloqs\Database\Adapter::getTemplateDefinitionsUsage()
user/addons/bloqs/mcp.bloqs.php:215
Stack Trace: Please include when reporting this error
    #0 [internal function]: Bloqs_mcp->index()
    #1 ee/ExpressionEngine/Controller/Addons/Addons.php(1397): call_user_func_array()
    #2 ee/ExpressionEngine/Controller/Addons/Addons.php(701): ExpressionEngine\Controller\Addons\Addons->getModuleSettings()
    #3 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings()
    #4 ee/ExpressionEngine/Core/Core.php(251): call_user_func_array()
    #5 ee/ExpressionEngine/Core/Core.php(111): ExpressionEngine\Core\Core->runController()
    #6 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run()
    #7 public_html/manage.php(154): require_once('...')
    #7 public_html/manage.php(154): require_once('...')

Additionally, on the front end the

{bloqs:children}

tag is not rendering correctly. Image included.

Everything seems to work in my local dev environment but when I upload to staging server this issues arise.

#1

BoldMinded (Brian)

If everything works locally but not on staging, can you identify what the difference is between those environments?

Have you tried the staging db locally?

#2

BoldMinded (Brian)

In the other ticket you mentioned rbis was an opcache issue and it’s since been resolved?

#3

Michael Coogan

Brian,

Had a similar issue on another site just now. Disabled OPCACHE and everything started working properly. I use forge for hosting and it seems like I’ll just have to make this part of my update process. No big deal.

#4

Michael Coogan

Probably should have read this in forge control panel:

“Optimizing the PHP OPcache for production will configure OPcache to store your compiled PHP code in memory to greatly improve performance.

If you choose to optimize OPcache for production, you should verify that your deployment script reloads the PHP FPM service at the end of each deployment.”

Login to reply