Download & Extend

Upgrading Watcher uses deprecated method

Project:Watcher
Version:6.x-1.0-alpha2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When I try to upgrade from watcher 6.x-1.0-alpha1 to 6.x-1.0-alpha2 I get the following message:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_drop_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/vhosts/schrijvenonline.org/subdomains/beta/httpdocs/sites/all/modules/watcher/watcher.install on line 52

Or is this something in my server config? I've never seen it on other modules updates.

Comments

#1

I found out the error also appears after uninstalling and deleteing DB tables. So it's probably not an upgrading issue, but more an install issue.

#2

I've tested the update script and it seemed to work. Running 6.8 or 6.9?

#3

I'm running 6.8. I'll test on 6.9 later today.

#4

Cool, cheers!

#5

I cannot recreate this problem, I've attempted installs and uninstalls. Updates seem to work too. Did you try this on a clean Drupal 6.9 install?

#6

I haven't had the chance to retest it. I'll do it in the next few days...

#7

Cool! Keep me posted!

#8

Okay, I upgraded to Drupal 6.9 and Alpha 3. This problem disappeared, but the other problem (http://drupal.org/node/358709) still exists.

#9

I think the problem you refer to above is caused by a field that's never being created. I've fixed that now, will make a new release.

#10

Status:active» fixed

#11

Status:fixed» active

I got the same error as Pixelstyle when updating watcher Alpha 2 to Alpha 3 and then from Alpha 3 to Alpha 4 on a clean install of Drupal 6.9.

Here are the errors from the webserver's log file
[19-Jan-2009 12:31:59] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_drop_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 52
[19-Jan-2009 12:31:59] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_add_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 53

[19-Jan-2009 14:57:41] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_drop_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 52
[19-Jan-2009 14:57:41] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_add_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 53
[19-Jan-2009 14:57:47] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_drop_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 52
[19-Jan-2009 14:57:47] PHP Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_add_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 53

Now every time I use update.php, on top of the page, I have the following error noted:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_drop_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 56 Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of db_add_primary_key(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/hsphere/local/home/eapprais/new.dast2dast.org/modules/watcher/watcher.install on line 57

Also, watcher does not seem to email users watching posts. So far, I have not received a single notification on nodes update/comments for the nodes I'm watching. The site is http://www.new.dast2dast.org.

Thank you in advance

#12

Thank you for your report regarding the db issue. I'll investigate this as soon as I can.

As for the email issue, did you try the Testing tools on the module's settings page?

Please open a new issue for the email problem! Thanks.

#13

Thank you solipsist. I will open a new issue for the email problem and will check back here about the db issue.

#14

This bug should be fixed by now. Fix will be included in next alpha release.

#15

Status:active» fixed

#16

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here