Undefined index: theme_location

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #48396

    bigtopmultimedia
    Expired Member
    Post count: 3

    The header of my site displays:

    Notice: Undefined index: theme_location in /var/www/.../wp-content/plugins/geodirectory/geodirectory-functions/taxonomy_functions.php on line 312

    The function

    geodir_pagemenu_items()

    should be checking that

    $args['theme_location']

    is set.

    #48423

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    This is a PHP notice which were not shown by default untill a recent PHP version change, it’s mostly for debugging, you can add this snippet of code to your theme functions.php to hide notices again.

    
    
    // Report all errors except E_NOTICE
    error_reporting(E_ALL & ~E_NOTICE);

    Thanks,

    Stiofan

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount