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?
CGUserDirectory Template redirects to frontend page Topic is solved
Re: CGUserDirectory Template redirects to frontend page
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
Re: CGUserDirectory Template redirects to frontend page
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.

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.