Forums  ›  Cheetah  ›  Bug Reports
 

404 Error on Profile Member's Ads Link

My mistake; sorry for posting.  I should have guessed a rewrite rule was missing.

rewrite "^/ads/member_ads/([0-9]+)/{0,1}$" /modules/cheetah/ads/classifieds.php?UsersOtherListing=1&IDProfile=$1;

I was going to post the Nginx rewrite rules at some time.

OK, this is probably a rewrite issue.  I am running Nginx on the server.  This is what I have for the ads rewrites:

# ads rewrite

rewrite "^/ads(/|)$" /modules/cheetah/ads/classifieds.php?Browse=1 last;

rewrite "^/ads/my_page[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page last;

rewrite "^/ads/my_page/add[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=add last;

rewrite "^/ads/my_page/edit/([0-9]+)[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1 last;

rewrite "^/ads/my_page/edit/([0-9]+)/dimg/([0-9]+)[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1&dimg=$2 last;

rewrite "^/ads/my_page/manage[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=manage last;

rewrite "^/ads/my_page/pending[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=pending last;

rewrite "^/ads/my_page/expired[/]*$"  /modules/cheetah/ads/classifieds.php?action=my_page&mode=expired last;

rewrite "^/ads/my_page/disapproved[/]*$" /modules/cheetah/ads/classifieds.php?action=my_page&mode=disapproved last;

rewrite "^/ads/cat/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds.php?catUri=$1 last;

rewrite "^/ads/all/cat/([0-9]+)/([0-9]+)/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds.php?catUri=$3&page=$2&per_page=$1 last;

rewrite "^/ads/subcat/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds.php?scatUri=$1 last;

rewrite "^/ads/all/subcat/([0-9]+)/([0-9]+)/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds.php?scatUri=$3&page=$2&per_page=$1 last;

rewrite "^/ads/entry/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds.php?entryUri=$1 last;

rewrite "^/ads/tag/([^/.]+)[/]*$" /modules/cheetah/ads/classifieds_tags.php?tag=$1 last;

rewrite "^/ads/calendar[/]*$" /modules/cheetah/ads/classifieds.php?action=show_calendar last;

rewrite "^/ads/categories[/]*$" /modules/cheetah/ads/classifieds.php?action=show_categories last;

rewrite "^/ads/tags[/]*$" /modules/cheetah/ads/classifieds.php?action=tags last;

rewrite "^/ads/all_ads[/]*$" /modules/cheetah/ads/classifieds.php?action=show_all_ads last;

rewrite "^/ads/top_ads[/]*$" /modules/cheetah/ads/classifieds.php?action=show_top_rated last;

rewrite "^/ads/popular_ads[/]*$" /modules/cheetah/ads/classifieds.php?action=show_popular last;

rewrite "^/ads/featured_ads[/]*$" /modules/cheetah/ads/classifieds.php?action=show_featured last;

I just installed the Ads module on a second Cheetah site I am developing and I get the same 404 error message.  If it isn't Cheetah, then that would indicate something about the server.  I will need to install Cheetah on a different server and then check the Ads module.  Don't have time for that today.

This is the URL listed in the menu builder:

modules/cheetah/ads/classifieds.php?UsersOtherListing=1&IDProfile={profileID}

Tested this on my dev9 site. Was not able to reproduce the problem.

https://dev9.cheetahwsb.com/ads/member_ads/1
https://dev9.cheetahwsb.com/ads/member_ads/2

 

Ok. Thanks. I will look into it.

We have installed the Ads module but have not added any adverts.  When you go to a member's profile page and go to Ads in the member's profile menu to see the member's adverts you get a 404 error.  The link is show as https://my-website.tld/ads/member_ads/21  where the 21 is the member's ID number which changes depending on which member's profile page you visit.  When you go to your own profile page the link is https://my-website.tld/ads/my_page/ which when clicked takes the member to their ads page where they are told they don't have any adverts click to add (paraphrased).

Forums  ›  Cheetah  ›  Bug Reports