Stefano
Forum Replies Created
-
Hi @m_uysl, mmmh I didn’t understand exactly your question.
When I enable the plugin with all enabled such as page cache, file css and js optimization, all blocks that do a fetch request with WP REST API, use the url without /wp-json/ getting a 404 error.
Instead with plugin deactivated the fetch url is correct with /wp-json/ and all work fine.See following images
@m_uysl ok great! Thank you!
Hi @m_uysl it seems to work perfectly! Thanks!
Can I ask a last question?
I found another problem… often when I click ‘UPDATE ALL SETTINGS AND CLEAR ALL CACHE’ the settings are saved but the cache is not emptied, I have to force the emptying of the cache in the top bar of wordpress. Also could you add all the cache emptying buttons that are in the WP bar also in a section of the plugin page? Not everyone has the WP bar.
ThanksOk perferct, thank you!
But in this way I’ll serve a dynamic version for all page cause the cart icon is visible on all pages… or not?
This is the code that generates cart icon:
function luxuryconcept_mini_cart_header() {
if ( luxuryconcept_is_woocommerce_activated() ) {
if ( ! is_cart() and ! is_checkout() ) {
global $woocommerce;
$count = $woocommerce->cart->cart_contents_count;
?>
<ul class="header__mini_cart">
<li class="btnOpenCart_container">
<button aria-label="<?php esc_html_e( 'Open Cart', 'luxuryconcept' ) ?>" data-toggle="dropdown"
aria-expanded="false" id="btnOpenCart" class="mini_cart_button">
<svg class="at-icon icon-32 no-pointer-events" fill="none">
<use href="#cart-outline"></use>
</svg>
</button>
<span class="badge-cart-items-count"><?php echo esc_html( $count ); ?></span>
</li>
<?php if ( esc_attr( get_theme_mod( 'luxuryconcept_cart_type', LC_DEFAULT_CART_TYPE ) ) == 'classic' ) : ?>
<li class="li__classic_cart">
<div class="classic_shopping_cart top-chevron-border">
<?php the_widget( 'WC_Widget_Cart', 'title=' ); ?>
</div>
</li>
<?php endif; ?>
</ul>
<?php
}
}
}where
<span class="badge-cart-items-count"><?php echo esc_html( $count ); ?></span>is the issue.Hi @m_uysl,
here https://www.luxuryconcept.website/
If you add the product into the cart it works fine, the header cart icon is updated correctly, but when you change the page, it returns to 0 products.
Without cache it works fine.
Thanks
Hi @m_uysl thank you for your fast reply!
Ok for the moment I’ll disable the feature, do you know when will be an update for fix the issue?
What exactly does disabling this option change?Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets PagePerfect, thank you.
I thought it was not a critical error but in development it is really annoying and could also conflict with additional plugins or blocks.Have a nice day
Stefano
Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets PageI tried to disable and enable again generateblocks and these errors into console debug appears:
Store "core/interface" is already registered. data.min.js?ver=7c62e39de0308c73d50cwp.editPost.PluginSidebar is deprecated since version 6.6. Please use wp.editor.PluginSidebar instead. deprecated.min.js?ve…84915c5e8ae38964c:2select( 'core/edit-site' ).__experimentalGetPreviewDeviceType is deprecated since version 6.5 and will be removed in version 6.7. Please use select( 'core/editor' ).getDeviceType instead. deprecated.min.js?ve…84915c5e8ae38964c:2I don’t know if they are in the plugin code, maybe they are part of wordpress core, but there is something in the plugin that triggers these errors.
Forum: Plugins
In reply to: [GenerateBlocks] Grid block not ResponsiveOk great, sorry I thought that is automatically responsive.
Thanks
Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets PageI created a fresh WP installation, same error.
Astra or GeneratePress Theme, the error appears only with Generateblock plugin enabled.
I don’t know if the wp.editPost.PluginSidebar error is related but I consider the first PHP error.
WP_DEBUG = true
WP v6.6.1
PHP v8.3.6
Wamp Server v3.3.5 on Windows 11Let me know
Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets Pagemmmh very strange… Yes I disabled all plugins except generateblocks. I’ll try to make a local fresh WP installation and I’ll try It again.
I’ll let you know in a few time.
Forum: Plugins
In reply to: [GenerateBlocks] Error on Admin Widgets PageYes, block widgets. but I tried to delete all widgets, save and refresh the page and it’s the same…
- This reply was modified 2 years ago by Stefano.