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.
In the actions.inc file, the last function, actions_delete(), uses the %d modifier for a varchar column (aid), when it should be %s.
Thus,
function actions_delete($aid) {
db_query("DELETE FROM {actions} WHERE aid = %d", $aid);
module_invoke_all('actions_delete', $aid);
}
Becomes,
/**
* Delete a single action from the database.
*
* @param $aid
* integer The ID of the action to delete.
*/
function actions_delete($aid) {
db_query("DELETE FROM {actions} WHERE aid = '%s'", $aid);
module_invoke_all('actions_delete', $aid);
}
Comments
Comment #1
Pomliane CreditAttribution: Pomliane commentedThis version of Actions is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.