Advertisement:

Author Topic: CreatePost-Notify.php and cron.php error  (Read 2265 times)

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
CreatePost-Notify.php and cron.php error
« on: May 12, 2015, 03:42:31 PM »
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

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,579
Re: CreatePost-Notify.php and cron.php error
« Reply #1 on: May 12, 2015, 03:54:55 PM »
are you using the latest version of 2.1 off github?

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: CreatePost-Notify.php and cron.php error
« Reply #2 on: May 12, 2015, 03:57:15 PM »
are you using the latest version of 2.1 off github?

yes I do

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,956
  • Gender: Male
  • Black cat rulz!
    • XinYenFon on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: CreatePost-Notify.php and cron.php error
« Reply #3 on: May 12, 2015, 03:57:47 PM »
Open for PAID works # Support Me

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: CreatePost-Notify.php and cron.php error
« Reply #4 on: May 12, 2015, 04:09:21 PM »
how can I disable all notifications ?

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: CreatePost-Notify.php and cron.php error
« Reply #5 on: May 13, 2015, 08:21:01 AM »
can I create a database called topic to avoid that errors until a real fix will be available ?

Offline w4rkr4f7

  • Semi-Newbie
  • *
  • Posts: 41
Re: CreatePost-Notify.php and cron.php error
« Reply #6 on: May 13, 2015, 10:12:49 AM »
Ok it seems I have not access to Edit function  but I have solved that errors myself:

in file Subs-Post.php

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

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

No more errors in logs .