Zen Cart Logo
Forums / Addon Shipping Modules / ozpost shipping module

ozpost shipping module

Views: 403,049

Results 441 to 460 of 2,251
13 Feb 2010, 10:45 PM
#441
peter_homann avatar

peter_homann

Zen Follower

Join Date:
Jun 2006
Location:
Melbourne, VIC
Posts:
106
Plugin Contributions:
0

ozpost shipping module

Hi Rod,

I've started to get the following error display when estimating shipping.

"Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/homann/public_html/store/includes/modules/shipping/ozpost.php on line 739"

Any clues what might be causing this?

Cheers,

Peter.

14 Feb 2010, 1:58 AM
#442
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Peter Homann:

Hi Rod,

I've started to get the following error display when estimating shipping.

"Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/homann/public_html/store/includes/modules/shipping/ozpost.php on line 739"

Any clues what might be causing this?

Cheers,

Peter.

Your webhost has changed something.

Having said that, I'm not sure if the CURLOPT_FOLLOWLOCATION is actually needed these days. If memory serves me correctly, The setting allows/disallows whether URL requests follow redirects or not, and with the current server setups there are no relelevent redirects in place, so you could try commenting that line out.

Cheers
Rod

14 Feb 2010, 2:17 AM
#443
peter_homann avatar

peter_homann

Zen Follower

Join Date:
Jun 2006
Location:
Melbourne, VIC
Posts:
106
Plugin Contributions:
0

Re: ozpost shipping module

Thanks Rod, commenting it out seems to have done it

Cheers,

Peter.

14 Feb 2010, 2:17 AM
#444
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

Peter Homann:

Hi Rod,

I've started to get the following error display when estimating shipping.

"Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/homann/public_html/store/includes/modules/shipping/ozpost.php on line 739"

Any clues what might be causing this?

Cheers,

Peter.

ps. You could also try adding this:

curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);

Cheers
Rod

14 Feb 2010, 1:20 PM
#445
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

ozpost Shipping Module does not work on our site www.grizzlengrouch.com/store
test product: www.grizzlengrouch.com/store/index.php?main_page=product_info&cPath=26&products_id=88

shipping estimator just refreshes without showing the ozpost options if curl is off, and does not show anything half the time if curl is on.

Standard install: ozpost V1.0.2

I have installed the ozpost shipping calculator on 15 websites and although it sometimes buggy I has always ended up working in the end.
My first thought was that it could be something on the server because this is the first time I have worked on this server and it is configured differently that what I am use to; But...
I just tested the ozpost shipping module on a different server which has not had problems in the past with the same template monster template that I customized for this site and I have the same problem; so maybe something in the template monster template pack (inc sql patch) is causing the problem, I am not sure.

Maybe I will put this on the commercial help wanted section later.

14 Feb 2010, 3:11 PM
#446
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

vandiermen:

shipping estimator just refreshes without showing the ozpost options if curl is off, and does not show anything half the time if curl is on.

cURL must be enabled.

vandiermen:

I have installed the ozpost shipping calculator on 15 websites and although it sometimes buggy I has always ended up working in the end.

My mate Spock and I both find this to be illogical. A program cannot be 'sometimes buggy'. It either has bugs, or it doesn't. The fact that it "has always ended up working in the end", is simply an admission that you have been doing something "wrong" with the installation(s) when first installing... Unless of course you have had to modify the ozpost code itself to get things going, in which case you haven't helped anyone other than yourself by doing so.

vandiermen:

My first thought was that it could be something on the server because this is the first time I have worked on this server and it is configured differently that what I am use to; But...

This is logical.

vandiermen:

just tested the ozpost shipping module on a different server which has not had problems in the past with the same template monster template that I customized for this site and I have the same problem; so maybe something in the template monster template pack (inc sql patch) is causing the problem, I am not sure.

It could be - Certainly seems that way at the moment.

