cannot use scalar value as array

Created on 24 August 2023, about 1 year ago
Updated 10 October 2023, 12 months ago

Problem/Motivation

Error: Cannot use a scalar value as an array in
Cleantalk\Common\Cron\Cron->checkTasks() (line 245 of
public_html/blogs/web/modules/contrib/cleantalk/
lib/Cleantalk/Common/Cr

Steps to reproduce

Updated Cleantalk and get dreaded unexpected error

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

9.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tjtj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tjtj
  • πŸ‡·πŸ‡ΊRussia znaeff

    Hello.
    Thank you for letting us know.

    We've fixed the issue and made the new release 9.2.5.

    Please let us know if the issue has indeed been resolved.

  • πŸ‡³πŸ‡ΏNew Zealand tjharman

    I've just upgraded from 9.2.5 to 9.2.6 and now my site keeps throwing 500's

    [Thu Sep 07 07:15:09.001421 2023] [proxy_fcgi:error] [pid 113224:tid 129741154379456] [remote 192.168.0.253:46430] AH01071: Got error 'PHP message: Error: Cannot use a scalar value as an array in /var/www/drupal/web/modules/contrib/cleantalk/lib/Cleantalk/Common/Cron/Cron.php on line 245 #0 /var/www/drupal/web/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php(178): Cleantalk\\Common\\Cron\\Cron->checkTasks()\n#1 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\\cleantalk\\EventSubscriber\\BootSubscriber->handle()\n#2 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle()\n#3 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle()\n#4 /var/www/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\\Core\\StackMiddleware\\StackedHttpKernel->handle()\n#5 /var/www/drupal/web/index.php(19): Drupal\\Core\\Dr
    upalKernel->handle()\n#6 {main}'

    I've disabled Cleantalk for the moment.

    [07:22:14] root :: X  ➜  ~ » drush @X status
    zsh: correct 'status' to 'stats' [nyae]? n
    Drupal version   : 10.1.2
    Site URI         : https://X.com
    DB driver        : mysql
    DB hostname      : localhost
    DB port          : 3306
    DB username      : X
    DB name          : X
    Database         : Connected
    Drupal bootstrap : Successful
    Default theme    : bootstrap5
    Admin theme      : adminimal_theme
    PHP binary       : /usr/bin/php8.2
    PHP config       : /etc/php/8.2/cli/php.ini
    PHP OS           : Linux
    PHP version      : 8.2.7
    Drush script     : /var/www/drupal/vendor/drush/drush/drush
    Drush version    : 12.1.3.0
    Drush temp       : /tmp
    Drush configs    : /var/www/drupal/vendor/drush/drush/drush.yml
    Install profile  : standard
    Drupal root      : /var/www/drupal/web
    Site path        : sites/X.com
    Files, Public    : sites/X.com/files
    Files, Temp      : /tmp
  • πŸ‡ΊπŸ‡ΈUnited States Serge-M

    Thank you for your feedback.
    We are looking into the issue again. Please, wait within 3 business days.
    Regards.

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    Still a problem today. Kills my web site
    Error: Cannot use a scalar value as an array in
    Cleantalk\Common\Cron\Cron->checkTasks() (line 245 of
    /home/orcmaorg/public_html/web/modules/contrib/cleantal
    k/lib/Cleantalk/Common/Cron/Cro

  • πŸ‡·πŸ‡ΊRussia znaeff

    @tjtj We are still working on this. We need 1-2 business days more.

  • πŸ‡¬πŸ‡§United Kingdom pivwani

    I have this too and it's causing many issues

    Error: Cannot use a scalar value as an array in Cleantalk\Common\Cron\Cron->checkTasks() (line 245 of modules/contrib/cleantalk/lib/Cleantalk/Common/Cron/Cron.php)

    Please provide a new update ASAP

  • πŸ‡³πŸ‡ΏNew Zealand tjharman

    If it's a major problem you can roll back to the older version. it spits errors but it works

  • πŸ‡·πŸ‡ΊRussia znaeff

    We've made fixes and released 9.2.7 version. Please try to update the plugin.

    https://www.drupal.org/project/cleantalk/releases/9.2.7 β†’

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    Yes, so far that works. Thanks.

  • πŸ‡ΊπŸ‡ΈUnited States Serge-M

    You are welcome!
    Thank you too for your confirmation.

  • πŸ‡·πŸ‡ΊRussia znaeff

    Dear customers

    We have added a new feature, now you can send debug logs without having to provide access to your site.

    Pivani, Tjeo and Tjarman, please install this version and send us the debug logs.

  • πŸ‡·πŸ‡ΊRussia znaeff

    Hello.

    Any updates on the issue?

Production build 0.71.5 2024