Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Getting blank page after clicking Buy Now button


9 replies to this topic

#1 sormui

  • Community Member
  • 221 posts
  • Real Name:cherry

Posted 02 March 2011, 19:44

It gives a blank page after clicking "Buy Now" button in product listing page. Actually the product is added to the shopping cart but it returns a blank page. Does anyone know how to fix it? Thanks in advance!

#2 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 03 March 2011, 05:07

Look at your PHP logs if you have access. If not enable errors via htaccess. Sounds like there is a PHP error on server.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#3 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 03 March 2011, 06:44

or you can add this code to the page you are getting the error on

ini_set('display_errors',1); 
error_reporting(E_ALL);

It should force errors to show on the page.

Nic
Sometimes you're the dog and sometimes the lamp post

My Contributions

#4 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 03 March 2011, 06:59

That may or may not work depending on what and where the error is. If the error is on that script the ini will not work as the script will not execute.

Edited by clarocque, 03 March 2011, 06:59.

osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#5 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 03 March 2011, 08:05

View Postclarocque, on 03 March 2011, 06:59, said:

That may or may not work depending on what and where the error is. If the error is on that script the ini will not work as the script will not execute.


Then again, it might work .... so was worth mentioning.
Sometimes you're the dog and sometimes the lamp post

My Contributions

#6 sormui

  • Community Member
  • 221 posts
  • Real Name:cherry

Posted 04 March 2011, 21:19

Here are the errors from the logs:
[04-Mar-2011 15:17:57] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/wonderfi/public_html/index.php(1) : eval()'d code:37) in /home/wonderfi/public_html/includes/functions/sessions.php on line 102
[04-Mar-2011 15:18:01] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/wonderfi/public_html/index.php(1) : eval()'d code:37) in /home/wonderfi/public_html/includes/functions/sessions.php on line 102
[04-Mar-2011 15:18:01] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wonderfi/public_html/index.php(1) : eval()'d code:37) in /home/wonderfi/public_html/includes/functions/general.php on line 33

View Postclarocque, on 03 March 2011, 05:07, said:

Look at your PHP logs if you have access. If not enable errors via htaccess. Sounds like there is a PHP error on server.


#7 sormui

  • Community Member
  • 221 posts
  • Real Name:cherry

Posted 04 March 2011, 21:24

Tried to add the codes but blank page still came up and no error is displayed, sigh! Actually I notice that the "Buy Now" button sometimes work but sometimes doesn't. Would it related to the session issue?

View PostFIMBLE, on 03 March 2011, 06:44, said:

or you can add this code to the page you are getting the error on

ini_set('display_errors',1); 
error_reporting(E_ALL);

It should force errors to show on the page.

Nic


#8 germ

  • Community Member
  • 13,586 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 04 March 2011, 21:53

Look at the code at the very top of the index.php in the root folder.

If it contains any of these php keywords:

base64_decode or gzinflate or eval

And you didn't put the code there then the page is hacked.

Edited by germ, 04 March 2011, 21:55.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#9 sormui

  • Community Member
  • 221 posts
  • Real Name:cherry

Posted 04 March 2011, 22:58

Oh yes, I found those php keywords not only in index.php but other php files as well. So my site got hacked. I need to upload the clean files again but how can I prevent it from happening again? Thanks!

View Postgerm, on 04 March 2011, 21:53, said:

Look at the code at the very top of the index.php in the root folder.

If it contains any of these php keywords:

base64_decode or gzinflate or eval

And you didn't put the code there then the page is hacked.


#10 germ

  • Community Member
  • 13,586 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 04 March 2011, 23:04

Visit the link below:

How to Secure Your Site
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >