Support » Plugin: Post Timeline » Home page shows message – Warning: in_array() expects parameter 2 to be array

  • Resolved smshareef

    (@smshareef)


    Hi agileLogix,

    Thanks for the plugin, I am facing a issue with this plugin. A Warning is displayed on the homepage of my site, can you please suggest me a fix.

    Complete warning:
    Warning: in_array() expects parameter 2 to be array, string given in /home/shareef49/public_html/smstod.com/wp-content/plugins/post-timeline/public/class-post-timeline-public.php on line 254

    Thanks and Regards,
    S M Shareef.

    • This topic was modified 3 years, 6 months ago by smshareef.
    • This topic was modified 3 years, 6 months ago by smshareef.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi agileLogix,

    I solved the issue, upon inspection of the code, I found that there is a “$” missing before the array name at line 254 in class-post-timeline-public.php

    if( isset( $tax_query['taxonomy'] ) && $tax_query['taxonomy'] !== '' && !in_array( $tax_query['taxonomy'], pattern_taxonomies ) )

    is now changed to

    if( isset( $tax_query['taxonomy'] ) && $tax_query['taxonomy'] !== '' && !in_array( $tax_query['taxonomy'], $pattern_taxonomies ) )

    • This reply was modified 3 years, 6 months ago by smshareef.
    Plugin Author agileLogix

    (@agilelogix)

    Thank you @smshareef, updated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Home page shows message – Warning: in_array() expects parameter 2 to be array’ is closed to new replies.