Call to undefined function geodir_is_page() by Geo 1280 Theme

This topic contains 4 replies, has 4 voices, and was last updated by  Patrik 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #445026

    Brandon Quig
    Expired Member
    Post count: 7

    When following a user activation link (wp-activate.php) the following error is generated.

    PHP Fatal error: Uncaught Error: Call to undefined function geodir_is_page() in /wp-content/themes/geodir_geo-1280/functions.php:183

    Checking if the function exists first allows the user activation process to continue.
    To fix, I edited geodir_geo-1280/functions.php as follows:

    
    
    add_filter('body_class', 'geo1280_body_class');
    function geo1280_body_class( $classes ) {
    	if(function_exists('geodir_is_page')){
              if (geodir_is_page('location') ) {
         		$classes[] = 'geo1280-location';
         	  }
    	}
    	return $classes;
    }
    #445079

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #445188

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #445215

    Brandon Quig
    Expired Member
    Post count: 7

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #445381

    Patrik
    Moderator
    Post count: 1971

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 5 posts - 1 through 5 (of 5 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