We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Error on Cron file and Stopped seding email notifications | Forum

Topic location: Forum home » Support » General Questions
Billy Pip
Billy Pip Apr 18 '16
Hey

My site stopped sending email notifications ..

I checked cron here , if it be true address : http://site.com/ow_cron/run.php


and it shows below error message : 


 OW Debug - Warning

Message: usort() expects parameter 2 to be a valid callback, no array or string given

File: /home/site/public_html/ow_core/plugin_manager.php

Line: 112

OW Debug - Exception

Message: SQLSTATE[HY000]: General error: 126 Incorrect key file for table './pals2/ow_base_cron_job.MYI'; try to repair it

File: /home/site/public_html/ow_core/database.php

Line: 723

Trace:


#0 /home/site/public_html/ow_core/database.php(723): PDOStatement->execute()

#1 /home/site/public_html/ow_core/database.php(640): OW_Database->execute('REPLACE INTO `o...')

#2 /home/site/public_html/ow_system_plugins/base/bol/cron_job_dao.php(84): OW_Database->batchInsertOrUpdateObjectList('ow_base_cron_jo...', Array)

#3 /home/site/public_html/ow_system_plugins/base/bol/cron_service.php(71): BOL_CronJobDao->batchSave(Array)

#4 /home/site/public_html/ow_cron/run.php(124): BOL_CronService->batchSave(Array)

#5 {main}


Type: PDOException




Please guide me how to fix this issue

The Forum post is edited by Billy Pip Apr 18 '16
Oxwall Tips
Oxwall Tips Apr 18 '16
Open ow_base_cron_job table via phpmyadmin , select all rows- delete them. Wait until cron runs again, recheck the table. It should get populated with data again.<br />
<br />
About this table https://skatips.wordpress.com/...es-ow_base_cron_job/.

Note: your error is either one of " one in a million un-reproducable" one OR one of your third party plugins is causing it. In that case after table is emptied and cron runs again you will get your error in logs again.
The Forum post is edited by Oxwall Tips Apr 18 '16
Billy Pip
Billy Pip Apr 18 '16
After delete rows . I see it populated with data again instantly

and I see same error log again

Oxwall Tips
Oxwall Tips Apr 18 '16
Could you please make screen shot of that table ( all rows) ?
Oxwall Tips
Oxwall Tips Apr 18 '16
Try repairing the table as well. May be that would help. Repair option should be under "operations" as far as I remember
The Forum post is edited by Oxwall Tips Apr 18 '16
Billy Pip
Billy Pip Apr 18 '16
I did 'Repair' option and after that , http://site.com/ow_cron/run.php shows blank page.. It works correctly ?

If it's ok , script doesn't sending notification emails yet

Oxwall Tips
Oxwall Tips Apr 18 '16
Yes it should be white page. Indicates that all s working
Oxwall Tips
Oxwall Tips Apr 18 '16
Test with inviting users via admin panel >> browse users.
Billy Pip
Billy Pip Apr 18 '16
It doesnt send notifications emails
Oxwall Tips
Oxwall Tips Apr 18 '16
Notification email = emails sent by Activity Notifications plugin.<br /><br />
Those depend on :<br /><br />
- frequency selected by user under his account >> preferences>> email notifications<br /><br />
- types of notifications user decided to receive on the same page<br /><br />
- on top of that user must be offline when notification action is generated .<br /><br />
<br /><br />
As you can see those emails depend on a lot of factors. <br /><br />
Therefore test mail delivery using "invite users" feature. This one is straight forward.
The Forum post is edited by Oxwall Tips Apr 18 '16
Billy Pip
Billy Pip Apr 18 '16
I used inviting user .. but it didn't send email
Oxwall Tips
Oxwall Tips Apr 18 '16
Basically check ow_base_mail table . are your invitations there?
The Forum post is edited by Oxwall Tips Apr 18 '16
Billy Pip
Billy Pip Apr 18 '16
not new invitations .. only olds
Oxwall Tips
Oxwall Tips Apr 18 '16
How many rows are in ow_base_mail table?
Billy Pip
Billy Pip Apr 18 '16
i invited 2 emails few seconds ago ,, and i see them on table right now
Oxwall Tips
Oxwall Tips Apr 18 '16
Cool.now need to wait until cron runs and rows are removed
Billy Pip
Billy Pip Apr 18 '16
can i run cron on browser and see what will happen?
Billy Pip
Billy Pip Apr 18 '16
also I have more than 25 rows on table already!
Oxwall Tips
Oxwall Tips Apr 18 '16
Not recommended. Since you need to make sure that automatic cron is working
Pages: 1 2 »