White Screen After Form Submission
Posted: 07 January 2011 09:00 PM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Hey Guys,

I had SafeCracker working just fine on a 10 page form, but now that I’ve updated to 2.1.3, I get a blank white screen after my initial form submission on page 1.  There is nothing in the error log file… how do I start debugging this?

Jesse

Profile
 
 
Posted: 07 January 2011 09:01 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Have you grabbed the latest SafeCracker?

Profile
 
 
Posted: 07 January 2011 09:02 PM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

I pulled one from yesterday… is that the latest?

Profile
 
 
Posted: 07 January 2011 09:04 PM   [ Ignore ]   [ # 3 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Yep, should be 1.0.2.

Profile
 
 
Posted: 07 January 2011 09:04 PM   [ Ignore ]   [ # 4 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Yes, that’s what I’m at.

Profile
 
 
Posted: 07 January 2011 09:06 PM   [ Ignore ]   [ # 5 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Do you have a PHP error log? What do you have your debugging preference set to?

Profile
 
 
Posted: 07 January 2011 09:10 PM   [ Ignore ]   [ # 6 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Debugging is set to 1 and the error log in system/codeigniter/logs/ doesn’t record any errors at all.  Is there another place to look for logs?

Profile
 
 
Posted: 07 January 2011 09:12 PM   [ Ignore ]   [ # 7 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Something else to note is that I have the second page set to redirect back to the first if it doesn’t have a valid ENTRY_ID in the 3rd segment.  So if I try loading it directly, without the third segment, it does redirect properly.  So the only time it loads the blank screen is when I try to submit a new entry on the first page of the form.  Also, there is not a new entry created in the Control Panel after submitting page one.

Profile
 
 
Posted: 07 January 2011 09:12 PM   [ Ignore ]   [ # 8 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Do you have any of these extensions installed? http://devot-ee.com/hooks/ee/entry_submission_redirect/

Or any other extensions that might use that hook, Membrr, for instance.

Profile
 
 
Posted: 07 January 2011 09:14 PM   [ Ignore ]   [ # 9 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Boy, I sure don’t think so.  I have User, SafeCracker, and the defaults.

Profile
 
 
Posted: 07 January 2011 09:17 PM   [ Ignore ]   [ # 10 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

OK, hmm…any wacky fieldtypes in use?

Let’s see if you have a proper PHP error log that we can look at. In your CP head to Tools > Utilities > PHP Info, and on that page do a text search for error_log, and find the value of that or whether it’s blank.

Profile
 
 
Posted: 07 January 2011 09:22 PM   [ Ignore ]   [ # 11 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

There are no errors in the log for today.  This was there yesterday, before I updated to the latest SafeCracker:

[06-Jan-2011 16:06:42] PHP Fatal error:  Call to a member function submit_new_entry() on a non-object in /Applications/MAMP/htdocs/cfssystem/expressionengine/third_party/safecracker/libraries/Safecracker_lib.php on line 1123

And I’m only using the default fieldtypes.  Nothing strange there…

Profile
 
 
Posted: 07 January 2011 09:27 PM   [ Ignore ]   [ # 12 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

I’m stumped now. Can you send me access?

Profile
 
 
Posted: 07 January 2011 09:40 PM   [ Ignore ]   [ # 13 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

OK. For some reason, the form action for Safecracker was not in the database. I just had to uninstall and re-install the module, and now it’s working.

Profile
 
 
Posted: 07 January 2011 09:41 PM   [ Ignore ]   [ # 14 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

OK. For some reason, the form action for Safecracker was not in the database. I just had to uninstall and re-install the module, and now it’s working.

Profile
 
 
Posted: 07 January 2011 09:41 PM   [ Ignore ]   [ # 15 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Sheesh… so much brainpower for so simple a solution grin

Thanks

Profile