404 on listing of tags

This topic contains 2 replies, has 2 voices, and was last updated by  PSI 9 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #6980

    PSI
    Free User
    Post count: 68

    Hi,

    We have faced today that there will be a 404 failure when you click a tag on the tag cloud. First everything looks fine but if you have more than 10 listings there will be a selector with page 2,3 etc… – If you click on next page or 2,3,etc there will be a 404 failure.

    Cheers
    PSI

    #6982

    Vikas
    Full Member
    Post count: 1128

    Hi,

    Thanks for spotting.

    Plz go to geodirectory > geodirectory-functions > custom_taxonomy_hooks_actions.php and replace the code at line no. 166/167

    
    
    
    if(strpos($taxonomy,'tags'))
    				$newrules[$listing_slug.'/(.+?)/?$'] = 'index.php?'.$taxonomy.'=$matches[1]';

    with this

    
    
    
    if(strpos($taxonomy,'tags'))
    			{
    				$newrules[$listing_slug.'/(.+?)/page/?([0-9]{1,})/?$'] = 'index.php?'.$taxonomy.'=$matches[1]&paged=$matches[2]';
    				$newrules[$listing_slug.'/(.+?)/?$'] = 'index.php?'.$taxonomy.'=$matches[1]';
    				
    			}
    
    

    Plz do one more exercise after this.
    Go to Wp-admin > geodirectory > premalinks > just click on Save changes button

    Let me know if it helps.

    Thanks

    #6983

    PSI
    Free User
    Post count: 68

    Worked! Fantastic! Thanks Vikas

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

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

Open Support Ticket