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.
I am creating a new node and getting the following message
Strict warning: Only variables should be passed by reference in sms_user_sms_send() (line 121 of /opt/bitnami/apps/drupal/htdocs/sites/all/modules/smsframework/modules/sms_user/sms_user.module).
Comment | File | Size | Author |
---|---|---|---|
#7 | smsframework-1923432-strict_error-7.patch | 693 bytes | torpy |
Comments
Comment #1
batje CreditAttribution: batje commentedAm not sure if it fixes this problem, but this patch fixes a lot of issues around the sleep settings (which is what is called around that line) Please try applying it at report back.
Comment #2
phillipclarke29 CreditAttribution: phillipclarke29 commentedI applied the patch and got
Error
Error messagePDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'u.sleep_enabled' in 'field list': SELECT u.uid AS uid, u.number AS number, u.status AS status, u.code AS code, u.gateway AS gateway, u.sleep_enabled AS sleep_enabled, u.sleep_start_time AS sleep_start_time, u.sleep_end_time AS sleep_end_time FROM {sms_user} u WHERE (uid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 1 ) in sms_user_user_load() (line 589 of /opt/bitnami/apps/drupal/htdocs/sites/all/modules/smsframework/modules/sms_user/sms_user.module).
The website encountered an unexpected error. Please try again later.
Comment #3
phillipclarke29 CreditAttribution: phillipclarke29 commentedok - I unticked the "enable sleep hours" button on sms user options and the error has gone
Comment #4
batje CreditAttribution: batje commentedDid you run updatedb after applying the patch? The update creates 3 new columns, one of them is missing in your error.
Comment #5
batje CreditAttribution: batje commentedThe patch I referred to is now committed in the dev branch.
Comment #7
torpy CreditAttribution: torpy commentedIt doesn't actually fix the problem. The issue is that the return from a function call is passed into array_shift().
Patch attached.
Comment #8
torpy CreditAttribution: torpy commentedForgot issue status!
Comment #10
almaudoh CreditAttribution: almaudoh commentedCommitted and pushed to 7.x-1.x. Thanks.