I'm trying to add a new piece of content to my Drupal site. I've created a new CCK content type, with a field for attaching a swf file. When I add a new piece of content (Create Content), I get a blank white page when I hit Save. I have successfully created nodes using this content type before. For some reason, this one is not working. What are some possible reasons that I'm getting a blank white page when I hit the Save button? Thanks guys.

Comments

cayenne’s picture

White screens are caused by PHP errors, typically. We call them the "White Screen of Death"

While the Content module is pretty solid, I wonder whether you are using a less-popular add-in that might not like what you are doing.

:)

i25’s picture

I'm using standard and popular modules (cck, views, taxonomy)... nothing crazy.

dbeall’s picture

http://drupal.org/Troubleshooting-FAQ

and maybe put this file on your server, then access the info at www.example.com/phpinfo.php
put this in a file and name it phpinfo.php

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

some things to look at:
upload_max_filesize 32M
max_input_time 120
memory_limit 96M

i25’s picture

Here are the results of info.php

upload_max_filesize 1000M 1000M
max_input_time 60 60
memory_limit 2000M 2000M

The video file I'm uploading is 41MB. I have other larger videos uploaded in other nodes that work fine.

dbeall’s picture

one note, remove the phpinfo file from the server so no one can access that information.
your limits seem to be set plenty high enough, maybe a little over what hey need to be.. I don't know if that has any side effect on php.
but the max_input_time maybe could be a little higher, the number represents seconds.
120 to 180 is what I have been using because of some operations that can take extra time.. I ran into it while testing the boost module.

If other videos are working, maybe it's something to do with that particular file..?

Have you looked at the server error_log to see if anything is showing up. It will show up in your site root directory or sometimes you have to get to in the host control panel, and some hosts have a directory just for the error logs.
and, have a look at the db_log for any clues administer > reports > recent log entries
The database logging module has to be enabled to see the log.

i25’s picture

How and where do I increase the max_input_time?

i25’s picture

Update to my last post:

I change the max_input_time in php.ini and php5.ini to 180. The same thing is happening. I also checked the video file and didn't find anything wrong with it.

What next?

dbeall’s picture

enable the database logging module and try the upload again, then check the server log and the Drupal db log

i25’s picture

The Database Logging module is already enabled. When I look in Reports >>> Recent log entries, I see where the video was added, but I don't see anything about any errors etc. Where would I find the Drupal db log?

dbeall’s picture

The recent log entries is the db_log or the Drupal database log.
Is the server log showing anything?

i25’s picture

I see where the video was added, but I don't see any errors.

i25’s picture

Any other thoughts or suggestions?

i25’s picture

The only thing I see are several "page not found" errors that occurred at the same time as the video upload.

jaypan’s picture

what are they?

Contact me to contract me for D7 -> D10/11 migrations.

i25’s picture

Here is what appears in the log immediately after the video upload (same time-stamp as the upload):

page not found 11/15/2009 - 21:22 themes/custom1/images/block-bot.gif
page not found 11/15/2009 - 21:22 themes/custom1/images/bg-block.gif
page not found 11/15/2009 - 21:22 themes/custom1/images/bg-top2.gif
page not found 11/15/2009 - 21:22 sites/default/files/A-----------_20090505104447_1046 ...
page not found 11/15/2009 - 21:22 themes/custom1/images/bg-tab2.gif
page not found 11/15/2009 - 21:22 sites/default/files/A-----------_20090505104447_1046 ...

jaypan’s picture

Two of those got cut off - can you get the full path from the logs?

Contact me to contract me for D7 -> D10/11 migrations.

i25’s picture

Here are the two cut off lines:

sites/default/files/A-----------_20090505104447_1046000.flv
sites/default/files/A-----------_20090505104447_1046000.jpg

i25’s picture

Any further thoughts/suggestions? I posted the full lines from the log.