Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Can you show me a screenshot at the point it occurs?

    In chrome, open View > Developer > Console. See if errors appear there and screenshot those too.

    Hi, I got same problem, removed old methods and updated the plugin with last version.
    I’m tried add news shipping zone, and when I click in save changes nothing happens.
    Tried edit “rest of world” zone, adding free shipping or flat rate and nothing happens too.

    Always stay in this image: https://www.awesomescreenshot.com/image/1335657/47d56916c37e6c576943813fa6aee141

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    See my post above.

    Hi Mike,

    Not appear any error on console, but I checked my database and tables aren’t created.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Try deactivating and reactivating woocommerce.

    I’ve got the same issue. Deactivating & reactivating Woocommerce plugin didn’t help.

    In the console I see a successful AJAX call:

    REQUEST HEADERS:

    POST /mydomain.fi/wp-admin/admin-ajax.php?action=woocommerce_shipping_zone_add_method HTTP/1.1
    Host: localhost
    Connection: keep-alive
    Content-Length: 64
    Accept: application/json, text/javascript, */*; q=0.01
    Origin: https://localhost
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Referer: https://localhost/mydomain.fi/wp-admin/admin.php?page=wc-settings&tab=shipping&zone_id=1
    Accept-Encoding: gzip, deflate
    Accept-Language: fi-FI,fi;q=0.8,en-US;q=0.6,en;q=0.4
    Cookie: [cookies removed]

    RESPONSE HEADERS:

    HTTP/1.1 200 OK
    Date: Tue, 21 Jun 2016 07:40:04 GMT
    Server: Apache/2.4.7 (Ubuntu)
    X-Powered-By: PHP/5.5.9-1ubuntu4.17
    Access-Control-Allow-Origin: https://localhost
    Access-Control-Allow-Credentials: true
    X-Robots-Tag: noindex
    X-Content-Type-Options: nosniff
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    X-Frame-Options: SAMEORIGIN
    Content-Length: 66
    Keep-Alive: timeout=5, max=100
    Connection: Keep-Alive
    Content-Type: application/json; charset=UTF-8

    RESPONSE BODY

    {"success":true,"data":{"instance_id":0,"zone_id":1,"methods":[]}}

    Forgot to mention steps to reproduce:
    1. Woocommerce > Settings > Shipping
    2. Select a Zone, Finland for instance
    3. <no shipping methods defined>
    4. Click Add shipping method and choose f. ex. Flat Rate and hit Add shipping method

    In my case I had the Table Rate Shipping plugin enabled before, but I have now deactivated it and will start using the built-in feature.

    I think I found the cause. A few WC tables are missing (seen in the wc-status page):

    • woocommerce_sessions
    • woocommerce_shipping_zone_methods
    • woocommerce_payment_tokens
    • woocommerce_payment_tokenmeta

    View post on imgur.com

    I remember doing the Database upgrade process after WP 4.5.2 and WC 2.6 updated. Something has gone wrong there or what do you think?

    How could I add the missing tables correctly?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Try deactivating and reactivating woocommerce.

    If that doesn’t work your MYSQL user cannot create the tables, so its either permissions or there is an error (check logs/ask host).

    The issue got resolved by granting more permission for the DB user and then deactivating and reactivating.

    Thanks for quick solution!

    It might be worth a little notification in the UI if the table creation fails though. That would have saved you this trouble for instance. ??

    I include all the permissions to the database user, deactivated and activated Woocommerce plugin but it broke my store/admin, had to do a restore to last backup. So I installed Woocommerce on my local development, made a backup from 13 Woocommerce tables by exporting and then I removed the old tables in store production and imported the tables already set. Everything returned to work perfectly.

    Thread Starter mayurahuja

    (@mayurahuja)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Cannot add anything to shipping zones’ is closed to new replies.