CGUserDirectory Template redirects to frontend page Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

CGUserDirectory Template redirects to frontend page

Post by webform »

I have an old very active website that uses CGUserDirectory that has suddenly started behaving strangely.

If you click on a link on the website where CGUserDirectory is set to a specific detail template, the user is redirected to a different page in the frontend than specified in the parameters.

If you try to edit the CGUserDirectory detail template in the admin, you are also sent to the same page in the frontend. So you can't edit the template at all.

I also can't edit the template via MySQL because the cms_module_templates table doesn't have a unique column and editing is therefore not possible.

Does anyone have an idea what went wrong and how I can solve the problem without having to recode all templates from scratch?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1785
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: CGUserDirectory Template redirects to frontend page

Post by DIGI3 »

Obviously my first bit of advice is that you need to upgrade ASAP. But for a short term fix, you probably want to figure out what has changed:
  • Start by looking at the PHP error log, and your Admin log, for clues.
  • Did the host perhaps change the PHP version? (this happens more than you'd think).
  • Did security software, such as mod_security, get enabled or an updated ruleset (you may have to ask your host, but typically this would result in getting redirected to a 403 (forbidden) page. Still a common cause of problems though.
  • Has the .htaccess file been changed? What happens if you temporarily rename it?
  • Did an editor delete, disable, or change the alias of the page specified in the action?
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: CGUserDirectory Template redirects to frontend page

Post by webform »

I think i've found what causing the error! :-[

It was a redirect set up in the htaccess file to "catch" old CGUserDirectory URL's using an old deleted template. It was flooding the admin log hence the redirect.

Disabling the redirect also "solved" the access to some CGUserDirectory templates.
Post Reply

Return to “Modules/Add-Ons”