If you could enable cURL and repost the link to a product showing the problem I'll see if I can give any further clues. However, I'm pretty confident that your problem is going to end up being something amiss with your input data - Do keep in mind that cURL must be enabled though. (The next release isn't going to make this an option).

Cheers
Rod

14 Feb 2010, 3:15 PM
#447
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

When I posted the question the cURL was on and it is still on

**Use cURL?
**Yes

15 Feb 2010, 12:52 AM
#449
swatts avatar

swatts

New Zenner

Join Date:
Feb 2010
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

Hi,

I have just installed the ozpost shipping module, and have found that it suits my requirements perfectly.

There is one thing I am a bit confused about, and that is the prices that are returned. All of the parcel prices seem to be about 20% lower than what is quoted when using the calculator provided on the Australia Post website.

For example, a regular parcel within 50Km at 250-500 grams is quoted at $5.60, whereas the ozpost module quotes $4.61.

Are these calculated at discounted rates, or is it more likely that I have a configuration problem?

Any help with this would be appreciated.

Thanks,

Simon

15 Feb 2010, 1:39 AM
#450
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

swatts:

Hi,

There is one thing I am a bit confused about, and that is the prices that are returned. All of the parcel prices seem to be about 20% lower than what is quoted when using the calculator provided on the Australia Post website.

For example, a regular parcel within 50Km at 250-500 grams is quoted at $5.60, whereas the ozpost module quotes $4.61.

Are these calculated at discounted rates, or is it more likely that I have a configuration problem?

Any help with this would be appreciated.

Thanks,

Simon

I tested this a few weeks ago; be sure to enter the exact same origin post code that is used in your store and destination location used in calculator tests, as aust post charge differently if the post code is out even just a little bit. After I did this I got the exact same calculation as on the aust post website.

15 Feb 2010, 1:41 AM
#451
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

vandiermen:

When I posted the question the cURL was on and it is still on

**Use cURL?
**Yes

Didn't mean to upset you, I just wanted to be sure we were on the same starting page for testing purposes.
I can verify that valid data is being received (and returned) by the server, so this narrows the problem down to PHP.

What version of PHP is your site running on? The ozpost module requires 5.1 or higher.

The following thread may be of some help:
http://www.zen-cart.com/forum/showthread.php?p=799408#post799408

Cheers
Rod

15 Feb 2010, 1:46 AM
#452
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

RodG:

Didn't mean to upset you, I just wanted to be sure we were on the same starting page for testing purposes.
I can verify that valid data is being received (and returned) by the server, so this narrows the problem down to PHP.

What version of PHP is your site running on? The ozpost module requires 5.1 or higher.

The following thread may be of some help:
http://www.zen-cart.com/forum/showthread.php?p=799408#post799408

Cheers
Rod

Server uses PHP Version: 4.4.7
if ozpost requires 5.1 or higher then that explains it

I am very happy with your support.... free... that is so kind and helpful... ...for us on a low budget

15 Feb 2010, 2:00 AM
#453
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: ozpost shipping module

I just upgraded to php5 and it works now! :smile::bigups: :clap:
Thanks

For people with a Cpanel hosting you can do this by going to Cpanel > PHP Configuration > select PHP5 at top of page and click update

PHP5 requirement note could be put in the install.txt or readme.txt in the next update maybe

15 Feb 2010, 2:46 AM
#454
swatts avatar

swatts

New Zenner

Join Date:
Feb 2010
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

Hi,

Thanks for your reply, but I am definitely using the same orginating and destination postcodes for both the ozpost module and the Australia Post website. The thing that is confusing me, is that there is no regular parcel rate of $4.61, the cheapest is $5.60.

So my question is - how can the ozpost module come back with $4.61?

Thanks,

Simon

15 Feb 2010, 5:54 AM
#455
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

vandiermen:

PHP5 requirement note could be put in the install.txt or readme.txt in the next update maybe

It'll definitely be documented in the next update. This is one of those unfortunate things that didn't come to light until long after the package was released.

I j> vandiermen:

ust upgraded to php5 and it works now! :smile::bigups: :clap:
Thanks

Always good to hear. :-)

For people with a Cpanel hosting you can do this by going to Cpanel > PHP Configuration > select PHP5 at top of page and click update
[/quote]

.... and if given the choice of V5 subversions, I'd go with 5.1 or 5.2 rather than 5.3 which then requires patches to zencart itself. (Just something to keep in mind).

Cheers
Rod

15 Feb 2010, 5:59 AM
#456
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

swatts:

So my question is - how can the ozpost module come back with $4.61?

Is that $4.61 in US, UK, or AU currency? (how do you/we know?)

Cheers
Rod

15 Feb 2010, 8:26 AM
#457
swatts avatar

swatts

New Zenner

Join Date:
Feb 2010
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

Is that $4.61 in US, UK, or AU currency? (how do you/we know?)

Cheers
Rod

Hi Rod,

That's a good question, and I probably should have included that in my post. My cart is setup to use $AUD. But perhaps there are options in other places that I am not aware of.

Thanks,
Simon

15 Feb 2010, 8:50 AM
#458
swatts avatar

swatts

New Zenner

Join Date:
Feb 2010
Posts:
5
Plugin Contributions:
0

Re: ozpost shipping module

RodG:

Is that $4.61 in US, UK, or AU currency? (how do you/we know?)

Cheers
Rod

Thanks for your help Rod. After reading your last post I went and checked my currency configuration, and sure enough it was set to use $USD by default. Changing this to $AUD has fixed the problem

Cheers,

Simon

15 Feb 2010, 8:56 AM
#459
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: ozpost shipping module

swatts:

Changing this to $AUD has fixed the problem

I somehow knew it would. (there were only two possibilities, currency rates or taxation). The figures you gave appeared to be closer to exchange rates than an assumed 10%GST, so I tossed you a bone :-)

Cheers
Rod

16 Feb 2010, 5:33 AM
#460
integrity_designs avatar

integrity_designs

Zen Follower

Join Date:
Nov 2009
Location:
North Bendigo, VIC, Australia
Posts:
157
Plugin Contributions:
0

Re: ozpost shipping module

Hi
is there any way of getting this module to work with letter sized and parcel size when the items are priced by atributes?

I sell labels, and plan on selling them in larger quantities such as 2000+ labels which would place the weight over 500g.
The problem I have is not being able to get the ozpost module to recognise "parcel" weight from "large letter" weight.

I look forward to some help ASAP.
Kind Regards