Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Thread Starter aduwow

    (@aduwow)

    Hi again,

    Just a quick update that might help with the investigation: I found a temporary workaround by creating a Gallery with only one image. In this case, the lightbox works perfectly.

    This confirms that the plugin is working fine, but it currently only looks for gallery-specific containers or classes. It would be fantastic if the plugin could also support single images inserted via the standard “Add Media” button in the Classic Editor.

    Thank you!

    Thread Starter aduwow

    (@aduwow)

    Hi,

    I wanted to follow up on my previous report regarding the _load_textdomain_just_in_time notice.

    After further testing, I found something important:

    • The issue occurred with a version labeled:
      Flying Analytics v2.0.3 (by FlyingPress)
      This version includes a /vendor/meta-box/ directory and appears to load Meta Box too early, triggering the translation warning.
    • I then reinstalled the plugin directly from ww.wp.xz.cn:
      Flying Analytics v2.0.0 (by WP Speed Matters)
      → The issue no longer occurs.

    This suggests the problem may be specific to a different build or distribution of the plugin (possibly bundled or modified), rather than the official ww.wp.xz.cn version.

    Thank you.

    Thread Starter aduwow

    (@aduwow)

    Hello,

    Thank you very much for your quick and detailed response — I really appreciate the time and effort you took to look into this.

    After rechecking the issue more carefully, I found that the problem only occurs under a specific combination of plugins and settings, not with Ocean Social Sharing alone.Updated findings

    The issue happens when both of the following are enabled at the same time:

    If I disable Flying Scripts or turn off HTML Minify in LiteSpeed Cache, the SVG icons render correctly again and no <path> attribute d errors appear in the console.

    This suggests the issue is likely related to how these optimization plugins interact during HTML/JS processing, rather than a direct problem with the SVG output from Ocean Social Sharing itself.Additional note

    I completely understand that this behavior may be outside the direct scope of Ocean Social Sharing support, especially since it involves the interaction of multiple third-party optimization plugins. My intention was mainly to share my findings in case they are helpful or relevant for future reference.

    Thanks again for the fast response and for maintaining the plugin.

    Thread Starter aduwow

    (@aduwow)

    Hi,

    Thanks for your previous response. Sorry for the delayed response.

    After some additional testing, I’ve identified the root cause of the JavaScript error
    “Uncaught TypeError: Converting circular structure to JSON” that occurs when trying to add Tags on the All Reviews page.

    The issue only happens when the plugin Variation Swatches for WooCommerce (woo-variation-swatches) is active.
    When I deactivate it, the error disappears, and everything works as expected.

    It seems that the select2 element used by CusRev for review tags conflicts with the version or instance of select2 initialized by the Variation Swatches plugin. As a result, the JSON.stringify() call inside CusRev’s all-reviews.js receives a circular reference object (most likely due to an attached DOM element).

    Would you like me to contact the Variation Swatches for WooCommerce team about this,
    or is it something your team would prefer to handle compatibility-wise?

    Please let me know how you’d like to proceed.
    Thank you again for your help and for maintaining such a great plugin.

    Thread Starter aduwow

    (@aduwow)

    Thanks for your reply.

    How are you adding the cookie? I’d like to clarify a bit more:

    • When I reload the same page, the cache hits correctly after the first visit.
    • However, when I close the browser and then open it again to visit the same page, the cache misses again on the first load — even though the wcpbc_country cookie still exists and hasn’t changed.

    Here are my current configurations:

    • I have added wcpbc_country to the Vary Cookies list in LiteSpeed Cache settings.
    • I noticed that this line was automatically added to the .htaccess file:
    RewriteRule .? - [E="Cache-Vary:wcpbc_country"]

    → In this case, cache always misses on the first visit (even with the same cookie), then hits on reload.
    → The good thing is: I never get cache from the wrong country.

    • If I manually add this rule to the .htaccess file:
    <IfModule LiteSpeed>
    RewriteRule .* - [E=cache-vary:wcpbc_country]
    </IfModule>
    • → Then the first visit also misses (as expected), and re-opening the browser gives a cache hit, but occasionally, I still get cache from a different country.

    To confirm, I also created a fresh test site with only:

    • LiteSpeed Cache
    • WooCommerce
      Then I tested using another plugin: CURCY – WooCommerce Multi Currency Premium,
      which has built-in cookies (wmc_current_currency, wmc_current_currency_old).
      Unfortunately, the behavior is the same — cache miss on the first visit after reopening the browser.

    So it seems that even when the cookie exists, LiteSpeed/QUIC.cloud treats the first request after a new browser session as a MISS.

    Do you have any recommendation on how to make this more consistent (e.g., persistent HIT when cookie exists)?

    Thanks again for your continued help.

    Thread Starter aduwow

    (@aduwow)

    Here is my report number as requested: EBSOXSXZ

    Please let me know if you need any additional information or specific tests from my side.

    Thank you for your support!

    Thread Starter aduwow

    (@aduwow)

    Thanks for the clarification earlier about using a cookie-based vary instead of headers.

    I’ve checked the WooCommerce Price Based on Country plugin, and it doesn’t seem to set a country cookie by default.
    So I created a custom cookie for it as follows:

    add_action('init', function() {
    if (function_exists('wcpbc_get_woocommerce_country')) {
    $country = wcpbc_get_woocommerce_country();

    if (!empty($country)) {
    if (!isset($_COOKIE['wcpbc_country']) || $_COOKIE['wcpbc_country'] !== $country) {
    setcookie('wcpbc_country', $country, time() + 86400 * 7, '/');
    $_COOKIE['wcpbc_country'] = $country;
    }
    }
    }
    }, 5);

    I also added wcpbc_country in LiteSpeed Cache → Cache → Vary Cookies.
    When testing, the cookie is correctly set per country and reflects the right currency.

    However, I noticed the following behavior:

    • On the first visit, cache is MISS (as expected, cookie just created).
    • On subsequent visits from the same location and same browser (with cookie still valid), cache is still MISS, not HIT.
    • This happens even when I reopen the browser and access the same page again (e.g., mysite.com/shop/ from the UK with wcpbc_country=UK).

    I expected the cache to MISS once when the cookie is first set, then HIT afterward for the same cookie value.
    But it keeps regenerating a new MISS each time, even though the cookie remains unchanged. My questions:

    1. Is there something else I need to configure in LiteSpeed or QUIC.cloud to ensure the cache HITs for subsequent requests with the same cookie?
    2. Does the setcookie() placement (currently on the init hook) affect cache generation timing?
    3. Is there a known limitation with QUIC.cloud CDN when varying by custom cookie values?
    4. Alternatively, could you suggest a WooCommerce geo-pricing plugin that’s known to work seamlessly with LiteSpeed Cache + QUIC.cloud CDN (using cookie vary)?

    Thank you very much for your time and guidance!

    Thread Starter aduwow

    (@aduwow)

    Hi @loiccloudinary ,

    I’ve just updated to version 3.2.13, and I can confirm that the issue has been resolved — thank you for the quick fix!

    I’ve also noticed a separate issue related to the default WooCommerce product gallery when dealing with variable products. To keep things clear and easier for support, I’ll open a new ticket for that matter.

    You may close this ticket now.

    Thread Starter aduwow

    (@aduwow)

    Thank you for your reply.

    Yes, I am on a shared hosting environment. My hosting provider has confirmed that my site is actually associated with two different IP addresses:

    • One IP is the origin IP where my domain resolves.
    • Another IP is the server’s main outbound IP that may be used for outgoing requests.

    It seems that QUIC.cloud may only be auto-whitelisting the origin IP, while the server’s main outbound IP is not included. Could you please confirm if QUIC.cloud needs both IPs to be whitelisted in such cases?
    If so, I can provide the exact IP addresses.

    Thank you very much for your assistance.

    Thread Starter aduwow

    (@aduwow)

    Hello Ali,

    Thank you for the quick update. I have just updated Mega Forms to the latest version 1.6.4, and I’m happy to confirm that the _load_textdomain_just_in_time warning for the megaforms domain has been resolved. The error no longer appears in the debug.log or Query Monitor.

    I greatly appreciate your prompt and effective support in addressing this issue!

    Thread Starter aduwow

    (@aduwow)

    Hi Ali,
    Thank you for following up. On my test site, I am only using the following plugins:

    Mega Forms (version 1.6.3)
    WP Debugging (version 2.12.2)
    Query Monitor (version 3.19.0)

    I am also using the default Twenty Twenty-Three theme to rule out theme-related conflicts. I set up a clean test site at https://unevencellar.s6-tastewp.com/wp-admin, and the _load_textdomain_just_in_time warning for the megaforms domain still appears in the debug.log and via Query Monitor. You can access the site to investigate directly using the following credentials:

    Username: admin
    Password: L0_ghklCSSE

    Please note that the test site will automatically expire in 1 day, 23 hours, and 41 minutes from now (August 31, 2025, 6:08 PM +07). Given that I’m using a minimal setup with no additional plugins or custom themes, I don’t believe this is caused by a conflict with other plugins. The error persists in this isolated environment.
    Here’s the error from debug.log for reference:

    [31-Aug-2025 10:59:47 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the megaforms domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /s6-unevencellar/wordpress/wp-includes/functions.php on line 6121

    If you need any additional information, please let me know.

    Thread Starter aduwow

    (@aduwow)

    Hey Ali,

    Thank you for your response. I have updated Mega Forms to the latest version (1.6.3), but the _load_textdomain_just_in_time warnings are still appearing. I’ve also tested this on another website, and the same issue occurs. The warnings are visible in the debug.log file and through the Query Monitor plugin.

    Here’s an example of the error from debug.log:

    [30-Aug-2025 03:27:12 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>megaforms</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /home/wsgcpl/public_html/wp-includes/functions.php on line 6121

    I’m running WordPress 6.8.1, and all other plugins/themes are up to date.

    Thanks,
    Joseph

    I am also experiencing a similar issue, with the error:
    POST https://domain.com/?wc-ajax=wpcsn 500 (Internal Server Error).

    It seems that @zendev’s assumption might be correct because I recently had an order that was canceled as well.

    Thread Starter aduwow

    (@aduwow)

    Hi @markwolters

    Thank you for your prompt response. As I mentioned earlier, the plugin works well with the shortcode. However, the issue arises when using the Seamless Integration mode in the Advanced Woo Search plugin, which automatically replaces all search forms without needing to use a shortcode. The problem seems a bit complex, and I understand if it cannot be resolved since it involves another plugin. Nonetheless, your plugin already does a fantastic job with everything else.

    Thanks again!

    Thread Starter aduwow

    (@aduwow)

    Thank you so much for quickly resolving the issue on iPhone! I really appreciate your prompt support and effort in addressing the problem.

Viewing 15 replies - 1 through 15 (of 33 total)