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!
Latest News: (loading..)
Getting blank page after clicking Buy Now button
Started by sormui, Mar 02 2011, 19:44
9 replies to this topic
#1
Posted 02 March 2011, 19:44
#2
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.
#3
Posted 03 March 2011, 06:44
or you can add this code to the page you are getting the error on
It should force errors to show on the page.
Nic
ini_set('display_errors',1);
error_reporting(E_ALL);
It should force errors to show on the page.
Nic
#4
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.
#5
#6
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
[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
clarocque, 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
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?
FIMBLE, on 03 March 2011, 06:44, said:
or you can add this code to the page you are getting the error on
It should force errors to show on the page.
Nic
ini_set('display_errors',1);
error_reporting(E_ALL);
It should force errors to show on the page.
Nic
#8
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.
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 >
"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
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!
germ, 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.
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
Posted 04 March 2011, 23:04
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 >
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >














