Welcome Guest, Not a member yet? Register   Sign In
Edit function generate blank page
#1

[eluser]patak[/eluser]
Hi all!
I totally got stuck with one of my controller.
I am developing e-shop system for selling wine and my edit function after submitting “generate” blank page.
The edit function normally load data from database and send them to view with form. When I submit the form I get only blank page and I really understand why. I am using similar function in other controllers and it works great.
Unfortunately the function is to long to post it here so I have attached it also view the file.
If someone look into my files and try to help, I will be very happy!
Jan
#2

[eluser]jmadsen[/eluser]
if you go to the index.php, and look at this line: (usually line 12, more or less)

error_reporting(0);

change to:

error_reporting(E_ALL);

it will say what is wrong. blank pages usually mean a small syntax error (you missed a ;, misspelled something, etc.)
#3

[eluser]patak[/eluser]
Hi jmadsen,
thanks for your time!
Yes I have it.
This is my log file:
Code:
//edit form with loading data from DB
DEBUG - 2010-09-25 18:14:22 --> Config Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Hooks Class Initialized
DEBUG - 2010-09-25 18:14:22 --> URI Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Router Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Output Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Input Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Global POST and COOKIE data sanitized
DEBUG - 2010-09-25 18:14:22 --> Language Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Loader Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Config file loaded: config/freakauth_light.php
DEBUG - 2010-09-25 18:14:22 --> Config file loaded: config/wm_shop.php
DEBUG - 2010-09-25 18:14:22 --> Helper loaded: url_helper
DEBUG - 2010-09-25 18:14:22 --> Helper loaded: form_helper
DEBUG - 2010-09-25 18:14:22 --> Helper loaded: array_helper
DEBUG - 2010-09-25 18:14:22 --> Helper loaded: freakauth_light_helper
DEBUG - 2010-09-25 18:14:22 --> Helper loaded: html_helper
DEBUG - 2010-09-25 18:14:22 --> Database Driver Class Initialized
DEBUG - 2010-09-25 18:14:22 --> FreakAuth Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Session Class Initialized (db)
DEBUG - 2010-09-25 18:14:22 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Validation Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Form Validation Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Pagination Class Initialized
DEBUG - 2010-09-25 18:14:22 --> Upload Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Controller Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:23 --> Language file loaded: language/czech/freakauth_lang.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/header.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/menu.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/vina/edit.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/content.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/footer.php
DEBUG - 2010-09-25 18:14:23 --> File loaded: C:\Users\user\Documents\xampp\htdocs\wm-shop/system/application/views/admin/template_admin/container.php
DEBUG - 2010-09-25 18:14:23 --> Language file loaded: language/czech/profiler_lang.php
DEBUG - 2010-09-25 18:14:23 --> Helper loaded: text_helper
DEBUG - 2010-09-25 18:14:23 --> Final output sent to browser
DEBUG - 2010-09-25 18:14:23 --> Total execution time: 0.5009
//submitting of edit form
DEBUG - 2010-09-25 18:14:28 --> Config Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Hooks Class Initialized
DEBUG - 2010-09-25 18:14:28 --> URI Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Router Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Output Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Input Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Global POST and COOKIE data sanitized
DEBUG - 2010-09-25 18:14:28 --> Language Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Loader Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Config file loaded: config/freakauth_light.php
DEBUG - 2010-09-25 18:14:28 --> Config file loaded: config/wm_shop.php
DEBUG - 2010-09-25 18:14:28 --> Helper loaded: url_helper
DEBUG - 2010-09-25 18:14:28 --> Helper loaded: form_helper
DEBUG - 2010-09-25 18:14:28 --> Helper loaded: array_helper
DEBUG - 2010-09-25 18:14:28 --> Helper loaded: freakauth_light_helper
DEBUG - 2010-09-25 18:14:28 --> Helper loaded: html_helper
DEBUG - 2010-09-25 18:14:28 --> Database Driver Class Initialized
DEBUG - 2010-09-25 18:14:28 --> FreakAuth Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Session Class Initialized (db)
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Validation Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Form Validation Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Pagination Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Upload Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Controller Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Model Class Initialized
DEBUG - 2010-09-25 18:14:28 --> Final output sent to browser
DEBUG - 2010-09-25 18:14:28 --> Total execution time: 0.4917
#4

[eluser]patak[/eluser]
no one has similar trouble? I am getting mad about this :-(
#5

[eluser]InsiteFX[/eluser]
Check for white space before and after the php tags!

InsiteFX
#6

[eluser]patak[/eluser]
[quote author="InsiteFX" date="1285606503"]Check for white space before and after the php tags!

InsiteFX[/quote]
Hi InsiteFX,
thank you very much for your time.
I checked it (in controller, model and view) but I there are no white spaces :-(
Any other suggestion?
Jan
#7

[eluser]InsiteFX[/eluser]
Why are you loading the Validation and Form_Validation libraries?

Should be loading only the Form_Validation library...

InsiteFX
#8

[eluser]patak[/eluser]
[quote author="InsiteFX" date="1285703726"]Why are you loading the Validation and Form_Validation libraries?

Should be loading only the Form_Validation library...

InsiteFX[/quote]
Hi InsiteFX,
Thank you very for your time again!
Now is loading only Form Validation but with the same result :-(
Jan
#9

[eluser]rwzhao[/eluser]
I have the same problem with my controller. I have gone through each line of my code by add one line a time to test out the function. It turns out I like to put that way, that the blank page generates at a certain line(mine is at between 1500 to 1600). If I make the controler less than about 1500 lines of codes, it works correctly. More than that, it will generate blank page. I break my controler into several smaller controlers to avoid the problem.

I looked at your controller which is less than 1000 lines but you have many models loaded. You might take off all other functions to do the test.

I don't know if this is bug of CodeIgniter or PHP.

It works for me by breaking the controller(big one) into smaller controller
#10

[eluser]rwzhao[/eluser]
I think that you need to check your PHP configuration on memory_limit. You need to increase it.




Theme © iAndrew 2016 - Forum software by © MyBB