Support » Theme: Kadence » PHP Warnings

  • dimal

    (@dimalifragis)


    [28-Apr-2022 08:29:02 UTC] PHP Warning: First parameter must either be an object or the name of an existing class in /home/wp-content/themes/kadence/inc/template-functions/archive-functions.php on line 53

    [28-Apr-2022 08:29:02 UTC] PHP Warning: First parameter must either be an object or the name of an existing class in /home/soavocom/themes/kadence/template-parts/content/archive_hero.php on line 13

    Wordpress 5.9.3 and PHP 7.4.x

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    Thanks for posting, Can you tell me which pages you are seeing this on?

    Ben

    Thread Starter dimal

    (@dimalifragis)

    Well, i could of cource if i knew. I just found a few of those in the debug.log.

    I GUESS it is from my admin part and not from a visitors part.

    sorry for not providing enough …

    Thanks

    Theme Author Ben Ritner – Kadence WP

    (@britner)

    Hmm, that code wouldn’t run on the admin. I wonder if it’s from a bot hitting a random URL or direct file (which most servers would prevent). Just haven’t yet figured out a way to recreate that.

    Are you using any custom post types? Any odd plugins? Anything that would create an “archive” but it would be a fake archive and not a real archive to WordPress.

    The error is saying that get_queried_object retuned with null which means the global $wp_query isn’t set. This shouldn’t really be possible because of where these template files load.

    Ben

    Thread Starter dimal

    (@dimalifragis)

    No custom post types or exotic plugins. What is different is Polylang ….

    I will keep an eye open and update if i find something.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.