Zen Cart Logo
Forums / Addon Payment Modules / Google Checkout addon - Possible Hack or PHP Misconfiguration?

Google Checkout addon - Possible Hack or PHP Misconfiguration?

Views: 4,143

Results 1 to 6 of 6
16 Oct 2011, 2:58 PM
#1
kevinoneil68 avatar

kevinoneil68

New Zenner

Join Date:
Sep 2011
Location:
Upstate, NY
Posts:
48
Plugin Contributions:
0

Google Checkout addon - Possible Hack or PHP Misconfiguration?

Hi,
My zen cart version is v1.3.9h and was moving along awesome. My php version is PHP Version 5.3.8

I am unsure if my hosting company upgraded the php and now the scripts are wonky or if someone is doing something.
Here's some snippit from the cache file:

[13-Oct-2011 15:37:53] PHP Notice: Constant HTTP_SERVER already defined in /path/to/admin/includes/configure.php on line 29
[13-Oct-2011 15:37:53] PHP Notice: Constant HTTPS_SERVER already defined in /path/to/admin/includes/configure.php on line 30
[13-Oct-2011 15:37:53] PHP Notice: Constant DIR_WS_CATALOG already defined in /path/to/admin/includes/configure.php on line 43

[13-Oct-2011 15:37:53] PHP Deprecated: Function split() is deprecated in /path/to/googlecheckout/gcheckout.php on line 128

[13-Oct-2011 15:37:53] PHP Notice: Undefined index: billto in /path/to/includes/functions/functions_taxes.php on line 247
[13-Oct-2011 15:37:53] PHP Notice: Undefined property: queryFactoryResult::$fields in /path/to/includes/functions/functions_taxes.php on line 269

[13-Oct-2011 15:37:54] PHP Notice: Use of undefined constant MODULE_SHIPPING_ZONES_TAX_BASIS - assumed 'MODULE_SHIPPING_ZONES_TAX_BASIS' in /path/to/includes/modules/shipping/zones.php on line 106
[13-Oct-2011 15:37:54] PHP Notice: Use of undefined constant MODULE_SHIPPING_ZONES_STATUS - assumed 'MODULE_SHIPPING_ZONES_STATUS' in /path/to//includes/modules/shipping/zones.php on line 110

I never had errors before and did nothing to the files in question. There are over 600 lines of "PHP Notice: Constant **** already defined in /path/to/...." and such.. this is a partial snippit.

I really don't think it's a hack attempt, did anyone else have this problem?
Thanks,
Kevin

16 Oct 2011, 3:10 PM
#2
kevinoneil68 avatar

kevinoneil68

New Zenner

Join Date:
Sep 2011
Location:
Upstate, NY
Posts:
48
Plugin Contributions:
0

Re: Google Checkout addon - Possible Hack or PHP Misconfiguration?

Hi,
I was trying to find the edit button, but I think I found the answer to my own question. I found that in the newly installed google checkout module, error reporting all was not commented out. I commented it out and the reports stopped in the google cache.
Sorry. I can't see how to delete this post.
Thanks,
Kevin

16 Oct 2011, 3:22 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Google Checkout addon - Possible Hack or PHP Misconfiguration?

No need to delete it ... you may have helped others with similar issues ... thanks for the update and explanation of the cause of the problem ...

16 Oct 2011, 8:14 PM
#4
kevinoneil68 avatar

kevinoneil68

New Zenner

Join Date:
Sep 2011
Location:
Upstate, NY
Posts:
48
Plugin Contributions:
0

Re: Google Checkout addon - Possible Hack or PHP Misconfiguration?

Ajeh,
Thanks for the heads up.
I am just wondering about this error here:

[13-Oct-2011 15:37:53] PHP Deprecated: Function split() is deprecated in /path/to/googlecheckout/gcheckout.php on line 128

Should I look into fixing this error since it's deprecated?

LINE 128

// Restricted categories
$resticted_categories = split('([ ]?[,][ ]?)',MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);

Thanks,
Kevin

16 Oct 2011, 8:23 PM
#5
kevinoneil68 avatar

kevinoneil68

New Zenner

Join Date:
Sep 2011
Location:
Upstate, NY
Posts:
48
Plugin Contributions:
0

Re: Google Checkout addon - Possible Hack or PHP Misconfiguration?

Hi,
I found this on another site:

$resticted_categories = preg_split('/ ?, ?/', MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);

I am looking into this to see if it will work.

Thanks,
Kevin

18 Oct 2011, 11:44 PM
#6
kevinoneil68 avatar

kevinoneil68

New Zenner

Join Date:
Sep 2011
Location:
Upstate, NY
Posts:
48
Plugin Contributions:
0

Re: Google Checkout addon - Possible Hack or PHP Misconfiguration?

Hi,
It seems to work as I can still make sales in google checkout.
Thanks,
Kevin