Гость
22 Июль 2013 06:37

I tried to test the cron URL by running it manually

but I get this error

Error

0!

SQL=SELECT user_id FROM fgd7_js_res_notifications WHERE AND alerted = 0 AND user_id NO IN ( SELECT user_id FROM fgd7_js_res_user_options WHERE schedule > 1 OR lastsend < NOW() - INTERVAL 1 MINUTE)

Скрытый текст

Последние изменения: 02 Март 2014


stblink VIP
Total posts: 501
22 Июль 2013 08:51

I don't believe the notifications are completely 100%, i've been testing them and there's this topic


Гость
23 Июль 2013 03:00

Mysql error 0 is regarding Mysql Starting serviceMysql error 0 is regarding Mysql Starting service

mhhh... I am not sure to understand what you are talking about, let's see if someone from the official people reply

thanks anyway


Sergey
Total posts: 13,748
24 Июль 2013 09:36

Please check if you have lastsend DATETIME column of the fgd7_js_res_user_options table.


Гость
25 Июль 2013 02:01

this is what I see in phpmyadmin


Sergey
Total posts: 13,748
26 Июль 2013 01:54

Can you run this query in PMA and see what error it will report. Because Joomla sql error reporting system sometimes do not show true error.


Гость
26 Июль 2013 05:05

which query?

I do not see any text in your comment


Гость
30 Июль 2013 04:09

Ok,

I ran the query in phpmyadmin and here is the error I receive

the query I copied/pasted is this

SQL=SELECT user_id FROM fgd7_js_res_notifications WHERE AND alerted = 0 AND user_id NO IN ( SELECT user_id FROM fgd7_js_res_user_options WHERE schedule > 1 OR lastsend < NOW() - INTERVAL 1 MINUTE)


Sackgesicht VIP
Total posts: 1,636
30 Июль 2013 04:15

There seems to be 2 mistakes in the query ...

The AND after where and the NOT instead of NO

SELECT user_id FROM fgd7_js_res_notifications WHERE alerted = 0 AND user_id NOT IN ( SELECT user_id FROM fgd7_js_res_user_options WHERE schedule > 1 OR lastsend < NOW() - INTERVAL 1 MINUTE)


Гость
30 Июль 2013 04:18

running the query suggested by Sack

SELECT user_id FROM fgd7_js_res_notifications WHERE alerted = 0 AND user_id NOT IN ( SELECT user_id FROM fgd7_js_res_user_options WHERE schedule > 1 OR lastsend < NOW() - INTERVAL 1 MINUTE)

gives back no error


Гость
30 Июль 2013 06:34

So now I guess I have to wait for sergey feedback on this... ?


Sergey
Total posts: 13,748
31 Июль 2013 00:55

you have to also change < to >. The total fix is line 134 of controllers/cron.php

SELECT user_id FROM #__js_res_notifications WHERE alerted = 0 AND user_id NOT IN (

 SELECT user_id FROM #__js_res_user_options WHERE schedule != 1 OR lastsend > NOW() - INTERVAL {$period})

Гость
31 Июль 2013 03:17

thank you

but is this a bug?

beacuse if so I will just wait for next release, I am not in a hurry for this feature


Sergey
Total posts: 13,748
01 Авг 2013 01:53

Yes it is a bug.

Работает на Cobalt