• Use of undefined constant siteurl – assumed ‘siteurl’ (this will throw an Error in a future version of PHP)

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter visnevskis

    (@visnevskis)

    Also:
    count(): Parameter must be an array or an object that implements Countable in …/collapsing-categories/collapscatlist.php on line 508

    not sure if it works at all, but this stops giving warning ?? :
    if( $posts == null)$totalPostCount=0;
    else $totalPostCount=1;
    if( is_array($posts) )$totalPostCount=count($posts);

    • This reply was modified 6 years, 2 months ago by visnevskis.
    Thread Starter visnevskis

    (@visnevskis)

    Also:
    “Notice: The called constructor method for WP_Widget in collapsCatWidget is deprecated since version 4.3.0! Use
    __construct()
    instead.”

    Thread Starter visnevskis

    (@visnevskis)

    Also:

    Notice: wp_specialchars is deprecated since version 2.8.0! Use esc_html() instead.

    • This reply was modified 6 years, 2 months ago by visnevskis.
    • This reply was modified 6 years, 2 months ago by visnevskis.
    Thread Starter visnevskis

    (@visnevskis)

    All the notices come from enabling WordPress debug, to see PHP errors.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘collapscatlist.php on line 183’ is closed to new replies.