Hi
In mail settings there is:
You can stop receiving emails when someone replies to this post,
by going to [comment-subscribed:unsubscribe-url]
But in the mail when clicking on link this erreo appear:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxxxx.comment_notify' doesn't exist: SELECT c.cid FROM {comment} c, ( SELECT oc.nid, oc.uid FROM {comment} AS oc, comment_notify AS ocn WHERE oc.cid = ocn.cid AND ocn.notify_hash = :hash ) AS o WHERE o.nid = c.nid AND o.uid = c.uid; Array ( [:hash] => wol5Iisa77yBCUOsxkHBp8FUR7-dtf4-_p9aE1xj-Ms ) i comment_notify_unsubscribe_by_hash() (linje 278 af /customers/c/f/e/xxxxx.xx/httpd.www/tmf/sites/all/modules/comment_notify/comment_notify.inc).
Pafla
Comment | File | Size | Author |
---|---|---|---|
#9 | 1805568_table_prefix_on_delete.patch | 493 bytes | greggles |
Comments
Comment #1
gregglesWas this a fresh install or an upgrade?
If you visit update.php are there updates to run?
Were there any errors when you enabled the module?
Are you using MySQL or Postgres?
That table should be created on every site - http://drupalcode.org/project/comment_notify.git/blob/refs/heads/7.x-1.x... so if it doesn't exist on your site then there could be a problem with install/upgrade or with the installation on your site.
Comment #2
Pafla CreditAttribution: Pafla commentedHi
Fresh install of module and no errors on install
When i go to admin/modules/update
The "Comment Notify" is not in list
When i go admin/reports/updates and click "Check manually"
Then the "Comment Notify" module is green
However the installed v is 7.x-1.1+6-dev (2012-aug-15)
And recommended is 7.x-1.1 (2012-jun-13)
I´m using MySQL
Pafla
Comment #3
gregglesCan you try to disable the module, uninstall it, and re-enable it?
Comment #4
Pafla CreditAttribution: Pafla commentedHi
I just found out that it does not send mail, but it has done earlier.
Maybe something wrong with my site or database.
I will try make a new clean install of drupal (my site).
When done i will then return.
Pafla
Comment #5
gregglesIt's been more than 2 weeks and nobody else has this problem so closing this issue.
Please do reopen it if you can find the source of the problem.
Comment #6
Dr.Osd CreditAttribution: Dr.Osd commentedComment #7
Dr.Osd CreditAttribution: Dr.Osd commentedHi. I have same problem with fresh install of comment notify 7.x-1.2.
In report I have errorr:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drozdu_mydomain.comment_notify' doesn't exist: SELECT c.cid FROM {comment} c, ( SELECT oc.nid, oc.uid FROM {comment} AS oc, comment_notify AS ocn WHERE oc.cid = ocn.cid AND ocn.notify_hash = :hash ) AS o WHERE o.nid = c.nid AND o.uid = c.uid; Array ( [:hash] => kwU3qGq4QkHrkfch853z5z_BNwZggBEJ_fEy5YU1ZF8 ) в функции comment_notify_unsubscribe_by_hash() (строка 278 в файле /hsphere/local/home/drozdu/mydomain.com/sites/all/modules/comment_notify/comment_notify.inc).
Comment #8
KitsuneSolar CreditAttribution: KitsuneSolar commentedHi, too:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'prj_ololo.comment_notify' doesn't exist: SELECT c.cid FROM {comment} c, ( SELECT oc.nid, oc.uid FROM {comment} AS oc, comment_notify AS ocn WHERE oc.cid = ocn.cid AND ocn.notify_hash = :hash ) AS o WHERE o.nid = c.nid AND o.uid = c.uid; Array ( [:hash] => d57N0dmWv04ryhTVb7m85R6i6ObEk9cQrcZiUuDt0Mg ) в функции comment_notify_unsubscribe_by_hash() (строка 278 в файле /home/projects/prj_ololo/domain/public_html/sites/all/modules/comment_notify/comment_notify.inc).
PHP 5.4
It seems that there is no table prefix:
Table 'prj_ololo.comment_notify'
And I have a table with a prefix "main_", ie:
Table 'prj_ololo.main_comment_notify'
Comment #9
gregglesAHA - that's a great detail.
Can you try this patch?
Comment #10
KitsuneSolar CreditAttribution: KitsuneSolar commentedExcellent! It's working! And here there is no problem?
That is to say, here:
or here:
'comment_notify' => {comment_notify}
No?
I'm sorry, I almost do not know Drupal :)
Comment #11
gregglesThe new database API automatically prefixes tables, so there is no problem with those instances.
Committed to 7.x-1.x - http://drupalcode.org/project/comment_notify.git/commit/d56ea59
I'll probably leave it as part of the dev for a while (that tar file will get re-rolled in the next ~12 hours) so people affected by this bug should wait 12 hours and then upgrade. If there aren't many new bug reports I'll make a new stable release in ~2 weeks.
Comment #13
izmeez CreditAttribution: izmeez commentedIs this going to be added to a new stable release? Thanks.
Comment #14
gregglesSure, I just created https://www.drupal.org/node/2599928