Publisher does not support the Fluid field type. 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: 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)

Dec 02, 2021

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

Dec 02, 2021

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

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

#3

BoldMinded (Brian)

Dec 02, 2021

What did you do to install Redis?

#4

Paul Larson

Dec 02, 2021

  # 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)

Dec 03, 2021

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)

Dec 03, 2021

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

#7

BoldMinded (Brian)

Dec 03, 2021

Comment has been marked private.

Login to reply