Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

formupdate.php throws a blank page

Locked
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

formupdate.php throws a blank page

Unread post by Fike »

I updated my database to version 2.7.3

I have some edit forms that have more than one subform (two or three subforms), and these subforms are configured to have 30 blank rows.

When I try to save the record from these edit forms, I get a blank page and the subform records are not updated. Apparently this happens only when the subforms have many filled rows (30 or more) and many blank rows (30 or more).

The URL of the blank page ponits to formupdate.php and the source code of the blank page is the following:

***Beginning of html source code

<html>
<head>
<meta http-equiv='Content-Type' content='text/html;'/>
<title></title>
<script type='text/javascript' src='common.js?ts=20120725043458' language='javascript'></script>
<!-- Form Functions -->
<script type='text/javascript'>
/* <![CDATA[ */
var nuFirstClick = true;
var nuHistorySession = '150101d239bfb0';
var nuHistoryIndex = '2';
var nuHistoryLocation = 'QnJvd3NlfHx8Q2FyZ2FyIGNvbmNlcHRvcw==|||aHR0cDovLzEwNy4yMC4yNTMuMTc5L3Byb2R1Y3Rpb25udTIvYnJvd3NlLnBocD94PTEmcD0xJmY9MTRmNDAxNGZjYmMzNjQmcz0mbnVvcGVuZXI9MTUwMTAxZDIzOTcxOWEmcHJlZml4PSZkaXI9ZGIvY29udHJhdG9zMjAxMiZzZXM9MTUwMTAxZDIzMGU0Y2UmZm9ybV9zZXM9Jmxvb2t1cF9jb2RlPSZoaXN0b3J5U2Vzc2lvbj0xNTAxMDFkMjM5YmZiMCZoaXN0b3J5SW5kZXg9MSZoaXN0b3J5TG9jYXRpb249Zkh4OFNFOU5SUT09fHx8YUhSMGNEb3ZMekV3Tnk0eU1DNHlOVE11TVRjNUwzQnliMlIxWTNScGIyNXVkVEl2Wm05eWJTNXdhSEEvZUQweEptWTlhVzVrWlhnbWNqMHRNU1prYVhJOVpHSXZZMjl1ZEhKaGRHOXpNakF4TWlaelpYTTlNVFV3TVRBeFpESXpNR1UwWTJVbWRHRmlQVEE9JnRhYj0w';
var nuHistoryArray = Array();

nuHistoryArray[0] = '';
nuHistoryArray[1] = 'fHx8SE9NRQ==|||aHR0cDovLzEwNy4yMC4yNTMuMTc5L3Byb2R1Y3Rpb25udTIvZm9ybS5waHA/eD0xJmY9aW5kZXgmcj0tMSZkaXI9ZGIvY29udHJhdG9zMjAxMiZzZXM9MTUwMTAxZDIzMGU0Y2UmdGFiPTA=';
nuHistoryArray[2] = 'QnJvd3NlfHx8Q2FyZ2FyIGNvbmNlcHRvcw==|||aHR0cDovLzEwNy4yMC4yNTMuMTc5L3Byb2R1Y3Rpb25udTIvYnJvd3NlLnBocD94PTEmcD0xJmY9MTRmNDAxNGZjYmMzNjQmcz0mbnVvcGVuZXI9MTUwMTAxZDIzOTcxOWEmcHJlZml4PSZkaXI9ZGIvY29udHJhdG9zMjAxMiZzZXM9MTUwMTAxZDIzMGU0Y2UmZm9ybV9zZXM9Jmxvb2t1cF9jb2RlPSZoaXN0b3J5U2Vzc2lvbj0xNTAxMDFkMjM5YmZiMCZoaXN0b3J5SW5kZXg9MSZoaXN0b3J5TG9jYXRpb249Zkh4OFNFOU5SUT09fHx8YUhSMGNEb3ZMekV3Tnk0eU1DNHlOVE11TVRjNUwzQnliMlIxWTNScGIyNXVkVEl2Wm05eWJTNXdhSEEvZUQweEptWTlhVzVrWlhnbWNqMHRNU1prYVhJOVpHSXZZMjl1ZEhKaGRHOXpNakF4TWlaelpYTTlNVFV3TVRBeFpESXpNR1UwWTJVbWRHRmlQVEE9JnRhYj0w';

function nuSingleWindow(){return true;}

function reload(pthis){// reload form.php
}
/* ]]> */
</script>
</head>
<body onload='reload()'>
<form name='theform' action='' method='post'>
</form></body></html>

***End of html source code

It seems that the subforms have more records to update than the formupdate.php file or my server configuration can handle. Is there something I might need to configure on my php.ini file to make it work properly?

Regrads,

Fike
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: formupdate.php throws a blank page

Unread post by Fike »

I've been playing with the number of rows of the subform and the formupdate.php file.

It seems that the variables $refreshAfterSave and $closeAfterSave of the formupdate.php file are throwing null values and therefore the reload function is not completed.

This only happens when the subform has many rows (more than 100), even when there is only one subform in the edit form.

My knowledge of PHP is very limited, but I will keep playing with the formupdate.php file to see if I can find out why these variables are throwing null values.

Any help will be much appreciated !

Regards,

Fike
Fike
Posts: 79
Joined: Thu Oct 20, 2011 9:13 pm

Re: formupdate.php throws a blank page

Unread post by Fike »

It seems that the problem is due to my server's updated PHP. I found the answer here:

http://www.nivas.hr/blog/2012/04/04/bew ... on-option/

Now PHP limits the number of posted variables to 1000. Therefore I had to modify my php.ini file to allow more variables to be posted.

So far everything is working fine now.

Fike
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: formupdate.php throws a blank page

Unread post by admin »

Fike,

Good work.

That's what I was going to suggest.

The newer versions use a few more resources.

Steven
Locked