Not logged in. · Lost password · Registration disabled
Forum: Overview Bugs / Fehler RSS
Fatal Error in sendmail.php
jeffsherk #1
Member since Nov 2007 · 37 posts
Group memberships: Mitglieder
Show profile · Link to this post
Subject: Fatal Error in sendmail.php
I turned debugging on, and I noticed the following error at the bottom of the INFO screen on the admin panel:

Fatal error: [] operator not supported for strings in /home/frtv/public_html/blog-itineraries/wp-content/plugins/post_notification/sendmail.php on line 237

Here is line 237 of sendmail.php (v1.28):
$cat_ids[] = (string)$last_cat;

The email still gets sent though.

It may have something to do with more than one post in the queue, because the error does not occur when there is only one post waiting to be sent.
Morty (Administrator) #2
User title: Author
Member since Jun 2007 · 928 posts
Group memberships: Administratoren, Mitglieder
Show profile · Link to this post
If there is only on post that line isn't hit - otherwise php seems to do the expected thing.
It _should_ be fixed in the attached file.
The author has attached one file to this post:
sendmail.php | Save   10.9 kBytes, downloaded 283 times
jeffsherk #3
Member since Nov 2007 · 37 posts
Group memberships: Mitglieder
Show profile · Link to this post
Yes, the fatal error is now gone in debug mode!!!

Thank you
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum