WordPress.org

Support

[Resolved] strpos error

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

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

    cheers,
    Joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] strpos error’ is closed to new replies.
Skip to toolbar