Page 1 of 2 12 LastLast
Results 1 to 10 of 2252

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module v2.0.7 released

    Quote Originally Posted by ALiepinieks View Post
    this client is using ozpost v1.0.2, and everything simply "stopped working". that is, no quotes are being generated at present, almost as if the module is switched off.
    This is a bug,
    --------------------------------------------------------------
    ozpost v1.0.2 - line 338 (or thereabouts)

    Add: $HOST= str_replace(" ", "+", $HOST) ;

    Change:

    $qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth& length=$parcellength&value=$ordervalue&flags=$flags&$method=$method&host=$HOST&v ersion=$VERSION") ;


    $qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth& length=$parcellength&value=$ordervalue&flags=$flags&host=$HOST&version=$VERSION" ) ;
    ------------------------------------------------------------------

    Upgrading/downgrading will also solve the problem, it is only v1.0.2 with the issue.

    Cheers
    Rod

  2. #2
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    what a legend! thanks for the quick response, was planning on upgrading anyway, irrespective of any costs just needed to know if a quick fix was available for this weekend.

    thanks again, speak soon!

    andrejs

  3. #3
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    quick update: made the change you suggested as it seemed small and harmless enough, but no luck. still no quotes generated (visibly that is). haven't done any debugging yet.

    i was hoping to put this off for about 3 weeks, but if the upgrade path is relatively painless i might just forget about debugging old code and jump into the new. obviously yo uwould recommend upgrading in most situations, but i really am pressed for time hence the question.

    what do you think (oh, and thanks for any input in advance)?

    andrejs

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module v2.0.7 released

    Quote Originally Posted by ALiepinieks View Post
    quick update: made the change you suggested as it seemed small and harmless enough, but no luck. still no quotes generated (visibly that is). haven't done any debugging yet.
    Enable the debugger to see if that offers any clues.

    Quote Originally Posted by ALiepinieks View Post
    i was hoping to put this off for about 3 weeks, but if the upgrade path is relatively painless i might just forget about debugging old code and jump into the new. obviously yo uwould recommend upgrading in most situations, but i really am pressed for time hence the question.

    what do you think (oh, and thanks for any input in advance)?

    andrejs
    Upgrading is a pretty trivial task.. All you need do is replace the two files named 'ozpost.php' , upload the new icons... then go to the admin of the store, navigate to the shipping module, press 'remove' then 'install'.

    You WILL need to review/change the default settings for handling costs, etc, so take note of the current settings first.

    Cheers
    rod

  5. #5
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    one last question, is this version prone to random simplexml errors? seems to throw an exception once in a while, stating there's a missing '<', however one or two page refreshes seems to resolve the error... strange strange strange.

    me thinks an upgrade is definitely in the wings.

    andrejs

  6. #6
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    just updating my last post, last two errors (simply refreshed the page) were as follows:

    Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php:352 Stack trace: #0 /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php(352): SimpleXMLElement->__construct('') #1 /home2/qualiue9/public_html/includes/classes/shipping.php(131): ozpost->quote('') #2 /home2/qualiue9/public_html/includes/modules/pages/checkout_shipping/header_php.php(174): shipping->quote() #3 /home2/qualiue9/public_html/index.php(44): require('/home2/qualiue9...') #4 {main} thrown in /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php on line 352

    the one before that wsimilar, simply had 3 additional errors printed before this one. as stated, all i'm doing is refreshing the page. after the 8th refresh checkout_shipping page was displayed as per normal. same errors appear in the shipping estimator (obviously).

    don't want to flog a dead horse, as i know this is all old version etc. just let me know if it's not worth the trouble persisting with this fix.

    cheers
    andrejs

  7. #7
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    last post until i hear back - i promise!

    these are the three errors printed before the one above (couldn't seem to get them showing at first)


    Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php on line 352

    Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: 3b in /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php on line 352

    Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home2/qualiue9/public_html/includes/modules/shipping/ozpost.php on line 352


    interestingly enought, the characters 3b in the middle of the second error simply change on each refresh, everything else stays the same until eventually the whole page works.

    andrejs

  8. #8
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    Quote Originally Posted by RodG View Post
    $qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth& length=$parcellength&value=$ordervalue&flags=$flags&host=$HOST&version=$VERSION" ) ;
    think i figured out what it was, was debugging while you were replying. server was responding ok, but i think you made a wee little typo (forgive if i'm wrong here).

    the above code possibly should have read...


    Code:
    $qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth&length=$parcellength&value=$ordervalue&flags=$flags&$host=$HOST&version=$VERSION") ;
    seems to be working now. thanks for your help : )

    PS: yes, seems pretty straight forward. might try it this weekend. thanks again!

    andrejs

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: ozpost shipping module v2.0.7 released

    Quote Originally Posted by ALiepinieks View Post

    the above code possibly should have read...


    Code:
    $qu = $this->_getAPdata($SERVER, "/postage.php?fromcode=" . MODULE_SHIPPING_OZPOST_SPCODE ."&destcode=$dcode&weight=$parcelweight&height=$parcelheight&width=$parcelwidth&length=$parcellength&value=$ordervalue&flags=$flags&$host=$HOST&version=$VERSION") ;
    seems to be working now. thanks for your help : )
    The "$" you added needs to be removed.
    There was an error there, in that a space character crept in, IOW, remove the '$' and close the space.

    That'll take care of one issue.
    The other issue.... Ensure you have cURL *enabled*. The XML is a bit flakey without it (due to 'chunking') . The latest version forces the use of cURL to avoid this problem.

    Cheers
    Rod

  10. #10
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: ozpost shipping module v2.0.7 released

    oh dear. it is only when you look back on things do you realise how stupid you can be.

    i honestly don't know the reason i jumped to that conclusion, but anyway - thanks for correcting me. turned Curl on and voila! all good : )

    cheers again.
    andrejs

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Product dimensions revert to 0 - using ozpost module
    By mpforum in forum General Questions
    Replies: 8
    Last Post: 18 Apr 2014, 09:49 AM
  2. Ozpost and module help
    By janelle in forum Addon Shipping Modules
    Replies: 2
    Last Post: 15 Jun 2012, 09:19 AM
  3. Ozpost Combine shipping !! Possible ?
    By toytemple in forum Addon Shipping Modules
    Replies: 7
    Last Post: 21 Jan 2010, 02:22 PM
  4. ozpost module problems
    By hspark in forum Addon Shipping Modules
    Replies: 19
    Last Post: 7 Dec 2009, 12:44 PM
  5. store pick-ip in ozpost shipping module
    By lazerweb in forum Addon Shipping Modules
    Replies: 2
    Last Post: 29 Jul 2008, 05:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg