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.
Under PHP 7.2, there are warning messages in the log whenever cron runs to send Watcher emails.
Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _watcher_email_notifications_send_queue() (line 2890 of /home/xxxxx/public_html/sites/all/modules/watcher/watcher.module).
There may be other areas that need a bit of tuning up for 7.2 as well.
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-6-9.txt | 1003 bytes | nitin_lama |
#9 | 3038175-fixing-coding-standard-9.patch | 838 bytes | nitin_lama |
#6 | foreach-added-2885309-2.patch | 870 bytes | Matthewsmith619 |
#2 | 2885309-2.patch | 646 bytes | Shreevasa Tantry |
Comments
Comment #2
Shreevasa Tantry CreditAttribution: Shreevasa Tantry at Specbee commentedPlease review the patch file.
Comment #3
jabeler CreditAttribution: jabeler commentedThanks!
I've applied the patch, but am now getting the following errors.
ParseError: syntax error, unexpected '&&' (T_BOOLEAN_AND) in drupal_load() (line 2890 of /home/xxx/public_html/sites/all/modules/watcher/watcher.module).
Comment #4
Matthewsmith619 CreditAttribution: Matthewsmith619 commentedJabeler where you able to fix this issue I am getting the same error.
Comment #5
xurizaemonThe patch attached in #2 generates invalid PHP.
Setting back to Needs Work accordingly.
Comment #6
Matthewsmith619 CreditAttribution: Matthewsmith619 commentedHello the patch posted first will not work. Here is a working patch with valid PHP.
Comment #7
xurizaemonPlease check the proposed patch for coding standards. Refer https://www.drupal.org/docs/develop/standards
Comment #8
nitin_lamaComment #9
nitin_lamaupdated patch as per #7