News:

Wondering if this will always be free?  See why free is better.

Main Menu

CreatePost-Notify.php and cron.php error

Started by w4rkr4f7, May 12, 2015, 03:42:31 PM

Previous topic - Next topic

w4rkr4f7

Using SMF 2.1 ,I have some errors in logs  :



Guest
Today at 22:38
Type of error: Critical
The database value you're trying to insert does not exist: topic
Function: execute
http://www./cron.php
File: /Sources/tasks/CreatePost-Notify.php
Line: 62


Guest
Today at 22:38
Type of error: Cron
8: unserialize(): Error at offset 108 of 652 bytes
http://www./cron.php
File: /cron.php
Line: 199

Illori

are you using the latest version of 2.1 off github?

w4rkr4f7



w4rkr4f7


w4rkr4f7

can I create a database called topic to avoid that errors until a real fix will be available ?

w4rkr4f7

Ok it seems I have not access to Edit function  but I have solved that errors myself:

in file Subs-Post.php

replace line
if ($msgOptions['send_notifications'] && $msgOptions['approved'])


with
if ($msgOptions['send_notifications'] && $msgOptions['approved'] && !$user_info['is_guest'])


No more errors in logs .

Advertisement: