Web Alchemist
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] customers seeing other customers details at checkout@amyskea if you are using Elementor then go to Elementor settings > Features > Element Caching and Inactive this and see if you got it fixed.
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Fatal error: \Logging\Logger\WooCommerceLoggerI got a similar error.As I saw PSR I thought, it’s something related to PSR module. I have enabled PHP PSR module via my cPanel to see if I have any luck and that worked.
This was my error.
PHP Fatal error: Declaration of WooCommerce\WooCommerce\Logging\Logger\WooCommerceLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void in /...../wp-content/plugins/woocommerce-paypal-payments/modules/woocommerce-logging/src/Logger/WooCommerceLogger.php on line 58
@oumz99 – The elementor gave 3.16.2 version with fixing the widget missing issue. You can remove the code I provided above and just update the elementor to 3.16.2 and widgets will be back again.
@novopay @ashleyjayko It seems an issue with the Elementor 3.16.0 update has something to do with their widget_register function (As per Git discussion).
Solution 1 (Safest)
Revert Back to 3.15.3Solution 2 (If you would like to keep running 3.16.0 version)
Add the code below to your theme or child theme’s function.php file.
Until the elementor gives a solution, this can be used.if (!function_exists('elementor_widgets_init')) { function elementor_widgets_init() { if (!did_action('elementor/loaded')) { return; } do_action('elementor/widgets/widgets_registered', Elementor\Plugin::$instance->widgets_manager); } } add_action('init', 'elementor_widgets_init');
@oumz99 try one of the solutions below. The second solution worked for me on 3.16.0 and 3.16.1
Solution 1 (Safest)
Revert Back to 3.15.3Solution 2 (If you wou8ld like to keep running 3.16.0 version)
Add below code to your theme or child theme’s function.php file.if (!function_exists('elementor_widgets_init')) { function elementor_widgets_init() { if (!did_action('elementor/loaded')) { return; } do_action('elementor/widgets/widgets_registered', Elementor\Plugin::$instance->widgets_manager); } } add_action('init', 'elementor_widgets_init');
I noticed discussions on Git related to the deprecated
elementor/widgets/widgets_registered
action and theregister_widget_type
functions. In light of this, I attempted to restore their functionality while using 3.16.0.I had some custom widgets which were affected by the 3.16.0. To address this issue, I applied the following code to my theme’s
functions.php
file. I then provided the custom widget class name as an argument, and this approach successfully reinstated my missing widgets.If you encounter similar issues with missing widgets, you can consider implementing the following code in your theme or child theme’s
functions.php
file.if (!function_exists('register_elementor_widget_type')) { function register_elementor_widget_type($widget_class) { add_action('elementor/widgets/widgets_registered', function ($widgets_manager) use ($widget_class) { $widgets_manager->register_widget_type(new $widget_class()); }); } } if (!function_exists('elementor_widgets_init')) { function elementor_widgets_init() { if (!did_action('elementor/loaded')) { return; } do_action('elementor/widgets/widgets_registered', Elementor\Plugin::$instance->widgets_manager); } } add_action('init', 'elementor_widgets_init');
Please be aware that I’m not an expert, so if you identify any vulnerabilities in this code, I encourage you to point them out and exercise caution when using it. While this solution worked in my scenario, it may not be universally effective. Nonetheless, it serves as a temporary workaround until Elementor provides an official update to address this issue.
Forum: Fixing WordPress
In reply to: Dashboard All Messed Up After UpdateNot sure what caused the issue.
Solution One – as @boblindner explained, changing the PHP version to 7.4 worked for me. But make sure double check with plugins and theme compatibility.
Solution Two – Adding the below line to “wp-config.php” also worked for me.
define( 'CONCATENATE_SCRIPTS', false );
Add it above the /* Add any custom values between this line and the “stop editing” line. */ line.
In WordPress, by default, JavaScript and CSS files used in the admin area are concatenated into a single file to reduce the number of HTTP requests and potentially improve loading times. However, for some reason concatenating those files caused some issues with the loading of load-styles.php.- This reply was modified 1 year, 7 months ago by Web Alchemist.
Forum: Plugins
In reply to: [WooCommerce] Sliding side panel has dissapearedFollow this mate.
Add this to the theme’s / child theme’s function.php file and it will fix the issue for now.
function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
Forum: Plugins
In reply to: [WooCommerce] Slide in Basket not showing content just blankAs per the GIT discussion woo have done some change to increase performance and it affected the elementor menu cart.
They mentioned a fix there.
https://github.com/woocommerce/woocommerce/pull/38736
https://github.com/woocommerce/woocommerce/pull/35530For me, I used the below script to enqueue the wc-cart-fragments on the front end. (I added it to the theme’s function.php)
function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
Forum: Plugins
In reply to: [WooCommerce] Cart empty after products are addedThere’s a discussion on GIT.
https://github.com/woocommerce/woocommerce/pull/38736
https://github.com/woocommerce/woocommerce/pull/35530I followed the instructions and the below script worked for me.
Add this to the theme’s function.php file.function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
- This reply was modified 1 year, 9 months ago by Web Alchemist.