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: Editing speedy settings: “Call to a member function scan() on null”; upon entry save “Call to a member function hGetAll() on null”

Status Resolved
Add-on / Version Bloqs 1.4.4
Severity
EE Version 6.0.6

Paul Larson

Dec 02, 2021

Cloned a site to staging. Redis is not enabled on the server. Current config.php is:

===
// SPEEDY module

$config[‘speedy_driver’] = ‘file’;

$config[‘speedy_enabled’] = ‘yes’;

// $config[‘speedy_enable_refresh’] = ‘yes’;

$config[‘speedy_break_async’] = ‘no’;

// EOF
===

Upon clicking the Speedy icon in modules (to land on the module dashboard) I get:

https://www.dropbox.com/s/q8mtqercd3rviyp/2021-12-02_10-42-15.png?dl=0

Upon saving entry, I get:

https://www.dropbox.com/s/l50970boz4uk7v3/2021-12-02_10-41-29.png?dl=0

===

PHP version is 7.4.26

Looked at this thread: https://boldminded.com/support/ticket/2285

Turns out, redis permissions were not the issue because it wasn’t even installed.

So in the Ubuntu server, I installed redis.

Both errors went away.

But should I really have to install redis - only to not use it?

Paul

 

#1

BoldMinded (Brian)

With Redis uninstalled what does your Speedy settings home page look like, where it lists the drivers? What is the status of it? Unavailable/Unconfigured etc?

#2

Paul Larson

That’s the thing- I can’t get to the Speedy homepage.

https://www.dropbox.com/s/q8mtqercd3rviyp/2021-12-02_10-42-15.png?dl=0

My first screenshot is what I’m presented with with Speedy uninstalled.

#3

BoldMinded (Brian)

What did you do to install Redis?

#4

Paul Larson

# apt install redis-server # vi /etc/redis/redis.conf # systemctl restart redis.service # Dec/02/21-16:47:53 redis-cli

(and did a ping/pong test)

Vanilla “install with apt” in other words.

#5

BoldMinded (Brian)

Can you uninstall the redis-server to get back to the error state?

Then update line 693 of mcp.speedy.php to this:

$count = $driver->countItems() ?? '';
#6

BoldMinded (Brian)

Is the Speedy settings page the only place you see this Redis error?

#7

BoldMinded (Brian)

Comment has been marked private.

Login to reply