XF 1.2 Code ?_debug=1 in the url

Ranma1981

Member
Hello,

from Google Webmaster Tool I noted many errors with a strange code that I see at the end of my urls. For example, a normal thread of my forum, like this:

Code:
http://forum.tech-magazine.it/threads/configurare-una-sitemap-per-joomla-1-5-con-xmap.56949/
Is reported from GWT as an error, with this url:

Code:
http://forum.tech-magazine.it/threads/configurare-una-sitemap-per-joomla-1-5-con-xmap.56949/?_debug=1
I am talking of about 100 - 150 errors; I have also other url, where the code is repeated, like this:

Code:
http://forum.tech-magazine.it/threads/hai-solo-mezzora-di-tempo-prima-di-un-viaggio-come-la-usi.60363/?_debug=1&_debug=1
Now:

1) Do you know the cause of this problem? Addons, bug, other?

2) Can you suggest a rewrite url (for Nginx) to redirect all this strange url to original url?

Thank you
 

Ranma1981

Member
Hello Brogan,

I checked in config.php file but I haven't debug mode enabled; I am using the addons "Enable Debug Mode"

Code:
http://xenforo.com/community/resources/enable-debug-mode-from-admincp.1356/
So, is that the cause of problem?

Regard the rewrite rule to fix the error of GTW, can you help me set it?

Thanks again
 

Chris D

XenForo developer
Staff member
Regardless of whether debug mode is enabled via an add-on or via the config file, you should not be running your live board with debug mode enabled.
 

Brogan

XenForo moderator
Staff member
That's generally OK but there's no reason to be running in debug mode on a production site.
 
Top