Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Uploading avatar shows white screen (forum/profile/picture?)
lepelchannel
New
Hey everyone,
I decided to try and set up a Vanilla forum for my website today but I'm running into a problem. I've managed to set up pretty much everything, but when I try to upload an avatar I just get a white screen.
Steps:
- Go to profile, go to "Change my picture"
- Select an image (smaller than 2MB), click "Upload"
- White screen appears, url is "https://www.mywebsite.com/forum/profile/picture?"
I enabled debug mode, no errors show up. Seems like a PHP syntax error. All permissions are set correctly and recursively on the uploads, conf and cache folders. I'm running PHP 5.6.24.
Any ideas?
0
Comments
What is the response code in your browser? White screens tend to be a 500 error which would be logged on your server error log.
I would start there.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Post you htaccess file, give real link to your site, inform us what theme and plugins you have enabled. You should be able to see the exact error from the server error console where you host your files.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ah thanks for the tips, the error log displays this:
[27-Jan-2017 13:52:37 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 14000 bytes) in /home/lepel/public_html/forum/library/core/class.uploadimage.php on line 242
Which is a bit weird, it has an allowed memory size of 33554432 bytes and failed while trying to allocate 14000 bytes.
Link to my forum: https://www.lepel.tv/forum/
Theme: Embed-friendly (but modified to display my own header and footer)
Plugins: Advanced Editor, All Viewed, Emoji Sets, Gravatar, Profile Extender, Quotes, Split/Merge, Stop Forum Spam
.htacces (added a redirect to "https://www", not in code block because it bugged out):
OK make me a test account called test-user and send me the login info and I will take a look when I get a chance
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
That line just means it went over the limit when it tried to allocate 14000 bytes. 33554432 bytes is 32 megabytes which is a little low. Try increasing that.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks hgtonight, I increased it from 32M to 128M just to be sure, and that fixed it! I have a pretty decent server so the higher limit shouldn't cause problems.
Vrijvlinder ook bedankt voor de geboden hulp, gelukkig is het opgelost!
Hi all! I've been trying to troubleshoot files failing to upload, but I don't know how to increase my memory limit.
Is there some place in specific I would be able to find that?
Thanks in advance
How you can do that in the end depends a little bit on the way you are hosting your forum. Normally you do that by changing you php.ini
https://www.ecosia.org/search?q=php+increase+memory+size