• Urban Push seems to be giving me the warning:
    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 67
    on the create post page. And when I try to publish a post with a push notifications I get more of the same:

    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 67
    
    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 74
    
    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 83
    
    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 67
    
    Warning: strstr() [function.strstr]: Empty delimiter in [Redacted]\wp-content\plugins\urban-push\urbanpush.php on line 74
    
    Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\WordpressTest\wp-content\plugins\urban-push\urbanpush.php:67) in [Redacted]\wp-includes\pluggable.php on line 881

    And I get not push notification sent.
    Is there an easy fix for this?

    http://ww.wp.xz.cn/extend/plugins/urban-push/

Viewing 2 replies - 1 through 2 (of 2 total)
  • What I did was to remove the strstr function and replace with the empty() function on those lines because they appear to just be checking to make sure the strings are not blank, hence the error about comparing to empty delimiter. Line 71 uses strstr to compare the password though so don’t mess with that one.

    Here’s what I did
    line 67 if (empty($_POST[“password”]))
    line 74 if (empty($_POST[“push”]))
    line 83 if ($appname{‘text_string’} && !empty($appname{‘text_string’})) … and this is the same for the other 3 sections that are similar to this block.

    whoops, accidentally posted twice

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Urban Push] Warning: strstr() [function.strstr]: Empty delimiter’ is closed to new replies.