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

Facebook Integration - Server Error (Create New Account)

Discussion in 'Troubleshooting and Problems' started by KYT, Jan 25, 2011.

  1. KYT

    KYT Member

    I feel like I am doing QA at work.

    1. Go to http://forums.manadeprived.com
    2. Choose to Login with Facebook
    3. Once you have agreed to let the app access your Facebook...
    4. You are brought back to the forum where you are then asked to create a new account for the forum itself.

    After submitting, the following message:

    "A server error occurred. Please try again later." is shown. However, the new user is actually created, although with no password being given, I cannot login with it.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Is there a detailed error in the logs?

    Admin CP -> Tools -> Server Error Log

    Or enable debug mode by adding this line to the library/config.php file:

    $config['debug'] = 1;
    That will expose a more detailed error.
  3. dieketzer

    dieketzer Well-Known Member

  4. KYT

    KYT Member

    rename(D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs\internal_data\temp\xf2EDA.tmp,D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs/data/avatars/l/0/9.jpg) [<a href='function.rename'>function.rename</a>]: Permission denied
    rename(D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs\internal_data\temp\xf2E92.tmp,D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs/data/avatars/l/0/8.jpg) [<a href='function.rename'>function.rename</a>]: Permission denied
    rename(D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs\internal_data\temp\xf2E8F.tmp,D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs/data/avatars/l/0/7.jpg) [<a href='function.rename'>function.rename</a>]: Permission denied

    All having to do with library\XenForo\Model\Avatar.php:333.
  5. KYT

    KYT Member

    I am not sure what it is trying to do. I tried to look up D:\inetpub\vhost\manadeprived.com\subdomains\forums\httpdocs/data/avatars/l/0/9.jpg

    Does not exist. Is it basically trying to rename xf2EDA.tmp to 9.jpg?
  6. dieketzer

    dieketzer Well-Known Member

    what are the permissions on that directory?
  7. Mike

    Mike XenForo Developer Staff Member

    Ensure that the data directory and all sub-directories and files within can be written by the web server. Usually this means chmod 0777 or ensuring they're world-writable, though you're on Windows so the process can be a bit different. You probably need to ensure that the web server user has write permissions here ("full control" as well?).
  8. KYT

    KYT Member

    I have set data and internal_data folders to 777. I have also made it so everything under it is set to 777.

    However, I have not given them "full control".
  9. Mike

    Mike XenForo Developer Staff Member

    Can you upload an avatar with your admin account? If not, then did you do a server move (or copy the files around)?
  10. KYT

    KYT Member

    Mike, I just gave "data" and "internal_data" folders "full control" and it appears to work.

    Is this dangerous?
  11. dieketzer

    dieketzer Well-Known Member

    what is the equiv of 'full control' on linux then? set owner to www-data?
  12. Mike

    Mike XenForo Developer Staff Member

    I'm not totally familiar with Windows permissions. Looks like it mostly comes down to taking ownership: http://forums.techarena.in/windows-server-help/1085336.htm

    The "modify" permission might work as well, if you haven't given that permission.
  13. KYT

    KYT Member

    Modify is included in Full Control. Full Control basically enables, read, write, execute and modify.

Share This Page