WordPress.org

Ready to get started?Download WordPress

Forums

cbnet Multi Author Comment Notification
[resolved] strpos error (3 posts)

  1. konigmedia
    Member
    Posted 3 years ago #

    Hey There.
    Great Plugin. Having some errors at the top of the page..

    Warning: strpos() [function.strpos]: Empty delimiter in /home/neilstra/public_html/innercircle/site/wp-content/plugins/cbnet-multi-author-comment-notification/cbnet-multi-author-comment-notification.php on line 244

    shows this line 3 times... at the top of the plugin settings page.
    I went to the plugin file and there is no code on line 244

    any idea what the deal might be?

    it appears that the plugin works regardless of this error being displayed... but for my clients sake I would like to remove so they don't worry.

    thanks..
    Joe

  2. sumbawa
    Member
    Posted 2 years ago #

    Joe,
    I just started using this plugin and got the same PHP warnings (using plugin version 1.1.2).

    Line 244 is the following:
    if ( isset( $user_detail[3] ) && strpos($this->cbnetmcn_options['emails'],$user_detail[3]) !== false ) {

    and the warning happens if $user_detail[3] is present but empty. Changing that line to the following:

    if ( isset( $user_detail[3] ) && ( $user_detail[3] != "" ) && strpos($this->cbnetmcn_options['emails'],$user_detail[3]) !== false ) {

    fixed the warnings for me.

    Many thanks to Chip for a very useful plugin to help streamline the email flow.

    Declan

  3. konigmedia
    Member
    Posted 2 years ago #

    Declan..
    very cool of you to post this fix... It is much appreciated..

    cheers,
    Joe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic