Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By patoshi on
Hi,
I'm having a problem whenever I submit anything either updating or making an edit to an entry it goes to a blank white screen. What could the cause of this be?
Thanks,
pat
Comments
Blank screen common cause - PHP memory limit
Hi Pat,
The first thing I would check is the memory limit for PHP. Your host usually sets this and you may need to ask them to increase the memory limit for your domain/account. Sometimes you can change it by adding a setting in your .htaccess file. You can check what the limit is yourself by creating and uploading a file named something like "phpinfo.php with the following code in there:
Then point your browser to that file like: http://yourdomain.com/phpinfo.php
Then look for a line that says:
If the number is very low then that is likely the problem.
Check your Drupal .htaccess file in your root folder for the following lines:
And change it to something like this: (the memory_limit is the important one and the others are in cause you are uploading large files. Feel free to change the number higher if needed)
I hope that helps,
Chris
ALIAN DESIGN
Thanks Alian... I adjusted
Thanks Alian... I adjusted those 2 things and it still doesnt work. I changed mem limit to 32M and adjusted the htaccess file, but I still get a blank white screen after I submit any kind of form... what else can i do to diagnose this problem so i can show u all?
Another source of error is editing core files and/or theme files
All (most) core files and theme files are saved in UTF-8 format (2 bytes per character). If you edit on of these files with an editor that does not handle UTF-8 and especally if the file starts with
<?php
the odds are it now has "unexpected" characters that cause problems.Blank Spaces
Good point duckxtales,
For me the problem was a blank space in my template.php file after the last ?>
Alex
----------
Contract Web Development
THANKS ALOT!!!!!... this
THANKS ALOT!!!!!... this worked... it was the stupid Blank lines after the ?>
This would drive people nuts cuz of blank lines.... its hard to debug such a thing like this.... i hope this helps someone.. more keywords people might search for:
blank white screen submit submission
Phew!
I had exactly the same blank screen problem which was essentially down to the blank lines at the end of my template.php file. So thanks for posting this thread, I was getting worried for a minute
This will also happen if you
This will also happen if you have a blank line above your beginning <?php line.
Same here
Thanks for posting this. Seems like some extra spaces in the template file shouldn't break form submissions on your whole site, but it sure does.
After trying all that stuff
After trying all that stuff it was a damn ` before the php tag on a module...
Blank screen here too
This is ridiculous to search for a blank space....
Is there a working version somewhere?
All the problems are in encoding
I found out that if there are files in different encodings on the site, then it gives blank screen. In my case it was utf8 files with ANSI in module VIEWS (because I edited them, without looking at the encoding).
So check that ALL FILES are in the same encoding (For example using notepad++). Hope this will help.
Sorry for my English, I hadn't practice for a long time.
Node with PHP code was the culprit.
None of the above helped me. Instead, I had to delete the content of a search index table. My actual problem source was a node with the PHP input format that contained a
die()
call, and I assume a PHP sytax error would cause the same problem.