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: Updating plugin breaks site.. and made it non reversible.

Status Resolved
Add-on / Version Bloqs 5.0.3
Severity
EE Version 6.3.5

Pontus Madsen

Aug 25, 2022

Tried updating from Blogs 4 something to the latest version.
After updating, it gives me this error on the add-on page, which means it’s blocking the entire add-on page for me :(

My site has gone down due to this.. freaking out.. please help.

I removed the plugin from backend to see if that would work, but if I do, it gives me another error that a file is missing or something, which is very unusual.
Trying to downgrade to version bloqs-423 in the meantime ;_;

Throws the following error in backend.

ParseError Caught

syntax error, unexpected '?'

user/addons/bloqs/Library/Basee/App.php:492

Stack Trace: Please include when reporting this error

#0 [internal function]: ExpressionEngine\Core\Autoloader->loadClass('BoldMinded\\Bloq…')
#1 user/addons/bloqs/base.bloqs.php(78): spl_autoload_call('BoldMinded\\Bloq…')
#2 user/addons/bloqs/upd.bloqs.php(48): Bloqs_base->__construct()
#3 ee/ExpressionEngine/Controller/Addons/Addons.php(1056): Bloqs_upd->__construct()
#4 ee/ExpressionEngine/Controller/Addons/Addons.php(264): ExpressionEngine\Controller\Addons\Addons->getModule('bloqs')
#5 ee/ExpressionEngine/Controller/Addons/Addons.php(180): ExpressionEngine\Controller\Addons\Addons->getAllAddons()
#6 [internal function]: ExpressionEngine\Controller\Addons\Addons->index()
#7 ee/ExpressionEngine/Core/Core.php(266): call_user_func_array(Array, Array)
#8 ee/ExpressionEngine/Core/Core.php(122): ExpressionEngine\Core\Core->runController(Array)
#9 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#10 ad91f1/e1eff57cf9.nxcli.net/html/admin.php(147): require_once('...')
#10 ad91f1/e1eff57cf9.nxcli.net/html/admin.php(147): require_once('...')

... Worth mentioning is that I tried to update since the plugin stoped outputting any data.

#1

BoldMinded (Brian)

What version of PHP are you using?

My site has gone down due to this.. freaking out.. please help

Did you test the upgrade in a local or dev environment first? This sounds like it was a production upgrade?

#2

BoldMinded (Brian)

I logged into your CP and you’re still on PHP 7. 7.2 is the minimum versions for all my add-ons, has been this way for awhile now.

You can make the following updates to the code to work around the issue, but if you do I can’t offer anymore support until you update to PHP 7.2 or greater.

In line 492 of Library/Basee/App.php, remove the :?string at the end of the last 2 functions so it looks like this:

public static function getCallingClass(int $depth = 1)
    {
        $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,5);
        return $backtrace[$depth]['class'] ?? null;
    }

    public static function getCallingFunction(int $depth = 1)
    {
        $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,5);
        return $backtrace[$depth]['function'] ?? null;
    }
#3

BoldMinded (Brian)

Pontus, I’m going to close this out. If you’re experiencing issues once updating to PHP 7.2 feel free to re-open it.

#4

Pontus Madsen

Hi!

Thanks for the reply. I’ve upgraded to 7.2, and reinstalled the latest version of the plugin, but still breaks.

ParseError Caught

syntax error, unexpected '?'

user/addons/bloqs/Library/Basee/App.php:492

Stack Trace: Please include when reporting this error

#0 [internal function]: ExpressionEngine\Core\Autoloader->loadClass('BoldMinded\\Bloq...')
#1 user/addons/bloqs/base.bloqs.php(78): spl_autoload_call('BoldMinded\\Bloq...')
#2 user/addons/bloqs/upd.bloqs.php(48): Bloqs_base->__construct()
#3 ee/ExpressionEngine/Controller/Addons/Addons.php(1056): Bloqs_upd->__construct()
#4 ee/ExpressionEngine/Controller/Addons/Addons.php(264): ExpressionEngine\Controller\Addons\Addons->getModule('bloqs')
#5 ee/ExpressionEngine/Controller/Addons/Addons.php(180): ExpressionEngine\Controller\Addons\Addons->getAllAddons()
#6 [internal function]: ExpressionEngine\Controller\Addons\Addons->index()
#7 ee/ExpressionEngine/Core/Core.php(266): call_user_func_array(Array, Array)
#8 ee/ExpressionEngine/Core/Core.php(122): ExpressionEngine\Core\Core->runController(Array)
#9 ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#10 ad91f1/e1eff57cf9.nxcli.net/html/admin.php(147): require_once('...')
#10 ad91f1/e1eff57cf9.nxcli.net/html/admin.php(147): require_once('...')
#5

Pontus Madsen

Since it breaks the entire site (Yes, done in production), I’m gonna go ahead and downgrade to an earlier version again.

#6

Pontus Madsen

Hi,

Close ticket, got it to work.. seems the server was just very slow in upgrading to 7.2. Thanks for the help dude! 😊

Login to reply