Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quickbooks Mod


Guest

Recommended Posts

Hi All,

 

Has anyone got the QB Mod to work. I am on a Lynix box and keep getting the follwoing errors:

 

Warning: fopen("/home/sites/site16/web/catalog/export/qb_sale.iif", "a") - Permission denied in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 82

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 88

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 89

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 90

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 120

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 214

 

Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site16/web/catalog/includes/qb_iif_sale.php on line 215

 

Warning: Cannot add header information - headers already sent by (output started at /home/sites/site16/web/catalog/includes/qb_iif_sale.php:82) in /home/sites/site16/web/catalog/includes/functions/general.php on line 23

 

 

It seesm after searching via the forum some people have either given up on it or got it work some how. Any help would helpfull

 

Thx

 

Kevin

 

:roll:

Link to comment
Share on other sites

Looks like you need to set the permissions for the file(s) in question. You say your in linux so this is how.

 

cd /home/sites/site16/web/catalog/export/

chmod a+wr qb_sale.iif (this is assuming you have this file, I think you might have something wrong..)

 

cd /home/sites/site16/web/catalog/includes/

chmod a+wr qb_iif_sale.php

 

This will permit the server to have access to qb_iif_sale.php. One you confirmed this, you can try to customize the permissions from there. (writable less accessable)

 

Good luck.

 

Now I have a question.

 

I got this package inserted, now am having this issue just after checkout.

 

Warning: Failed opening 'DIR_WB_INCLUDESqb_iif_sale.php' for inclusion (include_path='') in /home/www/www.rainbowcomputers.ca/htdocs/catalog/checkout_process.php on line 182



Warning: Cannot add header information - headers already sent by (output started at /home/www/www.rainbowcomputers.ca/htdocs/catalog/checkout_process.php:182) in /home/www/www.rainbowcomputers.ca/htdocs/catalog/includes/functions/general.php on line 23

 

Now, these lines in their respective files are...

 

In checkout_process.php...

 

// send emails to other people

?if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

? ?tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, '');

?}



?// Begin QB/QIF mod

?if (CREATE_SALE_QB_IIF_FILE) {INCLUDE(DIR_WB_INCLUDES . 'qb_iif_sale.php');} // <<--- Line 182

?// End QB/QIF mod



// load the after_process function from the payment modules

?$payment_modules->after_process();



?$cart->reset(TRUE);

 

In general.php ....

// Stop from parsing any further PHP code

?function tep_exit() {

? tep_session_close();

? exit();

?}



////

// Redirect to another page or site

?function tep_redirect($url) {

? ?header('Location: ' . $url); ?// <<<---- line 23 in general.php

? ?tep_exit();

?}

 

I've looked and it seems like everything is right. I've a feeling I've missed something...

 

Thomas Keats

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...