Forum Replies Created

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

    (@yabdali)

    Thank you for the update and for your support.

    Thread Starter yabdali

    (@yabdali)

    I am good, I realized the issue was caused by the code snippet I shared earlier. However, I had turned off your plugin as it was causing issues with Woocommerce, it was not working properly when clicking add to cart and it could be due to ajax support. I use Booking Activities plugin, the add to cart is name book and its supposed to redirect the customer to the product page once the button is clicked on the shop archives page but instead it doesn’t get redirected and nothing get even added to the cart. Therefore, I had to turn it off since I couldn’t find good documentation on how to configure it.

    Thread Starter yabdali

    (@yabdali)

    Some info from the debug log, could it be because I have a snippet in the functions that intercepts cache and disable it for logged users?? The reason I had this done in the past as I found that some pages get cached with logged user info and get indexed by Google!

    20:37:49 102 / wpsc_get_auth_cookies: cookies detected: wordpress_logged_in_abcd_xxxxx
    20:37:49 102 / wpsc_is_caching_user_disabled: true because logged in
    20:37:49 102 / Caching disabled for logged in users on settings page.
    20:37:49 102 / Supercache Late Init: add wp_cache_serve_cache_file to init
    20:37:49 102 / Supercache Late Loader running on init
    20:37:49 102 / ACCEPT: text/html
    20:37:49 102 / wp_cache_get_cookies_values: Login/postpass cookie detected
    20:37:49 102 / wp_cache_get_cookies_values: return: xxxabcd
    20:37:49 102 / supercache dir: ABSPATH/wp-content/cache/supercache/www.capitano.om/
    20:37:49 102 / No Super Cache file found for current URL: ABSPATH/wp-content/cache/supercache/www.xyz.com/index-https.html
    20:37:49 102 / ***********************************************************************************
    20:37:49 102 / * An extra output buffer has been detected. Check your plugins, themes, *
    20:37:49 102 / * mu-plugins, and other custom code as this may interfere with caching. *
    20:37:49 102 / * Late init is enabled. This allows third-party code to run before WP Super Cache *
    20:37:49 102 / * sets up an output buffer. That code may have set up the output buffer. *
    20:37:49 102 / ***********************************************************************************
    20:37:49 102 / In WP Cache Phase 2
    20:37:49 102 / Setting up WordPress actions
    20:37:49 102 / Created output buffer
    20:37:49 102 / wp_cache_get_cookies_values: cached: abcd_123_xxx
    20:37:49 102 / wp_cache_replace_line: changing line $cache_enabled = true; to *$cache_enabled = false;*
    20:37:49 102 / wp_cache_replace_line: writing to ABSPATH/wp-content/cache/123_xyz_xxxx.php
    20:37:49 102 / wp_cache_replace_line: moved ABSPATH/wp-content/cache/123_xyz_xxxx.php to ABSPATH/wp-content/wp-cache-config.php
    20:37:49 102 / wp_cache_disable: disable cache
    20:37:50 102 / DONOTCACHEPAGE defined. Caching disabled.
    20:37:50 102 / wp_cache_maybe_dynamic: returned $buffer
    function prevent_cache_for_logged_in_users() {
    if ( is_user_logged_in() ) {
    // Prevent caching by setting the necessary headers
    nocache_headers();

    // If using a caching plugin like W3 Total Cache or WP Super Cache, set their specific headers
    if ( defined( 'DONOTCACHEPAGE' ) === false ) {
    define( 'DONOTCACHEPAGE', true );
    }

    // For other caching plugins, setting the DONOTCACHEPAGE constant is usually enough
    // However, if you use a caching plugin that requires specific headers, add them here:
    // For WP Super Cache:
    if ( function_exists( 'wp_cache_disable' ) ) {
    wp_cache_disable();
    }

    // For W3 Total Cache:
    if ( function_exists( 'w3tc_pgcache_flush' ) ) {
    w3tc_pgcache_flush();
    }
    }
    }
    add_action( 'template_redirect', 'prevent_cache_for_logged_in_users' );

    function add_noindex_nofollow_to_headers() {
    if ( is_user_logged_in() ) {
    echo '<meta name="robots" content="noindex, nofollow, nosnippet, noarchive">';
    }
    }
    add_action( 'wp_head', 'add_noindex_nofollow_to_headers' );
    • This reply was modified 2 months, 2 weeks ago by yabdali.
    • This reply was modified 2 months, 2 weeks ago by yabdali.
    Thread Starter yabdali

    (@yabdali)

    It is a self hosted on VPS, there is nothing wrong with the server configurations and it used to work fine a while ago. We just noticed this recently and it looks related to the WC updates and new functionality. The server doesn’t do rewrites out of the blue, there are no issues with the other service components and this used to work fine in the past. Just to pinpoint the issue, the woocommerce plugin has the /wc/store/v1/cart hardcoded in many places. Check the attached link of the files which have this hardcoded in the link below. You can use search to find the occurrences /wc/store/v1/cart.
    https://pastebin.com/QU4SRk35#

    Thread Starter yabdali

    (@yabdali)

    This is already there, have you looked at th3 screenshot of the W.C files calling the url which is return 404?

    Thread Starter yabdali

    (@yabdali)

    We use Nginx, not Apache so .htaccess isn’t applicable. Even for Nginx config file, the only rewrite is for the sitemap Urlacher and nothing else!

    Thread Starter yabdali

    (@yabdali)

    I found that Rank Math SEO plugin was overriding the default image titles, so Blocksy is not the cause of the issue. Thanks.

    Thread Starter yabdali

    (@yabdali)

    I think you misunderstood my point, The images or photos already have alt text and title set in the media itself but the theme doesn’t load the default title in the home page but it uses the page title plus a number instead of showing the original title in the tooltip. If you go to the shop page (Experience Hub, you will see that the tooltip shows the right Title value.

    Thread Starter yabdali

    (@yabdali)

    Hi,

    Go to the home page and move the mouse on one of the images of the tours, you will see it says Home 7 for example. Go to the shop page and you will see that in the shop page it shows the exact alt text of the image.

    https://www.capitano.om/

    https://www.capitano.om/experience/

    Thread Starter yabdali

    (@yabdali)

    Thanks, I have got a response from your team about the workaround which seems to fix the problem.

    Thread Starter yabdali

    (@yabdali)

    Replied back via email with the link to the snapshot and the details.

    Thread Starter yabdali

    (@yabdali)

    I submitted a ticket via your website.

    Thread Starter yabdali

    (@yabdali)

    The plugin is Booking Activities. Below is the Github page where the plugin provides a mechanism to move the calendar based on the settings. As I mentioned, I tested the plugin with Kadence and Themeisle.

    https://github.com/bookingactivities/booking-activities/blob/741db4641404df1cc962792e2c1934ef47a94d3a/controller/controller-woocommerce-frontend.php#L1005

    /**
    * Move the add-to-cart form below the product summary
    * @since 1.7.16
    * @version 1.16.5
    */
    function bookacti_move_add_to_cart_form_below_product_summary() {
    global $product;
    if( ! $product ) { return; }
    if( has_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_add_to_cart' ) ) { return; }
    if( ! bookacti_product_is_activity( $product ) ) { return; }
    if( bookacti_get_setting_value( 'bookacti_products_settings', 'wc_product_pages_booking_form_location' ) !== 'form_below' ) { return; }

    $priority = has_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart' );
    if( $priority === false ) { return; }

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', $priority );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_template_single_add_to_cart', 5 );

    add_action( 'woocommerce_before_add_to_cart_form', function() { echo '<div class="bookacti-wc-fullwidth-cart-form">'; } );
    add_action( 'woocommerce_after_add_to_cart_form', function() { echo '</div>'; } );
    }
    add_action( 'woocommerce_before_single_product_summary', 'bookacti_move_add_to_cart_form_below_product_summary', 10 );
    Thread Starter yabdali

    (@yabdali)

    Sure, here are the details. Please note that JetPack is almost disabled except for Blaze. https://imgur.com/F4bLqNP

    Advanced Editor Tools Version 5.9.2 by Automattic | Auto-updates disabled
    Async JavaScript Version 2.21.08.31 by Frank Goossens (futtta) | Auto-updates enabled
    Beaver Builder Addons by WPZOOM Version 1.3.6 by WPZOOM | Auto-updates enabled
    Beaver Builder Plugin (Lite Version) Version 2.8.3.2 by The Beaver Builder Team | Auto-updates enabled
    Booking Activities Version 1.16.13 by Booking Activities Team | Auto-updates enabled
    CDN Enabler Version 2.0.8 by KeyCDN | Auto-updates disabled
    Checkout Field Editor and Manager for WooCommerce Version 2.2.22 by Acowebs | Auto-updates disabled
    Classic Editor Version 1.6.4 by WordPress Contributors | Auto-updates disabled
    Classic Widgets Version 0.3 by WordPress Contributors | Auto-updates disabled
    Cloudflare Version 4.12.7 by Cloudflare, Inc. | Auto-updates disabled
    Code Snippets Version 3.6.5.1 by Code Snippets Pro | Auto-updates enabled
    Custom Product Tabs for WooCommerce Version 1.8.5 by Code Parrots | Auto-updates enabled
    Disable Cart Fragments Version 2.3 by Optimocha | Auto-updates disabled
    FluentSMTP Version 2.2.80 by FluentSMTP & WPManageNinja Team | Auto-updates disabled
    Font Awesome Version 4.5.0 by Font Awesome | Auto-updates disabled
    Health Check & Troubleshooting Version 1.7.1 by The www.remarpro.com community | Auto-updates enabled
    Heartbeat Control by WP Rocket Version 2.0.1 by WP Rocket | Auto-updates enabled
    Jetpack Version 13.6 by Automattic | Auto-updates enabled
    Kadence WooCommerce Email Designer Version 1.5.13 by Kadence WP | Auto-updates enabled
    Maps Widget for Google Maps Version 4.26 by WebFactory Ltd | Auto-updates enabled
    Modula Version 2.8.16 by WPChill | Auto-updates disabled
    Ninja Forms Version 3.8.8 by Saturday Drive | Auto-updates disabled
    PDF Invoices & Packing Slips for WooCommerce Version 3.8.6 by WP Overnight | Auto-updates enabled
    Rank Math SEO Version 1.0.224 by Rank Math | Auto-updates disabled
    Regenerate Thumbnails Version 3.1.6 by Alex Mills (Viper007Bond) | Auto-updates enabled
    Schema & Structured Data for WP & AMP Version 1.34.2 by Magazine3 | Auto-updates disabled
    ShortPixel Critical CSS Version 1.0.4 by ShortPixel | Auto-updates disabled
    Site Kit by Google Version 1.131.0 by Google | Auto-updates enabled
    Smart Slider 3 Version 3.5.1.23 by Nextend | Auto-updates enabled
    Super Page Cache for Cloudflare Version 4.7.13 by Optimole | Auto-updates disabled
    UpdraftPlus - Backup/Restore Version 1.24.4 by UpdraftPlus.Com, DavidAnderson | Auto-updates disabled
    WooCommerce Version 9.1.4 by Automattic | Auto-updates enabled
    WooCommerce Product Dependencies Version 1.2.8 by SomewhereWarm | Auto-updates enabled
    WP Crontrol Version 1.17.0 by John Blackbourn | Auto-updates disabled
    WP OPcache Version 4.2.0 by nierdz | Auto-updates disabled
    WP YouTube Lyte Version 1.7.23 by Frank Goossens (futtta) | Auto-updates enabled
    Yoast Duplicate Post Version 4.5 by Enrico Battocchi & Team Yoast | Auto-updates enabled
    • Active Theme
    • Name
    • Neve (neve)
    • Version
    • 3.8.9
    • Author
    • ThemeIsle
    • Author website
    • https://themeisle.com
    • Parent theme
    • None
    • Theme features
    • core-block-patterns, hfg_support, widgets-block-editor, post-thumbnails, align-wide, automatic-feed-links, border, custom-background, custom-logo, custom-spacing, custom-units, customize-selective-refresh-widgets, editor-color-palette, fl-theme-builder-footers, fl-theme-builder-headers, fl-theme-builder-parts, header-footer-elementor, html5, lifterlms-sidebars, lifterlms, link-color, service_worker, starter-content, title-tag, menus, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets
    • Theme directory location
    • /var/www/html/wp-content/themes/neve
    • Auto-updates
    • Enabled
    Thread Starter yabdali

    (@yabdali)

    With which PHP version do you have the latest Pods framework working fine on WP 6.6? Mine is below if this makes any difference!

    PHP version 8.2.20
    PHP SAPI fpm-fcgi

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