Upload - white screen of death

A place for users and developers of the Xataface to discuss and receive support.

Upload - white screen of death

Postby jimr451 » Mon Jun 27, 2011 1:51 pm

Hi,

I'm trying to configure an upload field, storing the file on the filesystem. After adding a record, I get the "white screen of death" in php. The file uploads ok, and the record goes into the database. When I try to view the record, white screen again. (same with edit).

Here's my field definition:


[imagepath]
Type = "container"
widget:type = "file"
savepath = "/home/mysite/public_html/images/bars"
url = "/images"

Again, everything saves where it should be, but the application bombs trying to view the record.

FYI - if I remove the "Type=container" line, it shows me the record, but of course, the upload stuff no longer works.

The application works fine without the upload field turned on.

Any ideas? I tried display_errors, and all that. So I'm guessing maybe it's a memory issue, but I don't know why that might be it.

-Jim
Jim Roberts
Roberts WebForge, Inc.
http://www.robertswebforge.com
jimr451
 
Posts: 20
Joined: Mon Jun 27, 2011 1:46 pm

Re: Upload - white screen of death

Postby shannah » Mon Jun 27, 2011 1:57 pm

Check the error log for hints.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Upload - white screen of death

Postby jimr451 » Tue Jun 28, 2011 5:37 am

Well, I traced it to a memory problem:

Fatal error: Allowed memory size of 272629760 bytes exhausted (tried to allocate 8663477 bytes)

I guess I'm stumped as to why the smarty templates need 250+ MB of memory to load a page that has an "image link" in it - the image isn't even stored there.

Maybe something else is going on, I don't know, but the only difference is when I turn on the "Type = container" field.

Is there an alternate way to do file uploads? Maybe with a custom action? Otherwise I guess I need to look for another RAD tool. This one has so much promise, but I can't get past this issue.

-Jim
Jim Roberts
Roberts WebForge, Inc.
http://www.robertswebforge.com
jimr451
 
Posts: 20
Joined: Mon Jun 27, 2011 1:46 pm

Re: Upload - white screen of death

Postby shannah » Tue Jun 28, 2011 8:21 am

There's something else going on.
Please post your fields.ini file and your create table statement for that table.

Also for troubleshooting you should try removing all custom code (e.g. all your delegate classes) and just leave the fields.ini file - then try and see if you get the same problem.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Upload - white screen of death

Postby shannah » Tue Jun 28, 2011 9:05 am

Also. Do you have any large valuelists defined (>10,000 values)?
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Upload - white screen of death

Postby jimr451 » Tue Jun 28, 2011 12:21 pm

I'm going to rework some things here - I cleared out my code and fields.ini, and added back fields one by one - I can add all of them until I try the "imagepath" field, then it bombs again.

I'll pick this thread up again after I do some more work on my end.

Thanks for your advice.

-Jim
Jim Roberts
Roberts WebForge, Inc.
http://www.robertswebforge.com
jimr451
 
Posts: 20
Joined: Mon Jun 27, 2011 1:46 pm

Re: Upload - white screen of death

Postby shannah » Tue Jun 28, 2011 1:22 pm

If you can post the table schema I may be able to spot if there is anything that would trip up Xataface.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 26 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved