Title: [Plugin: Wordbooker] parameter 1 Warning
Last modified: August 20, 2016

---

# [Plugin: Wordbooker] parameter 1 Warning

 *  [andytford](https://wordpress.org/support/users/andytford/)
 * (@andytford)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordbooker-parameter-1-warning/)
 * I am seeing the following error on the public facing side of my site:
 * Warning: substr() expects parameter 1 to be string, array given in /wp-content/
   plugins/wordbooker/wordbooker.php on line 1496
 * Curious as to what’s causing that and the workaround involved.
 * Running WP 3.4.1 and WB Version 2.1.14
 * Thanks in advance
 * [http://wordpress.org/extend/plugins/wordbooker/](http://wordpress.org/extend/plugins/wordbooker/)

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

 *  Plugin Author [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordbooker-parameter-1-warning/#post-2932394)
 * It’s a warning not an error and you really shouldn’t have warnings being dumped
   to the browser on a live site. I’ll look at the code when I get home this evening…
   i
 *  Plugin Author [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordbooker-parameter-1-warning/#post-2932457)
 * OK the problem is this line:
 * if (stristr(substr($imgsrc, 0, 8), ‘://’) ===false) {
 * for some reason the code is getting $imgsrc as an array and not a string. The
   error isn’t occuring here which suggests its something unique to your site.
 * How comfortable do you feel about editing code? If you are OK with that then 
   could you find that line and add BEFORE it:
 * var_dump($imgsrc);
 * so it looks like :
 *     ```
       if ($imgsrc) {
           var_dump($imgsrc);
           if (stristr(substr($imgsrc, 0, 8), '://') ===false) {
       ```
   
 * And got to the front end and see what it throws out before the error message –
   and post it in here.

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

The topic ‘[Plugin: Wordbooker] parameter 1 Warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordbooker.svg)
 * [Wordbooker](https://wordpress.org/plugins/wordbooker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordbooker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordbooker/)
 * [Active Topics](https://wordpress.org/support/plugin/wordbooker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordbooker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordbooker/reviews/)

## Tags

 * [parameter 1](https://wordpress.org/support/topic-tag/parameter-1/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [Steve](https://wordpress.org/support/users/steveatty/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordbooker-parameter-1-warning/#post-2932457)
 * Status: not resolved