Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Getting this error on cron runs:
WD cron: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for [error]
the right syntax to use near '%d' at line 1:
SELECT COUNT(DISTINCT bundle_md5) AS advagg_count
FROM advagg_bundles
WHERE timestamp < %d
; Array
(
[0] => 1345939666
)
in advagg_cron() (line 310 of advagg.module).
Comments
Comment #1
AlvaroDeMendoza CreditAttribution: AlvaroDeMendoza commentedIt seems like a mistake on syntax porting on advagg.module at line 305+-. I don't know how to roll the patch. Change
for this
Comment #2
shunting CreditAttribution: shunting commentedThis made the error go away for me. Thanks.
Comment #3
markhalliwellI'll review this once a few other issues have been settled.
I'm renaming this issue to become the meta issue for #1171546: AdvAgg - D7 Port/Re-write and placing it on the issue summary of that issue. This will need to be fixed before a stable release can be made.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedFixed in the latest 7.x-2.x #1171546-105: AdvAgg - D7 Port/Re-write