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

XF 1.3 few issues with forums, some kind of corruption..

Discussion in 'Troubleshooting and Problems' started by XxUnkn0wnxX, Aug 5, 2014.

  1. XxUnkn0wnxX

    XxUnkn0wnxX Active Member

    ok i have been running into some weird issues lately.

    no when i make a new node in a old forum like node number id 1 or id 6

    atm we are like at id 774 or something

    so when i make a node in one of these old sections the node duplicates itself also
    there is this:


    see how it duplicates forums


    all other nodes the newer ones have just http://portalcentric.net/forums and then the category name/forum node

    and these where when i make new sub nodes they duplicate in.

    now i had this weird bug in an olde version of xenforo and back then still sorting out my htaccess rules and friendly names

    but for some reason these old nodes have stuck with this bug..

    re creating the section from scratch obviously fixes this issue but wish there was some easier quick way to fix it.

    i have also had issues where users get errors editing some of there threads in such nodes a permission errors so i assume these nodes a corrupt in some way..

    and now i am getting issues with some new nodes that are created for most users the thread appear fine but for some users as you can see in this image the bbcodes do not phrase at all for them in these new sections:


    but it appears normal to other users...

    so i am unsure what is going on. maybe my db needs so fixing... or something...

    because this user has a lot of threads and i re creating the account and migrating all these threads will be a pain.

    there has to be a way to fix all this...

    all these random issues
  2. XxUnkn0wnxX

    XxUnkn0wnxX Active Member

    and now for some reason i do not see bb codes phrasing in this new section for me:

    on my account but it doesn't effect non super admins

    shows fine for them


    using PHP 5.4.30
    Percona Server 5.6 (Db Software)

    for some reason all my forums have forums/forums issue
    Last edited: Aug 5, 2014
  3. Brogan

    Brogan XenForo Moderator Staff Member

    It shows as forums/forums because you have installed it in the /forums directory.

    As this link (and others) demonstrate: http://portalcentric.net/forums/members/

    Forums use the /forums route.

    I didn't really understand the other issues but if it appears fine for other users but not you, then the problems are localised to you.
  4. XxUnkn0wnxX

    XxUnkn0wnxX Active Member

    so why does it show the 2nd forums route?

    i just want it to be /forums not forums/forums

    it has to be some kind of htacces mod rewrite rule doing this or option within xenforo

    as for the issue the bbcodes are not phrasing for the super admins user group in certain forums/nodes not all of them jsut some of them. i have tested it on amny computers and my friend had tested them on his same issue..

    and when i create new node it duplicates itself create 2 of them instead of one.

    i had all the links once with just forums and when i created nodes it worked fine but now that all my nodes = forums/forums when i create a new node or sub node it creates 2 copies of its self.

    and i want it back to the original /Forums link not doubling it up...

    here is what i have in my htaccess file within the forums folder..

    #The top of your .htaccess file
    ServerSignature Off
    RewriteEngine On
    # Protect your .htaccess file
    <Files .htaccess>
            order allow,deny
            deny from all
    <Files admin.php>
    AuthType Basic
    AuthUserFile Path Hidden
    Require valid-user
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    ErrorDocument 400 default
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
    <IfModule mod_rewrite.c>
        RewriteEngine On
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        RewriteBase /forums
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml) - [NC,L]
        RewriteRule (robots\.txt)$ robots.php [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?portalcentric.net [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?duckduckgo.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?bing.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yahoo.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?xenforo.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?twitter.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?netdna-cdn.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?maxcdn.com [NC]
    RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?cloudflare.com [NC]
    RewriteRule \.(jpg|jpeg|png|gif|bmp|tiff|pic|mp3|doc|xls|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|zip|rar|exe)$ http://oi41.tinypic.com/2wq73lx.jpg [NC,R,L]
    # the last re-write rules #
    # stop script kiddies #
    RewriteCond %{THE_REQUEST} (\\r|\\n|%0A|%0D) [NC,OR]
    RewriteCond %{HTTP_REFERER} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    RewriteCond %{HTTP_COOKIE} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999} [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^$ [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} (winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} (libwww-perl|curl|wget|python|nikto|scan) [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    #Block mySQL injects
    RewriteCond %{QUERY_STRING} (;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark) [NC,OR]
    RewriteCond %{QUERY_STRING} \.\./\.\. [NC,OR]
    RewriteCond %{QUERY_STRING} (localhost|loopback|127\.0\.0\.1) [NC,OR]
    #RewriteCond %{QUERY_STRING} \.[a-z0-9] [NC,OR]
    RewriteCond %{QUERY_STRING} ^.*=(ht)|(f)+(tp)+(://|s://)+.*(\?\?)+ [NC,OR]
    RewriteCond %{QUERY_STRING} (<|>|’|%0A|%0D|%27|%3C|%3E|%00) [NC,OR]
    #RewriteRule .* http://gggooooooglleee.com/ [R,L]
    # Note: The final RewriteCond must NOT use the [OR] flag.
    # Block undesirables by user-agent
    RewriteCond %{HTTP_USER_AGENT} ^bot [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} grub [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} holmes [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} naver [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Nutch [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Pete-Spider [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} SBIder [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} Seekbot [NC,OR]
    # The last item in the list must not have an OR
    RewriteCond %{HTTP_USER_AGENT} wget [NC]
    # Feed them all a 403 Forbidden
    RewriteRule .* - [F]
    # the last re-write rules #
    ErrorDocument 401 "Authorization Required"
    AuthName "Username and password required"
    IndexIgnore *
    and where it say RewriteBase /forums

    i noticed when i hashed that out all the nodes/forums did not work it said link no longer exists as it looks for the forums/forums path but i dont want it to be that i jsut want it to be /forums

    and the RewriteBase /forums also fixes some other links like forums registration link and other little things..

    there has to be a way to make the path change to just forums...
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Because you have installed the software in the /forums directory.

    Move the installation to the root.
    XxUnkn0wnxX likes this.
  6. Martok

    Martok Well-Known Member

  7. XxUnkn0wnxX

    XxUnkn0wnxX Active Member


    + i have this set not sure if i need it or what it does...

    well the thing it i always had the forums installed in the forums folder but before i moved servers the path was always /forums never was /froums/forums before and it was still installed in the forums folder so there was something on the old server the hid the forums folder name and kept the path simple.

    but thats not a major issues the main issues is that when a new node is made now it duplicate's itself and some people like the super admins that are in the config file have issues seeing phrased bbcodes.. i seen this issue before and i had to re create all the nodes to fix it.. but doesn't explain why this happens in the 1st place..

Share This Page