Not sure if this is the correct place for this, but I get the following error when I upgrade to the latest version of the bootstrap theme on Drupal 7:

"Catchable fatal error: Argument 3 passed to Drupal\bootstrap\Backport\Plugin\Provider\ProviderBase::cacheGet() must be an instance of Drupal\bootstrap\Backport\Plugin\Provider\callable, instance of Closure given"

Can you help?

Comments

KeithStewart created an issue. See original summary.

markhalliwell’s picture

Title: Catchable fatal error » Catchable fatal error: callable type hint not available in PHP 5.3
Version: 7.x-3.25 » 7.x-3.x-dev

FWIW, this is because you're running PHP 5.3. I highly recommend, at a minimum, upgrading to PHP 5.6. Preferably, you should upgrade to PHP 7.2 though as PHP 5 is technically EOL (https://www.php.net/supported-versions.php).

  • markcarver committed a0cca7d on 7.x-3.x
    Issue #3063012 by markcarver, KeithStewart: Catchable fatal error:...
markhalliwell’s picture

Status: Active » Fixed
KeithStewart’s picture

Version: 7.x-3.x-dev » 7.x-3.25
Status: Fixed » Active

Thanks Mark. We are fully aware of the issues of running PHP 5.3, but it is not something we can solve easily unfortunately. Your help with this issue is much appreciated.

KeithStewart’s picture

Still getting an error:

"Fatal error: Call to protected method Drupal\bootstrap\Backport\Plugin\Provider\JsDelivr::discoverCdnAssets() from context ''"

markhalliwell’s picture

Status: Active » Fixed

Please open a separate issue. This one has been fixed.

Also, when providing errors, it's helpful to include the line number and what invoked it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.