• 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://……./jaarboeken/

    Any idea?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    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

    (@hsteigstra)

    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

    (@sajib1223)

    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

    (@hsteigstra)

    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.