Forums / Basic Configuration / Unexpected T_ECHO in ipn_main_handler.php

Unexpected T_ECHO in ipn_main_handler.php

Results 1 to 5 of 5
01 Nov 2011, 15:23
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Posts:
1,117
Plugin Contributions:
0

Unexpected T_ECHO in ipn_main_handler.php

Getting this error in my server error log over a few days, not showing anymore though...

PHP Parse error: syntax error, unexpected T_ECHO in /xxxx/xxxxx/public_html/mysite.com/ipn_main_handler.php on line 72

Anyone know the cause/problem?
01 Nov 2011, 20:20
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Unexpected T_ECHO in ipn_main_handler.php

There's no "echo" statement in that file at all.

Sounds like a damaged file.
02 Nov 2011, 09:08
#3
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Posts:
1,117
Plugin Contributions:
0

Re: Unexpected T_ECHO in ipn_main_handler.php

There is on line 72 - Does it make a difference?


if ( (defined('MODULE_PAYMENT_PAYPALWPP_DEBUGGING') && strstr(MODULE_PAYMENT_PAYPALWPP_DEBUGGING, 'Log')) ||
(defined('MODULE_PAYMENT_PAYPAL_IPN_DEBUG') && strstr(MODULE_PAYMENT_PAYPAL_IPN_DEBUG, 'Log')) ||
($_POST['ppdebug'] == 'on' && strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, echo $_SERVER['REMOTE_ADDR'];)) ) {
@ini_set('display_errors', E_ALL ^ E_NOTICE);
error_reporting(E_ALL ^ E_NOTICE);
$show_all_errors = true;
02 Nov 2011, 09:14
#4
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Posts:
1,117
Plugin Contributions:
0

Re: Unexpected T_ECHO in ipn_main_handler.php

Just checked the error log and it happened 3 times today.
02 Nov 2011, 09:15
#5
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Posts:
1,117
Plugin Contributions:
0

Re: Unexpected T_ECHO in ipn_main_handler.php

DrByte:

There's no "echo" statement in that file at all.

Sounds like a damaged file.


Actually your're right, Ive just checked all of my other sites and the ipn_main_handler doesnt have an echo in there.

Weird!