Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

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)

Aug 26, 2022

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)

Aug 26, 2022

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)

Sep 02, 2022

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

Sep 02, 2022

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

Sep 02, 2022

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

Sep 02, 2022

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