Title: weaselnerd's Replies | WordPress.org

---

# weaselnerd

  [  ](https://wordpress.org/support/users/weaselnerd/)

 *   [Profile](https://wordpress.org/support/users/weaselnerd/)
 *   [Topics Started](https://wordpress.org/support/users/weaselnerd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/weaselnerd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/weaselnerd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/weaselnerd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/weaselnerd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/weaselnerd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[No unsafe-inline] TrustedHTML throws an error in no-unsafe-inline-fix-style.js](https://wordpress.org/support/topic/trustedhtml-throws-an-error-in-no-unsafe-inline-fix-style-js/)
 *  Thread Starter [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [5 months ago](https://wordpress.org/support/topic/trustedhtml-throws-an-error-in-no-unsafe-inline-fix-style-js/#post-18759968)
 * [@mociofiletto](https://wordpress.org/support/users/mociofiletto/) Sorry for 
   the delay, I had lost track of this project and was buried elsewhere.
 * The site is now running version 1.3.0, unpatched, and is having no issues with
   the reCAPTCHA integration.
 * Many thanks for your official fix!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ShareASale WooCommerce Tracker] Newest version causes fatal error in product edit page](https://wordpress.org/support/topic/newest-version-causes-fatal-error-in-product-edit-page/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [7 months ago](https://wordpress.org/support/topic/newest-version-causes-fatal-error-in-product-edit-page/#post-18681007)
 * I usually avoid editing plugins directly, but since this one is going away went
   ahead and commented out 2 lines to restore product editing quickly.
 * In `/wp-content/plugins/shareasale-wc-tracker/includes/class-shareasale-wc-tracker.
   php` comment out lines `118` and `119` which try to hook nonexistent callbacks.
 *     ```wp-block-code
       // $this->loader->add_action( 'woocommerce_product_options_general_product_data', $admin, 'woocommerce_product_options_general_product_data' );// $this->loader->add_action( 'woocommerce_process_product_meta',                 $admin, 'woocommerce_process_product_meta' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Checkout Field Manager (Checkout Manager) for WooCommerce] Critical error for settings with one selection in PHP 8.2](https://wordpress.org/support/topic/critical-error-for-settings-with-one-selection-in-php-8-2/)
 *  Thread Starter [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [10 months ago](https://wordpress.org/support/topic/critical-error-for-settings-with-one-selection-in-php-8-2/#post-18556679)
 * Thanks for the update!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM4WP - A Google Tag Manager (GTM) plugin for WordPress] Duplicate view_item & add_to_cart events](https://wordpress.org/support/topic/duplicate-view_item-add_to_cart-events/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/duplicate-view_item-add_to_cart-events/#post-18300326)
 * The solution I found to this issue was to create a Data Layer variable for `eventModel`,
   and on my trigger(s) filter that its value equals “undefined”.
 * This works because `gtag()` events (like those fired by Google for WooCommerce)
   [store their values under `eventModel` in the data layer](https://www.simoahava.com/gtm-tips/use-gtag-js-parameters-google-tag-manager/).
   The `dataLayer.push()` used by GTM4WP does not generate an `eventModel` variable.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Can only display small calendar in latest version 6.4.4](https://wordpress.org/support/topic/can-only-display-small-calendar-in-latest-version-6-4-4/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/can-only-display-small-calendar-in-latest-version-6-4-4/#post-16999599)
 * Not sure if they’re going to bring back the old responsive behavior back or not
   at this point.
 * If you want to default all calendars to the “large” view by default you can do
   it with a filter instead of editing the plugin directly:
 *     ```wp-block-code
       add_filter( 'em_calendar_get_default_search', function( $atts, $array, $defaults ) {
       	$atts['calendar_size'] = 'large';
   
       	return $atts;
       }, 10, 3 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[API KEY for Google Maps] Version 1.2.2 header update issue](https://wordpress.org/support/topic/version-1-2-2-header-update-issue/)
 *  Thread Starter [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/version-1-2-2-header-update-issue/#post-15723907)
 * Yup, that did the trick. Version 1.2.3 appears in the WordPress Updates admin
   and updated just fine.
 * Thanks for the fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Themify - WooCommerce Product Filter] Add new filter doesn’t work](https://wordpress.org/support/topic/add-new-filter-doesnt-work/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/add-new-filter-doesnt-work/#post-15182718)
 * I’ll chip in it appears to be a PHP 8 incompatibility.
 * Testing PHP 8 threw up the ajax 500 error in the console. Reverted back to PHP
   7.4 and the edit screens load up again, which is fine for this site for now at
   least.
 * Sample error:
    `PHP Fatal error: Uncaught TypeError: floor(): Argument #1 ($num)
   must be of type int|float, string given in /nas/content/live/mysite/wp-content/
   plugins/themify-wc-product-filter/includes/class-wpf-form.php:407\nStack trace:\
   n#0 /nas/content/live/mysite/wp-content/plugins/themify-wc-product-filter/includes/
   class-wpf-form.php(407): floor('')\n#1 /nas/content/live/mysite/wp-content/plugins/
   themify-wc-product-filter/includes/class-wpf-form.php(331): WPF_Form->get_main_fields('
   price', 'Price', Array)\n#2 /nas/content/live/mysite/wp-content/plugins/themify-
   wc-product-filter/includes/class-wpf-form.php(278): WPF_Form->module('price','
   Price', Array, Array)\n#3 /nas/content/live/mysite/wp-content/plugins/themify-
   wc-product-filter/admin/partials/form.php(7): WPF_Form->form()\n#4 /nas/content/
   live/mysite/wp-content/plugins/themify-wc-product-filter/admin/class-wpf-admin.
   php(343): include_once('/nas/content/li...')\n#5 /nas/content/live/mysite/wp-
   includes/class-wp-hook.php(303): WPF_Admin->add_template('')\n#6 /nas/content/
   live/mysite/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)\
   n#7 /nas/content/live/mysite/wp-includes/plugin.php(470): WP_Hook->do_action(
   Array)\n#8 /nas/content/live/mysite/wp-admin/admin-ajax.php(187): do_action('
   wp_ajax_wpf_edi...')\n#9 {main}\n thrown in /nas/content/live/mysite/wp-content/
   plugins/themify-wc-product-filter/includes/class-wpf-form.php on line 407, referer:
   https://mysite.wpengine.com/wp-admin/admin.php?page=wpf_search`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Happy Addons for Elementor] Parse error after todays update](https://wordpress.org/support/topic/parse-error-after-todays-update/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-after-todays-update/#post-15145118)
 * [@ramyos](https://wordpress.org/support/users/ramyos/) Did you try removing the
   plugin and reinstalling as [@sabbirshouvo](https://wordpress.org/support/users/sabbirshouvo/)
   mentioned? Strangely that was enough to remove the error on my site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Happy Addons for Elementor] Parse error after todays update](https://wordpress.org/support/topic/parse-error-after-todays-update/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-after-todays-update/#post-15141645)
 * Removing the plugin and reinstalling it from scratch from the plugin directory
   did seem to do the trick on my site. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Happy Addons for Elementor] Parse error after todays update](https://wordpress.org/support/topic/parse-error-after-todays-update/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/parse-error-after-todays-update/#post-15140940)
 * Same error.
 * Was able to re-activate the plugin by making a hotfix to `classes/widgets-manager.
   php` to disable the PDF viewer module. Comment out lines 984-995.
 *     ```
       // 'pdf-view' => [
       // 	'cat' => 'creative',
       // 	'is_active' => true,
       // 	'title' => __('PDF View', 'happy-elementor-addons'),
       // 	'icon' => 'hm hm-lens',
       // 	'css' => ['pdf'],
       // 	'js' => [],
       // 	'vendor' => [
       // 		'css' => [],
       // 		'js' => ['pdf-js'],
       // 	],
       // ],
       ```
   
 * Hopefully the next plugin update fixes this.
 * cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Bug: No status alert from admin menu purge if image compression meta-boxes off](https://wordpress.org/support/topic/bug-no-status-alert-from-admin-menu-purge-if-image-compression-meta-boxes-off/)
 *  Thread Starter [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/bug-no-status-alert-from-admin-menu-purge-if-image-compression-meta-boxes-off/#post-13626059)
 * Appreciate it, thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[RestroPress - Online Food Ordering System] Latest Update crashed my wordpress admin](https://wordpress.org/support/topic/latest-update-crashed-my-wordpress-admin/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/latest-update-crashed-my-wordpress-admin/#post-13568414)
 * I updated my site with the new patch and it seems to be working just fine now.
 * Thanks for the update [@sagarseth9](https://wordpress.org/support/users/sagarseth9/).
 * cheers,
    sean
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[RestroPress - Online Food Ordering System] Latest Update crashed my wordpress admin](https://wordpress.org/support/topic/latest-update-crashed-my-wordpress-admin/)
 *  [weaselnerd](https://wordpress.org/support/users/weaselnerd/)
 * (@weaselnerd)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/latest-update-crashed-my-wordpress-admin/#post-13564640)
 * Just fixed the same error on a website.
 * Deleted the trailing commas at the end of lines 438 and 719 (inside the `printf()`
   statements) in includes/admin/tools.php to get it running again.
 * Obvious not great I had to edit the plugin directly, so I hope this gets fixed
   by next update.
 * cheers

Viewing 13 replies - 1 through 13 (of 13 total)