Forums / All Other Contributions/Addons / TaxCloud - general.php error - Fix that might help others.

TaxCloud - general.php error - Fix that might help others.

Views: 2,330

Results 1 to 8 of 8
12 Dec 2012, 7:40 PM
#1
rcwebdev avatar

rcwebdev

New Zenner

Join Date:
Nov 2012
Posts:
27
Plugin Contributions:
0

TaxCloud - general.php error - Fix that might help others.

I am running Zen Cart 1.51. I downloaded the latest version last week.

After installing TaxCloud my script log showed that the TaxCloud modified file,
admin/includes/functions.general.php was causing an error. The path on line 11 was incorrectly specified.

The error in the script log was:
PHP Warning: require_once(../includes/modules/TaxCloud/func.taxcloud.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /[store path]/azcadmn/includes/functions/general.php on line 11

This line in general.php caused the error:
$taxcloud = '../includes/modules/TaxCloud/func.taxcloud.php';
require_once($taxcloud);

I changed both lines (above) to one line (as shown below). The error is gone and it's working fine.
require_once(DIR_FS_CATALOG . DIR_WS_MODULES . 'TaxCloud/func.taxcloud.php');

TaxCloud seemed to be working without this fix (and may have caused a future problem). It did cause a problem with a Zen Cart QuickBooks Sync product add-on. The error caused the add-on not to work.

I reported this error on the TaxCloud site, but thought I should post here too.

Hope this info can help others.

1 May 2013, 8:27 PM
#2
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Re: TaxCloud - general.php error - Fix that might help others.

RCwebdev - thank you so much for posting this! I was having a similar problem, except in my case it was SITE/includes/classes/order.php that was calling that same TaxCloud file on line 21. It originally said:
require_once DIR_WS_MODULES . 'TaxCloud/func.taxcloud.php';
and was causing the error log, as well as server error 500 when trying to use Edit Orders 4.1. I replaced that line with your
require_once(DIR_FS_CATALOG . DIR_WS_MODULES . 'TaxCloud/func.taxcloud.php');
and the problem is gone! EO works, and no new error logs.
Thanks again,
Magz
(For the record, I'm using ZC 1.5.1 with TaxCloud 1.5.2)

1 May 2013, 8:33 PM
#3
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: TaxCloud - general.php error - Fix that might help others.

You should post this on the TaxCloud support thread here on this forum not just the TaxCloud site so people who use the module will SEE the solution (not likely that many will see a general thread)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

1 May 2013, 8:59 PM
#4
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Re: TaxCloud - general.php error - Fix that might help others.

I would, but it doesn't seem to exist. Doesn't come up for either "TaxCloud" or "Tax Cloud" forum search, and there's no link to it on the plugin's download page.... ???

1 May 2013, 9:36 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: TaxCloud - general.php error - Fix that might help others.

This thread has been sort of fucntioning as a support thread for a while now in absence of a formal one.. It certainly is the most popular TaxCloud thread..

http://www.zen-cart.com/showthread.php?174459-TaxCloud-Addon

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

1 May 2013, 10:57 PM
#6
magz avatar

magz

Zen Follower

Join Date:
Apr 2013
Location:
north carolina
Posts:
110
Plugin Contributions:
0

Re: TaxCloud - general.php error - Fix that might help others.

Thanks DivaVocals, mission accomplished!

1 May 2013, 11:02 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: TaxCloud - general.php error - Fix that might help others.

magz:

Thanks DivaVocals, mission accomplished!

Awesome..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

10 May 2013, 1:39 PM
#8
rcwebdev avatar

rcwebdev

New Zenner

Join Date:
Nov 2012
Posts:
27
Plugin Contributions:
0

Re: TaxCloud - general.php error - Fix that might help others.

Magz,

I'm glad my post helped.

It turns out that I was using an older version of TaxCloud that I got in December from the TaxCloud site. I downloaded the newestversion of TaxCloud courtesy of Dr Byte
http://www.zen-cart.com/downloads.php?do=file&id=1208 and see the problem that I encountered is fixed. I also posted this note on the TaxCloud thread http://www.zen-cart.com/showthread.p...TaxCloud-Addon (good to know about this thread; didn't see it when I originally posted).

I will be integrating the newest TaxCloud this weekend; hoping to resolve some problems.