google-code-export / google-checkout-oscommerce

Automatically exported from code.google.com/p/google-checkout-oscommerce
1 stars 0 forks source link

Error when notify customer is unchecked in the Order details page #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When updating an order status from admin, with notify customer ticked, an
email is sent to the buyer as normal.

If the notify customer is un-ticked, the following error occurs:

CODE

Warning:
google_checkout_state_change(includes/modules/payment/googlecheckout.php):
failed to open stream: No such file or directory in
/xxx/xxx/xxx/admin/orders.php on line 83

Warning: google_checkout_state_change(): Failed opening
'includes/modules/payment/googlecheckout.php' for inclusion
(include_path='.:/usr/share/pear') in /xxx/xxx/xxx/admin/orders.php on line 83

Fatal error: Cannot instantiate non-existent class: googlecheckout in
/xxx/xxx/xxx/admin/orders.php on line 84

The code from line 83 and 84 in orders.php is:

CODE

        include_once('includes/modules/payment/googlecheckout.php');
        $googlepay = new googlecheckout();

Original issue reported on code.google.com by jacob13moon@gmail.com on 19 Oct 2006 at 12:26

GoogleCodeExporter commented 9 years ago
Looks like its pointing to the admin side when it should be pointing to the 
catalog.

Backup and try this -

ADMIN/ORDERS.PHP

REPLACE

CODE

        include_once('includes/modules/payment/googlecheckout.php');
        $googlepay = new googlecheckout();

        //Setup the log file
        if (!$message_log = fopen(API_CALLBACK_MESSAGE_LOG, "a")) {
          error_func("Cannot open " . API_CALLBACK_MESSAGE_LOG . " file.\n", 0);
          exit(1);

WITH

CODE

      include_once(DIR_FS_CATALOG .'includes/modules/payment/googlecheckout.php');
        $googlepay = new googlecheckout();

        //Setup the log file
        if (!$message_log = fopen (DIR_FS_CATALOG .
'googlecheckout/response_message.log', "a")) {
          error_func("Cannot open " . API_CALLBACK_MESSAGE_LOG . " file.\n", 0);
          exit(1);

Original comment by jacob13moon@gmail.com on 19 Oct 2006 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by jacob13moon@gmail.com on 19 Oct 2006 at 12:47