• Resolved thebasty

    (@thebasty)


    Hi everyone,

    the variable product prices on a shop I’m trying to set up are not being saved. Just the prices. The variations work OK.

    Here’s the system status report:

    ### WordPress Environment ###
    
    Home URL: https://vanilla.elitetactical.ro
    Site URL: https://vanilla.elitetactical.ro
    WC Version: 2.5.5
    Log Directory Writable: ?
    WP Version: 4.5.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: ro_RO
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.19
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 5000
    SUHOSIN Installed: ?
    MySQL Version: 5.6.26
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.5.5
    :
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_termmeta: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by WooThemes – 2.5.5
    
    ### Settings ###
    
    Force SSL: –
    Currency: RON (lei)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #4 - /shop/
    Cart: #5 - /cart/
    Checkout: #6 - /checkout/
    My Account: #7 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Twenty Sixteen
    Version: 1.2
    Author URL: https://www.ads-software.com/
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –

    I have contacted my hosting provider regarding this issue, informed them about https://docs.woothemes.com/document/problems-with-large-amounts-of-data-not-saving-variations-rates-etc/ and it seems that everything is set up on their side.

    Would you be so kind to point out any other potential areas I must investigate?

    Thank you.

    https://www.ads-software.com/plugins/woocommerce/

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

    (@mikejolley)

    “the variable product prices on a shop I’m trying to set up are not being saved. Just the prices.”

    You say they are not saved, then they are? :p

    Can you provide a screenshot showing the field not saving for you.

    Thread Starter thebasty

    (@thebasty)

    I’m sorry, I formulated that wrong. I meant to emphasize that the prices are the only ones not being saved.

    Here’s a link to a screenshot:
    click me

    Thank you.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Do you have PHP error logs on this server you can check? I wonder if the ajax save is being blocked.

    Thread Starter thebasty

    (@thebasty)

    I’m on a shared hosting server with Cpanel 56.0.21. I have looked for a PHP error log, but couldn’t find it. Maybe I am missing something.

    Should I contact the hosting company (they’re very responsive) and ask them to look for something in particular?

    Thread Starter thebasty

    (@thebasty)

    I found the Cpanel error log. It is empty. I have a couple of error logs created in the wordpress root folder, but I think that’s because I set WP_DEBUG to true. The only logged error is

    PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data’ to ‘-1’ in php.ini and use the php://input stream instead. in Unknown on line 0

    I encountered the same problem, i solved it by realizing my mistake.
    i have to set both price and manual price to let it save.

    As far i know, you have to set variation price as well as manual price below to get it working.

    and you not setting manage stock?

    Thread Starter thebasty

    (@thebasty)

    I am not sure I understand the difference between price and manual price. I see no option for manual price.

    Anyway, it seems that now, either caused by me fiddling about or by something else, no variation data is being saved. Nothing.

    I disabled MOD_SECURITY, no joy.

    I also forgot to mention that WP Submit protect is installed and I got no warnings so far.

    Thread Starter thebasty

    (@thebasty)

    I have tested a new vanilla install on a different hosting provider, this time without SUHOSIN installed and PHP 5.4.45. Everything works perfectly.

    At this time all clues point at a problem on the hosting provider’s side.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thanks for sharing! What host was it?

    Thread Starter thebasty

    (@thebasty)

    A local Romanian host.

    It seems all the issues were linked to the Suhosin values suhosin.post.max_totalname_length & suhosin.request.max_totalname_length. They were unable to bump them up to 65535, which was too high of a value for a shared environment.

    Everything else was set up according to Woocommerce guidelines.

    They offered to disable Suhosin and it all works fine now. What remains is to assess the risks involved.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Product variations – prices are not being saved’ is closed to new replies.