• Resolved warren3i

    (@warren3i)


    WC Version: 2.1.6
    WC Database Version: 2.1.6
    WP Version: 3.8.1
    Hello, firstly let me say ‘thank the lord you made this plugin’ all the other weight based plugins dont work and yeh you can downgrade but then you loose all the new woo features!

    when i choose a country to ship to i was getting this error
    Fatal error: Call to undefined function bw_trace2() in /home/teekingc/public_html/PLASTISTEELL.CO.UK/wp-content/plugins/oik-weightcountry-shipping/oik-weightcountry-shipping.php on line 155
    so i commented it out line 155
    // bw_trace2();
    i then get the same erro but for line 156 so i comment this out
    // bw_backtrace();

    the plugin now works for me!!!!
    but every now and again the page will refresh to a blank white page, or it will throw the error
    Warning: in_array() expects parameter 2 to be array, string given in /home/teekingc/public_html/PLASTISTEELL.CO.UK/wp-content/plugins/oik-weightcountry-shipping/oik-weightcountry-shipping.php on line 192

    this is the code
    if (in_array($package['destination']['country'], $this->settings['countries'.$counter]))

    I see this plugin was only uploaded 16 hours ago, and already 20 downloads! your gonna fill the hole in the market
    thank you!

    https://ww.wp.xz.cn/plugins/oik-weightcountry-shipping/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bobbingwide

    (@bobbingwide)

    Hi Warren3i, the bw_trace2() and bw_backtrace() calls were debugging stuff that I forgot about. I’ve removed then from v1.0.4

    The logic is basically unchanged from the version here
    http://ww.wp.xz.cn/support/topic/new-plugin-for-testing-for-woocommerce-21

    Regarding the Warnings. I did make one change on the previous line. I thought perhaps that you had a country group without any countries. But I have been unable to recreate the problem so far.

    BTW. The code does produce quite a few Notify messages when WP_DEBUG is true. I haven’t spent much time fixing that.

    Plugin Author bobbingwide

    (@bobbingwide)

    The Fatal error should now be fixed in version 1.0.4

    Thread Starter warren3i

    (@warren3i)

    thanks for resolving the issue quickly, your right i did have a empty country group (ooops)
    have tested in chrome, ie and Firefox and i cannot recreate the errors, i am using all the latest updates on woo and wp and confirm this plugin works 100%
    Do you accept donations?

    Plugin Author bobbingwide

    (@bobbingwide)

    Glad it’s working for you.

    Each plugin on ww.wp.xz.cn has a donations link.
    Mine is http://www.oik-plugins.com/oik/oik-donate/

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Errors’ is closed to new replies.