Notification not work and…

0
Notification not work and... 1
serenaboschetti
Apr 03, 2018 04:28 PM 1 Answers General
Member Since Apr 2018
Subscribed Subscribe Not subscribe
Flag(0)

hi.. notification dont work, and widget leadboard and top question dont work..... anymore.. solutions?

2 Subscribers
Notification not work and... 1
Notification not work and... 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Notification not work and... 4
PickPlugins
Apr 03, 2018
Flag(0)

Welcome to our forum.

Can you please explain what issue you are facing? we also using the QA plugin to this forum, notification is working fine.

Regards

Notification not work and... 5
serenaboschetti
- Apr 12, 2018 06:40 AM
Flag (0)
0

Hi, I solved it through a snippet. With the following code:

global $ wpdb;

$ charset_collate = $ wpdb-> get_charset_collate ();
$ table_notification = $ wpdb-> prefix .'qa_notification ';

$ sql = "CREATE TABLE". $ table_notification. "(
id int (100) NOT NULL AUTO_INCREMENT,
q_id int (100) NOT NULL,
a_id int (100) NOT NULL,
c_id int (100) NOT NULL,
user_id int (100) NOT NULL,
subscriber_id int (100) NOT NULL,
action VARCHAR (50) NOT NULL,
status VARCHAR (50) NOT NULL,
datetime DATETIME NOT NULL,

UNIQUE KEY id (id)
) $ charset_collate; ";
require_once (ABSPATH. 'wp-admin / includes / upgrade.php');
dbDelta ($ sql);

in particular, the line that has solved is:

require_once (ABSPATH. 'wp-admin / includes / upgrade.php');
dbDelta ($ sql);

Without it it did not work. Strangely enough, I had to force the database update for this table, even though it was non-existent.

The problem remains with the email plugin, it works for comments, it works for votes, but it does not work for the answers to the subscribed posts. In this case I can not debug. Any suggestions?

I hope I have been useful in the solution to improve the plugin

Notification not work and... 5
serenaboschetti
- Apr 11, 2018 11:39 PM
Flag (0)
0

Not work, the table not exist, and not recreate after reinstall, only this table have this problem. I want to recreate them manually if function exist, or query to make this

Notification not work and... 7
PickPlugins
- Apr 11, 2018 11:35 PM
Flag (0)
0

Thanks for your reply,

if you have access to php my admin , please find the table *_qa_notification and delete it if already created, and then re-install the plugin.

Regards

10+ more comments. Sign in to Reply
Replying as Submit