1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Code ?_debug=1 in the url

Discussion in 'Troubleshooting and Problems' started by Ranma1981, Jul 14, 2014.

  1. Ranma1981

    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
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Ranma1981

    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
     
  4. Chris D

    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.
     
  5. 0ptima

    0ptima Well-Known Member

    What about restricting it to your own IP?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

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

Share This Page