Error Listing Contacts after Deleting Spam

I’ve a new and current install of Backlight 5.3.2.

I was getting lots of spam through my contact form so I blocked the evil-doer’s IP at my firewall and then I marked their 300 form submissions as Spam in the Contacts list and then deleted those messages.

When I go back to the Contacts list in the administrator I get the below PHP message in my browser.

I tried submitting a new contact form for myself, that arrived in my email, but the error message persisted.

Larry

PdoExtended::selectRows(): Argument #2 ($params) must be of type array, null given, called in /var/www/silvernitrate/site/backlight/modules/module-admin/application/dao/ContactDAO.php on line 34|#0 /var/www/silvernitrate/site/backlight/modules/module-admin/application/dao/ContactDAO.php(34): PdoExtended->selectRows() #1 /var/www/silvernitrate/site/backlight/modules/module-admin/application/controllers/AdminController.php(1319): ContactDAO->getFilteredContacts() #2 /var/www/silvernitrate/site/backlight/modules/module-framework/controllers/Controller.php(58): AdminController->list_contacts() #3 /var/www/silvernitrate/site/backlight/modules/module-framework/models/Dispatchable.php(136): Controller->dispatch() #4 /var/www/silvernitrate/site/backlight/modules/module-framework/Framework.php(78): Dispatchable->dispatch() #5 /var/www/silvernitrate/site/backlight/index.php(32): Framework->route() #6 {main}|URL: /backlight/index.php

Followup - I tried today and its working. Except when you have both dates blank for the range and then select “all contacts”. Cheers.

Hi @silvernitrate, thanks for pointing that out. It’s a logic error in our code, that may only have become an issue with recent versions of PHP.
I’ve put in a silent fix for this. This can be obtained by visiting the Backlight Modules page and clicking “Reinstall” for the entry for module-admin.