How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums Poka Review Plugin support Cat_Name Category problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17609
    Giovanni Porto

    Hello I’ve got this issue only on header of my homepage. How can I fix this issue?

    Warning: Undefined array key 0 in /home/mhd-01/ on line 94

    Warning: Attempt to read property “cat_name” on null in /home/mhd-01/ on line 94
    class=”home page-template-default page page-id-332 logged-in admin-bar no-customize-support wp-custom-logo body-header-style1 body-show-breadcrumbs body-fullscreen-sections body-fullscreen-first-section-colored”>

    In sc-varous.php on line 94 I have the standard code:

    else {
    $category = get_the_category();
    $category_name = $category[0]->cat_name;

    Thank for the support!


    Hello Gianluca,

    I guess you added a shortcode or something into your content, and after that these warnings appeared, right?

    Can you tell us if you added something and exactly what you added?

    Also, which PHP version do you use? For now we suggest PHP 7.4.

    Giovanni Porto

    Hello, No because isn’t first time that I add the shortcodes in homepage.

    I have PHP Version: 8.0.14

    Thanks and best regards



    Hello Gianluca,

    PHP Version: 8.0.14 can be possible for errors and warnings like these, so for now we suggest reverting to PHP 7.4.

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