• Resolved Harm10

    (@harm10)


    To cope with WP 6.7.1 textdomain load problems I have set up my own WP test site to check several configurations of sites I maintain.
    One of them uses Woocommerce and your plugin to display the cart weight in shopping cart.
    As there are several sites I have created a WP multi site.

    A very weird thing happens for the site in the multi site set-up.
    This is using WP 6.7.1 Woocommerce 9.5.1 and 1.9.1 from your plugin.
    If I do an order and go to the shopping cart the weight is displayed normally. If I reload the page (browser normal option) the weight is replaced by o[‘woo-cart-weight’] is undefined. Pointing to the fact that the shortcode apparently is no longer there?
    If I refresh the page with Ctrl-F5 (so clearing the cache?) the weight is there again.
    This does not happen on my live site which is not a multi site (but also has somewhat older versions of WP and WC).
    I am not using caching plugins and have activated the plugins on the site level (so no network activation).

    Any idea what is wrong here?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Support kozyraola

    (@kozyraola)

    Hi @harm10,

    Please provide a link to the multisite you experience issues with.

    Best regards,

    Thread Starter Harm10

    (@harm10)

    @kozyraola That is not possible. This is a staging environment to check WP 6.7.1 problems with loading text domains. As said I only see it on this multi site. It definitely looks like some caching thing.
    Is WP multi site doing that differently from single site?
    I could temporarily open up one of the sub sites but I do not want to post the URL here.
    Perhaps I can give you some debug data or run some test PHP script for you?

    Plugin Author grola

    (@grola)

    Please paste here a fragment of the code with the used shortcode. Maybe an incorrect apostrophe character was used?

    Plugin Author grola

    (@grola)

    I’m sorry, my response was misleading.

    Could you attach a screenshot containing the mentioned error?

    Thread Starter Harm10

    (@harm10)

    I have 3 images for you but how do I insert them here?
    1. Cart display when entering cart.
    2. Cart display when refreshing browser page
    3. Cart display when doing Ctrl-F5 (clear cache)

    Maybe I can paste the html part from inspect when the shortcode does not work?

    Plugin Author grola

    (@grola)

    You can upload images on image hosting service and paste links here.

    Thread Starter Harm10

    (@harm10)

    How? “here”is not a link? And what do you mean by image hosting service?

    • This reply was modified 2 months, 1 week ago by Harm10.
    Thread Starter Harm10

    (@harm10)

    I think you mean something like this: https://www.imghippo.com/i/1736444597289
    Sorry there are 3 separate links:

    https://www.imghippo.com/i/iRSD8241pg.png

    https://www.imghippo.com/i/hjvP5849KNU.png

    https://www.imghippo.com/i/LJyD8581Stc.png


    (I have never used these kind of platforms)

    • This reply was modified 2 months, 1 week ago by Harm10.
    Plugin Author grola

    (@grola)

    Thank you for the screenshots. Unfortunately, we are unable to reproduce this issue.
    Have the plugin files been modified?
    Were the files from the templates directory in the plugin copied to the theme and modified there?
    Does this issue also occur in the English language version?

    Best ragards
    Grzegorz

    Thread Starter Harm10

    (@harm10)

    The plugin files are not modified. Also I did copy/modify the templates.

    I will try to set-up another test site with the bare necessities and check it out both in my locale as in English.
    I will report back.

    Thread Starter Harm10

    (@harm10)

    @grola I have set-up a new sub site with the bare necessities (see part of WC log below). The problem occurred again. Then I changed the language to english to see the problem persist.
    Before I tried a single site I tested the same thing in browser Chrome. The problem does not occur there!
    My main browser is Firefox (134.0 64 bits).
    So it has something to do with the type of browser? Any idea?
    (As said earlier the live site with older versions of WP and WC is a single site but I tested that in Firefox too)

    WC Version: 9.5.2
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.8.2
    Log Directory Writable: ?
    WP Version: 6.7.1
    WP Multisite: ?
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_GB
    External object cache: –

    Active Plugins (16)

    Advanced Custom Fields: by WP Engine – 6.3.11
    Classic Editor: by WordPress Contributors – 1.6.7
    Classic Widgets: by WordPress Contributors – 0.3
    Contact Form 7: by Takayuki Miyoshi – 6.0.2
    Core Rollback: by Andy Fragen – 1.3.7
    Error Log Viewer by BestWebSoft: by BestWebSoft – 1.1.5
    NS Cloner – Site Copier: by Never Settle – 4.4.7.5
    Really Simple Security: by Really Simple Security – 9.1.4
    Reveal IDs: by Oliver Schl?be – 1.6.1
    Server IP & Memory Usage Display: by Apasionados
    Apasionados del Marketing – 2.1.0

    User Login History: by Er Faiyaz Alam – 2.1.6
    Cart Weight: by Octolize – 1.9.1
    WooCommerce: by Automattic – 9.5.2
    WP Crontrol: by John Blackbourn – 1.17.1
    LightStart – Maintenance Mode, Coming Soon and Landing Page Builder: by Themeisle – 2.6.16
    WP Rollback: by WP Rollback – 2.0.7

    Plugin Author grola

    (@grola)

    Also I did copy/modify the templates.

    Please delete the copied templates and try using the original ones.

    Thread Starter Harm10

    (@harm10)

    Sorry that was a typo: I did NOT copy/modify the templates.

    I also tried Edge and the problem is not there too. So what is different for a web page refresh in Firefox?

    Plugin Author grola

    (@grola)

    Please enable WP_DEBUG and WP_DEBUG_DISPLAY and check if any additional messages are displayed.

    If there are no additional messages, we will need access to the site (e.g., staging) where this issue exists. Please contact us for this purpose here: https://octolize.com/support/.

    Thread Starter Harm10

    (@harm10)

    There are no additional messages to be seen besides the warnings for other plugins that textdomain is loaded too early.

    As I do not want to open up a site to the open net I am hesitant on giving you access.
    I still have no clue why this only happens with this software set-up in browser Firefox. Edge and Chrome are no problem.
    And how can that break your shortcode?
    Speaking of that I tried to search your code for add_shortcode but did not find anything. Is this shortcode generated in a special way? And where is this located? Maybe I can try to do some debugging there myself?

Viewing 15 replies - 1 through 15 (of 27 total)
  • You must be logged in to reply to this topic.