mcnutdd Posted June 2, 2009 Share Posted June 2, 2009 Sorry for creating two topics on the same subject, but I really have to figure this problem out. When a customer logs into my site they get a white blank page after submitting their name and password. The same thing happens for submitting a contact us form, adding products to cart, and so on. I know that this is probably a php issue, although I can not find the problem. On an earlier post it was suggested that I: in catalog/includes/application_top.php find CODE // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); add before it CODE ini_set('display_errors', '1'); error_reporting(E_ALL); errors will be displayed in browser now I tried this. But, it would not even bring up my home page. I have also searched my files for an error log and find no such thing! Thank you all for your help Link to comment Share on other sites More sharing options...
000---000 Posted June 2, 2009 Share Posted June 2, 2009 Sorry for creating two topics on the same subject, but I really have to figure this problem out. When a customer logs into my site they get a white blank page after submitting their name and password. The same thing happens for submitting a contact us form, adding products to cart, and so on. I know that this is probably a php issue, although I can not find the problem. On an earlier post it was suggested that I: in catalog/includes/application_top.php find CODE // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); add before it CODE ini_set('display_errors', '1'); error_reporting(E_ALL); errors will be displayed in browser now I tried this. But, it would not even bring up my home page. I have also searched my files for an error log and find no such thing! Thank you all for your help If your home page loads (before login), I would assume it is not a problem with application_top/application_botom, header or footer.php files. Once logged in, can they view the index.php page? If not, then there may be some option within the index.php file once logged in that may be causing your problem. I'm no expert, but back up your current index.php file, and upload a fresh unedited version. that may fix it. I've had similar problems in the past. Have just checked, application_top may include something with regards to logged in users so try the same with that) Matt Link to comment Share on other sites More sharing options...
mcnutdd Posted June 2, 2009 Author Share Posted June 2, 2009 If your home page loads (before login), I would assume it is not a problem with application_top/application_botom, header or footer.php files. Once logged in, can they view the index.php page? If not, then there may be some option within the index.php file once logged in that may be causing your problem. I'm no expert, but back up your current index.php file, and upload a fresh unedited version. that may fix it. I've had similar problems in the past. Have just checked, application_top may include something with regards to logged in users so try the same with that)Matt Thanks Matt, My cusomers can log in...but in order to see the index.php they have to click the browser back button then go to the home page. At this point, it shows that customer is logged in. I think it may be a problem with redirecting after the log in success. Do you think I still need to load a fresh version of my file? Link to comment Share on other sites More sharing options...
000---000 Posted June 2, 2009 Share Posted June 2, 2009 Thanks Matt, My cusomers can log in...but in order to see the index.php they have to click the browser back button then go to the home page. At this point, it shows that customer is logged in. I think it may be a problem with redirecting after the log in success. Do you think I still need to load a fresh version of my file? If the resulting source code of the blank page is blank I probably can't help you any further - as i have a similar unsolved error in my admin section. If there is something there, then I would suggest you back up your site, then upload a fresh copy of the main pages (index; application_top; application_bottom; header; footer; login) one at a time and try the errors/login etc after each uploaded file and hopefully this will give you a clue of which file is causing the problem. this does take some time, but is probably quicker that searching all of the php in all of the files. Link to comment Share on other sites More sharing options...
MrPhil Posted June 2, 2009 Share Posted June 2, 2009 A white (blank) screen usually means a severe PHP syntax error was encountered. Look through your server's files... are there any with names like error_log? If so, look inside and see if it tells you that it has found a specific error, and get back to us with the details (a representative sample of the error(s)). There may be multiple error_log files in multiple directories... look for all of them. Link to comment Share on other sites More sharing options...
FIMBLE Posted June 3, 2009 Share Posted June 3, 2009 It might help if you add this bit of code, just after the line ini_set('display_errors', '1'); error_reporting(E_ALL); require('includes/application_top.php'); so it looks require('includes/application_top.php'); ini_set('display_errors', '1'); error_reporting(E_ALL); It should make any error visible to you Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
mcnutdd Posted June 4, 2009 Author Share Posted June 4, 2009 It might help if you add this bit of code, just after the line ini_set('display_errors', '1'); error_reporting(E_ALL); require('includes/application_top.php'); so it looks require('includes/application_top.php'); ini_set('display_errors', '1'); error_reporting(E_ALL); It should make any error visible to you Nic I have searched for error log files and I can not locate them. But, I will look again just to tripple check that I have not missed them. What file should I add the code to Nic? Link to comment Share on other sites More sharing options...
mcnutdd Posted June 5, 2009 Author Share Posted June 5, 2009 It might help if you add this bit of code, just after the line ini_set('display_errors', '1'); error_reporting(E_ALL); require('includes/application_top.php'); so it looks require('includes/application_top.php'); ini_set('display_errors', '1'); error_reporting(E_ALL); It should make any error visible to you Nic I added the code to the contact_us.php file and it pulled a few errors: Notice: Constant ENTRY_CITY already defined in /hermes/bosweb/web262/b2626/ywh.kidsplayinccom/includes/languages/english/contact_us.php on line 23 Notice: Constant ENTRY_STATE already defined in /hermes/bosweb/web262/b2626/ywh.kidsplayinccom/includes/languages/english/contact_us.php on line 24 and Notice: Undefined index: cPath in /hermes/bosweb/web262/b2626/ywh.kidsplayinccom/includes/boxes/categories_az07.php on line 130 any ideas on what this means? Link to comment Share on other sites More sharing options...
MrPhil Posted June 5, 2009 Share Posted June 5, 2009 Do you have two (or more) lines similar to define('ENTRY_CITY',......); and two (or more) of define('ENTRY_STATE',.....); ? These could be appearing in the contact_us.php file itself, or in some .php file it's including or requiring. After that's cleared up, we can look at the cPath issue (if it's still there). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.