florisb
Forum Replies Created
-
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] Issues with coupons on checkoutHi @niklasinpsyde,
Thanks for your quick reply! We are using wpackagist for plugin installs so if you’re releasing the update next week I’ll just disable the creditcard component for now and re-activate after the update.
Kind Regards,
Floris BoersForum: Plugins
In reply to: [Mollie Payments for WooCommerce] Issues with coupons on checkoutHi @niklasinpsyde,
Any insights as to when the fix for the 100% coupon will be implemented?
Kind Regards,
Floris@jrevillini You’re welcome! You should probably enqueue the CSS in a neater manner though, I was in a bit of a hurry when writing this ??
Problem seemed to be that Elementor changed its div structure a bit (at least for columns) and that the JS didn’t get added somehow, which might have to do with jquery migrate being removed by latest WP-Rocket versions, didn’t look further into it because of shortage of time.
Forum: Plugins
In reply to: [Lazy Load Elementor Background Images] Now working on my site@zc-web If you need a temporary fix, add following snippet to functions.php or via the code snippets plugin (https://nl.www.ads-software.com/plugins/code-snippets/) and add the class ‘lazy-bg’ to the sections and columns you need to have lazyloaded background images on, I whipped this up today because a client needed it.
add_action( 'elementor/frontend/the_content', function($content) { return preg_replace( [ '/(lazy-bg)/m', ], ' $1 lazyelementorbackgroundimages ', $content ); } ); // inline scripts via wp_add_inline_script() add_action('wp_enqueue_scripts', function() { $script = "jQuery( function ( $ ) { if ( ! ( window.Waypoint ) ) { // if Waypoint is not available, then we MUST remove our class from all elements because otherwise BGs will never show $('.lazyelementorbackgroundimages').removeClass('lazyelementorbackgroundimages'); if ( window.console && console.warn ) { console.warn( 'Waypoint library is not loaded so backgrounds lazy loading is turned OFF' ); } return; } var lazyelementorbackgroundimages_checkup = function () { $('.lazyelementorbackgroundimages').each( function () { var \$element = $( this ); new Waypoint({ element: \$element.get( 0 ), handler: function( direction ) { //console.log( [ 'waypoint hit', \$element.get( 0 ), $(window).scrollTop(), \$element.offset() ] ); \$element.removeClass('lazyelementorbackgroundimages'); }, offset: $(window).height()*1.5 // when item is within 1.5x the viewport size, start loading it }); } ); }; lazyelementorbackgroundimages_checkup(); // also run an extra check after a swiper is in the viewport $('.swiper-container').each( function () { var \$element = $( this ); new Waypoint({ element: \$element.get( 0 ), handler: function () { \$element.find('.lazyelementorbackgroundimages').removeClass('lazyelementorbackgroundimages'); }, offset: $(window).height()*1.5 // when item is within 1.5x the viewport size, start loading it }); } ); });"; wp_add_inline_script('jquery', $script); }); add_action('wp_head', 'my_custom_styles', 100); function my_custom_styles() { echo "<style> .lazyelementorbackgroundimages:not(.elementor-motion-effects-element-type-background) { background-image: none !important; /* lazyload fix for elementor */ } .lazyelementorbackgroundimages:not(.elementor-motion-effects-element-type-background) .elementor-column-wrap { background-image: none !important; /* lazyload fix for elementor */ } </style>"; }
@codehaveli If you need a temporary fix, add following snippet to functions.php or via the code snippets plugin (https://nl.www.ads-software.com/plugins/code-snippets/) and add the class ‘lazy-bg’ to the sections and columns you need to have lazyloaded background images on, I whipped this up today because a client needed it.
add_action( 'elementor/frontend/the_content', function($content) { return preg_replace( [ '/(lazy-bg)/m', ], ' $1 lazyelementorbackgroundimages ', $content ); } ); // inline scripts via wp_add_inline_script() add_action('wp_enqueue_scripts', function() { $script = "jQuery( function ( $ ) { if ( ! ( window.Waypoint ) ) { // if Waypoint is not available, then we MUST remove our class from all elements because otherwise BGs will never show $('.lazyelementorbackgroundimages').removeClass('lazyelementorbackgroundimages'); if ( window.console && console.warn ) { console.warn( 'Waypoint library is not loaded so backgrounds lazy loading is turned OFF' ); } return; } var lazyelementorbackgroundimages_checkup = function () { $('.lazyelementorbackgroundimages').each( function () { var \$element = $( this ); new Waypoint({ element: \$element.get( 0 ), handler: function( direction ) { //console.log( [ 'waypoint hit', \$element.get( 0 ), $(window).scrollTop(), \$element.offset() ] ); \$element.removeClass('lazyelementorbackgroundimages'); }, offset: $(window).height()*1.5 // when item is within 1.5x the viewport size, start loading it }); } ); }; lazyelementorbackgroundimages_checkup(); // also run an extra check after a swiper is in the viewport $('.swiper-container').each( function () { var \$element = $( this ); new Waypoint({ element: \$element.get( 0 ), handler: function () { \$element.find('.lazyelementorbackgroundimages').removeClass('lazyelementorbackgroundimages'); }, offset: $(window).height()*1.5 // when item is within 1.5x the viewport size, start loading it }); } ); });"; wp_add_inline_script('jquery', $script); }); add_action('wp_head', 'my_custom_styles', 100); function my_custom_styles() { echo "<style> .lazyelementorbackgroundimages:not(.elementor-motion-effects-element-type-background) { background-image: none !important; /* lazyload fix for elementor */ } .lazyelementorbackgroundimages:not(.elementor-motion-effects-element-type-background) .elementor-column-wrap { background-image: none !important; /* lazyload fix for elementor */ } </style>"; }
- This reply was modified 4 years, 4 months ago by florisb.
Hi @shadim,
I got the same problem, tried versions 2.2.4 and 2.2.5.
PHP Fatal error: Uncaught Error: Class 'PR\DHL\REST_API\Drivers\WP_API_Driver' not found in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117 Stack trace: #0 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver() #1 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_Post->__construct('NL') #2 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(391): PR_DHL_API_Factory::make_dhl('NL') #3 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(250): PR_DHL_WC->get_dhl_factory() #4 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(200): PR_DHL_WC->get_pr_dhl_wc_product() #5 /home/j6noi206yu/domains/godert.me/web/wp/ in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117 Fatal error: Uncaught Error: Class 'PR\DHL\REST_API\Drivers\WP_API_Driver' not found in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117 Stack trace: #0 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver() #1 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_Post->__construct('NL') #2 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(391): PR_DHL_API_Factory::make_dhl('NL') #3 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(250): PR_DHL_WC->get_dhl_factory() #4 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(200): PR_DHL_WC->get_pr_dhl_wc_product() #5 /home/j6noi206yu/domains/godert.me/web/wp/ in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117 Error: There has been a critical error on your website.Learn more about debugging in WordPress. There has been a critical error on your website.
@reneesoffice I don’t get redirected back to the dashboard by the page after logging in, after logging in with my Google account I get the page mentioned in 1) in my previous reaction. If I then try to login again, it will just redirect me to that page again.
Hi @reneesoffice,
No console errors present in any of the stages
2) There are no errors being displayed.
Hi @reneesoffice,
1) Updated, issue persists.
2) Console output: https://imgur.com/a/juaJ3RQ, no errors present.
- This reply was modified 4 years, 10 months ago by florisb.
Hi James,
Here’s the output:
### wp-core ### version: 5.4.1 site_language: nl_NL user_language: nl_NL timezone: +02:00 permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: closed multisite: false user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/onetap/domains/onetap.online/web/wp wordpress_size: 43,47 MB (45583561 bytes) uploads_path: /home/onetap/domains/onetap.online/web/app/uploads uploads_size: 272,99 MB (286248274 bytes) themes_path: /home/onetap/domains/onetap.online/web/app/themes themes_size: 7,67 MB (8047690 bytes) plugins_path: /home/onetap/domains/onetap.online/web/app/plugins plugins_size: 91,92 MB (96382691 bytes) database_size: 151,08 MB (158416896 bytes) total_size: 567,13 MB (594679112 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Hello (unicorn/resources) version: 1.0.0 author: OneTap.Online author_website: https://onetap.online parent_theme: none theme_features: soil-clean-up, soil-jquery-cdn, soil-nav-walker, soil-nice-search, soil-relative-urls, custom-logo, title-tag, menus, post-thumbnails, html5, woocommerce, customize-selective-refresh-widgets, editor-style, widgets theme_path: /home/onetap/domains/onetap.online/web/app/themes/unicorn/resources ### wp-themes-inactive (3) ### Twenty Nineteen: version: 1.5, author: het WordPress team Twenty Seventeen: version: 2.3, author: het WordPress team Twenty Twenty: version: 1.2, author: het WordPress team ### wp-mu-plugins (3) ### Bedrock Autoloader: version: 1.0.0, author: Roots Disallow Indexing: version: 1.0.0, author: Roots Register Theme Directory: version: 1.0.0, author: Roots ### wp-plugins-active (24) ### Cookie Notice: version: 1.3.1, author: dFactory Dashboard Welcome for Elementor: version: 1.0.5, author: IdeaBox Creations Duplicate Post: version: 3.2.4, author: Enrico Battocchi Elementor: version: 2.9.8, author: Elementor.com Elementor Form Custom Webhook: version: 1.3.0, author: Admin12345.com Elementor Pro: version: 2.9.3, author: Elementor.com Envato Elements: version: 1.1.9, author: Envato GA Google Analytics: version: 20200325, author: Jeff Starr JetElements For Elementor: version: 2.2.14, author: Crocoblock Jet Fix Framework URL: version: 1.0.0, author: Zemez JetTricks: version: 1.2.8, author: Crocoblock Mollie Forms: version: 2.3.2, author: Wobbie.nl OneTap Fomo Extension: version: 1.2.0, author: Author Name Polylang: version: 2.7.2, author: WP SYNTEX Polylang Connect for Elementor: version: 1.0.0, author: David Decker - DECKERWEB Rank Math SEO: version: 1.0.42.3, author: Rank Math Redis Object Cache: version: 1.5.7, author: Till Krüss Regenerate Thumbnails: version: 3.1.3, author: Alex Mills (Viper007Bond) Safe SVG: version: 1.9.9, author: Daryll Doyle Site Kit by Google: version: 1.7.1, author: Google Stream: version: 3.4.3, author: XWP Two Factor: version: 0.6.0, author: Plugin Contributors Warp iMagick - Image Compressor: version: 1.0.6, author: Dragan ?uri? WP Rocket: version: 3.5.4, author: WP Media ### wp-plugins-inactive (4) ### Developersuite Install Manager: version: 1.0.0, author: Floris Boers Redirection: version: 4.7.1, author: John Godley Social Auto Poster: version: 3.1.4, author: WPWeb WP Mail SMTP: version: 2.0.1, author: WPForms ### wp-media ### image_editor: Warp_Image_Editor_Imagick imagick_module_version: 1801 imagemagick_version: ImageMagick 7.0.9-13 Q16 x86_64 2020-02-18 https://imagemagick.org gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.07 ### wp-server ### server_architecture: Linux 3.10.0-957.10.1.el7.x86_64 x86_64 httpd_software: Apache/2 php_version: 7.3.14 64bit php_sapi: apache2handler max_input_variables: 1000 time_limit: 30 memory_limit: 1024M max_input_time: 60 upload_max_size: 64M php_post_max_size: 64M curl_version: 7.29.0 NSS/3.36 suhosin: false imagick_availability: true ### wp-database ### extension: mysqli server_version: 5.5.63-MariaDB client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_HOME: https://onetap.online WP_SITEURL: https://onetap.online/wp WP_CONTENT_DIR: /home/onetap/domains/onetap.online/web/app WP_PLUGIN_DIR: /home/onetap/domains/onetap.online/web/app/plugins WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: false WP_DEBUG_DISPLAY: false WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### google-site-kit ### version: 1.7.1 php_version: 7.3.14 wp_version: 5.4.1 reference_url: https://onetap.online amp_mode: no site_status: not-connected user_status: not authenticated active_modules: site-verification, search-console required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? search_console_property: none
- This reply was modified 4 years, 10 months ago by florisb.
@jamesosborne Thank you for the quick reply!
We use roots.io’s bedrock (https://roots.io/bedrock/) for our directory structure and the Polylang plugin for languages, only configuration we did for that plugin is creating the English language.