Problem/Motivation
We have experienced sporadic broken page (site) issues after upgrading from 9.3.2 to 9.3.3. The site will show a blank page with the following error message:
The website encountered an unexpected error. Try again later.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "`" LINE 1: CREATE TABLE IF NOT EXISTS `cleantalk_sfw` (`id` INT NOT NUL... ^: CREATE TABLE IF NOT EXISTS `cleantalk_sfw` (`id` INT NOT NULL AUTO_INCREMENT, `network` INT unsigned NOT NULL, `mask` INT unsigned NOT NULL, `status` TINYINT NOT NULL DEFAULT 0, `source` TINYINT NULL DEFAULT NULL, PRIMARY KEY (`id`), INDEX ( `network` , `mask` )); Array ( ) in Cleantalk\Custom\Db\Db->execute() (line 47 of modules/contrib/cleantalk/lib/Cleantalk/Custom/Db/Db.php).
Steps to reproduce
The issue seems to happen randomly. The web site usually comes back after a page reload but will happen again at a later time.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | cleantalk_error.txt | 124.08 KB | chunhuaicheng |
| #8 | Cleantalk2024-07-09140210.png | 85.7 KB | chunhuaicheng |
Issue fork cleantalk-3440073
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
znaeff commentedHello @chunhuaicheng,
Thank you for the information.
I've passed your details to the programmer staff.
We will write back to you within 3 business days when we get any results.
Please wait.
Comment #3
rishabjasrotia commentedHello @chunhuaicheng
It seems to be issue with postgresql database syntax error.
It works fine with MariaDB & MySQL.
Comment #4
znaeff commentedHello @chunhuaicheng,
Thank you for waiting.
Since you are using PostgreSQL, you need to use this version:
https://www.drupal.org/files/issues/2023-03-29/cleantalk%2Bpgsql_0.zip
Did it help?
Comment #5
chunhuaicheng commentedYes, we're using PostgreSQL and yes, it seems to help.
But we're using composer to manage the packages. Now I just swapped out cleantalk from the 'module/contrib' folder with this postgres version. This will get overwritten every time we update Drupal, won't it? Is there a better solution?
Comment #6
znaeff commentedHello @chunhuaicheng,
We plan to merge the branch that supports this base and release a new version. The deadline is mid-May.
We'll let you know when we're done.
Comment #7
znaeff commentedHello @chunhuaicheng
We have released the new version: https://www.drupal.org/project/cleantalk/releases/9.4.0
Comment #8
chunhuaicheng commentedHi,
I just updated my Drupal site to 10.3.2 which has this 9.4.0 version of CleanTalk. However, I'm encountering this new error that breaks my site.
Comment #9
znaeff commentedHello @chunhuaicheng,
Could you please reinstall our plugin and recheck this issue?
Please let us know about the results.
Comment #10
chunhuaicheng commentedHi,
I just uninstalled and then reinstalled it from the web UI and repopulate our access key in the settings (i.e. /admin/config/cleantalk/cleantalk_settings_form). It was the same. It didn't happen at first but after I navigated around the site, some of the pages (e.g. /node/89, /user) was broken with the error message I attached here.
Comment #11
znaeff commentedThank you for the details.
Can you reach out to our support team so we can gather some more information from you concerning this issue? Please, create a private ticket:
https://cleantalk.org/my/support/open