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 1 year, 8 months ago.

  • Author
    Posts
  • #445026

    Brandon Quig
    Full 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: 27809
    This reply has been marked as private.
    #445188

    Paolo
    Site Admin
    Post count: 31204

    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
    Full 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: 1970

    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)

The topic ‘Call to undefined function geodir_is_page() by Geo 1280 Theme’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.