Support » Plugin: Simple Lightbox » Simple Lightbox: strrpos() warning

  • Resolved Robert

    (@rsterry48)


    We’re getting the following PHP error for Simple Lightbox. Any idea why?

    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, can you please provide the full warning message you are seeing so that your issue can be fully evaluated?

    For example, the specific line of code in the file should be noted in the warning message, etc.

    Thread Starter Robert

    (@rsterry48)

    Certainly. Thank you for looking into this.

    Mar 12, 07:39:42
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:39:50
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:39:51
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:39:51
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:40:00
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:01
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:02
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    
     
    Mar 12, 07:40:14
    
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
     
    Mar 12, 07:40:15
    Warning: trim() expects parameter 1 to be string, array given in /wp-includes/class-wp-query.php on line 1934
    
    Mar 12, 07:40:15
    Warning: strrpos() expects parameter 1 to be string, array given in /wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 1411
    Plugin Author Archetyped

    (@archetyped)

    Looks like something odd is going on with the request that is triggering these warnings as even WordPress’ own code is triggering warnings.

    Please provide a link to a page that exhibits the issue you are experiencing and I would be glad to take a closer look.

    Thread Starter Robert

    (@rsterry48)

    Unfortunately I can’t tell what page or plugin is triggering the error message.

    Plugin Author Archetyped

    (@archetyped)

    Where are you seeing these warning messages (on the page, in a log, etc.)? You want to check your logging configuration to provide more details on what is generating the messages to track down the cause.

    Thread Starter Robert

    (@rsterry48)

    On the Dashboard in the PHP Error Log. However, the Error Log has now been cleared so error no longer available. I’ll keep a look out if it recurs again. Thanks for getting back.
    Robert

    Plugin Author Archetyped

    (@archetyped)

    Sounds good. Closing this ticket for now, but please leave an update if you get more details, and I would be glad to reopen this ticket and take another look.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.