Title: Illegal string offset &#8216;id&#8217;
Last modified: February 10, 2020

---

# Illegal string offset ‘id’

 *  [hsteigstra](https://wordpress.org/support/users/hsteigstra/)
 * (@hsteigstra)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/)
 * I get an error in the error-log when requesting a page containing a Post list.
   The page contains this shortcode:
    [postlist id=755] The page is built correctly,
   but yet produces this error message:
 * [Mon Feb 10 09:16:29.692153 2020] [php7:warn] [pid 28635] [client ……] PHP Warning:
   Illegal string offset ‘id’ in /……/wp-content/plugins/w4-post-list/public/shortcodes/
   list.php on line 53, referer: [https://…&#8230](https://…&#8230);./jaarboeken/
 * Any idea?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fillegal-string-offset-id-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Shazzad Hossain Khan](https://wordpress.org/support/users/sajib1223/)
 * (@sajib1223)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/#post-12417557)
 * Please check if the shortcode have any html codes around the id. If using classic
   editor, use `Code Editor` mode (rather than `Visual Editor`) to check the shortcode
   you’ve placed.
 * Besides, i can see the shortcode is working on your site. Only issue i see is
   that the tag `<article>` needs a closing `</article>`.
 *  Thread Starter [hsteigstra](https://wordpress.org/support/users/hsteigstra/)
 * (@hsteigstra)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/#post-12418002)
 * Hi Shazzad,
    I always insert shortcodes in code mode, there is nothing surrounding
   the ID. I also placed quotes around the value, no luck. But it is working however….
   I also don’t see a button in tinymce to insert the code, I always do it manually!
 *  Plugin Author [Shazzad Hossain Khan](https://wordpress.org/support/users/sajib1223/)
 * (@sajib1223)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/#post-12420504)
 * Are you using this plugin version – 2.1.7 ?
    What is your server’s PHP version?
 * I couldn’t reproduce the warning yet.
 * Tinymce has retired.
 *  Thread Starter [hsteigstra](https://wordpress.org/support/users/hsteigstra/)
 * (@hsteigstra)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/#post-12421361)
 * Yes I am using 2.1.7 and PHP 7.3
 * This is the fragment from the source:
 * 
    <h4>Inmiddels verschenen jaarboeken</h4> [postlist id=755] [/two_third] [one_third_last][
   wp_blog_designer id=”1″] [/one_third_last]

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

The topic ‘Illegal string offset ‘id’’ is closed to new replies.

 * ![](https://ps.w.org/w4-post-list/assets/icon-128x128.png?rev=3034626)
 * [W4 Post List](https://wordpress.org/plugins/w4-post-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w4-post-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w4-post-list/)
 * [Active Topics](https://wordpress.org/support/plugin/w4-post-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w4-post-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w4-post-list/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [hsteigstra](https://wordpress.org/support/users/hsteigstra/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-id-3/#post-12421361)
 * Status: not resolved