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

XF 1.2 Cant logon at main forum page....

Discussion in 'Troubleshooting and Problems' started by Chris_H, Oct 7, 2014.

  1. Chris_H

    Chris_H Member

    Each time I try to logon it takes me right back to my login page...if I browse to a specific thread I can logon but when I go back to the forums tab it logs me out again. Server error logs in admin shown below...Any ideas??

    Server Error Log

    Error Info
    XenForo_Exception: Invalid model 'XenForo_Model_Sitemap' specified - library/XenForo/Model.php:192
    Generated By: Unknown Account, 9 minutes ago
    Stack Trace
    #0 /home/zspotcom/public_html/sitemap.php(16): XenForo_Model::create('XenForo_Model_S...')
    #1 {main}
    Request State
    array(3) {
    ["url"] => string(34) "http://www.z35spot.com/sitemap.php"
    ["_GET"] => array(0) {
    }
    ["_POST"] => array(0) {
    }
    }
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Have you recently upgraded?
    It looks like some of the files may not have uploaded correctly.

    You could try uploading the upgrade .zip contents again.
     
  3. Chris_H

    Chris_H Member

    I tired to upgrade to 1.4 the other night, ended up having to restore from back up....everything was wiped back to scratch after the upgrade.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It would appear you may have a discrepancy between the server files and database.

    Ensure you have the correct files on the server for the version of XenForo you are running.
     
  5. Chris_H

    Chris_H Member

    if I attempt the 1.4 upgrade again...during the file upload process, I put all of the files from the upload folder into the install folder on my server correct?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    The contents of the upload folder go where your current installation is, overwriting the existing files and folders.
     
  7. Chris_H

    Chris_H Member

    I reuploaded the 1.4.1 upgrade files, re ran the upgrade and it completed successfully. I am still unable to logon, the server errors are gone. Any ideas? I went through and rebuilt all the caches. I can still logon if I goto a thread and logon but once I go back to the home page or the forum tab it logs me out.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    I note that your site is available at two URLs:

    http://www.z35spot.com/
    http://z35spot.com/

    I suspect you are moving between each one, which is why you are being logged out.

    You will need to force to one or the other using .htaccess and then update the Board URL to reflect that.
     
  9. Chris_H

    Chris_H Member

    not sure how that happened or what to look for in .htaccess to correct the problem. Board url is updated in Admin options correct?
     
  10. Chris_H

    Chris_H Member

    I installed my forum in public_html, see below for my .htaccess, can you tell me what i have done wrong. Cant seem to get the www.z35spot.com to login but the z35spot.com will

    # 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
    #</IfModule>

    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 /xenforo

    # 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|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

    # Redirect non-www urls to www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.z35spot\.com
    RewriteRule (.*) http://www.z35spot.com/$1 [R=301,L]
    </IfModule>
     
  11. Chris_H

    Chris_H Member

    I found the problem, cloudflare had been incorrectly configured and was directing to http://z35spot.com, turned off cloudflare and all my problems went away.

    Thanks for all your help!!
     
    Last edited: Oct 8, 2014
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Good to know, thanks.

    Yet more problems related to cloudflare...
     

Share This Page