Title: d2.roth's Replies | WordPress.org

---

# d2.roth

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/d2roth/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/d2roth/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Variation Swatches for WooCommerce] How to hide product variation options that are out-of-stock?](https://wordpress.org/support/topic/how-to-hide-product-variation-options-that-are-out-of-stock/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [2 years ago](https://wordpress.org/support/topic/how-to-hide-product-variation-options-that-are-out-of-stock/#post-17710538)
 * [@fizanzvai](https://wordpress.org/support/users/fizanzvai/) does that mean the
   hide variations that are unavailable will also not work with more than 30 variations?
   [@mobilewebexpert](https://wordpress.org/support/users/mobilewebexpert/) has 
   50 variations, one per ticket, and when one ticket is sold, “They won’t actually
   realise that it’s unavailable until they try to click the ADD TO BASKET button.”
 * It seems like the blur-and-cross feature with a limit of 30 variations might 
   be tied to the hide out of stock variations feature in an unexpected way.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Variation Swatches for WooCommerce] How to hide product variation options that are out-of-stock?](https://wordpress.org/support/topic/how-to-hide-product-variation-options-that-are-out-of-stock/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [2 years ago](https://wordpress.org/support/topic/how-to-hide-product-variation-options-that-are-out-of-stock/#post-17708292)
 * I just ran into this issue myself and found the same details as [@mobilewebexpert](https://wordpress.org/support/users/mobilewebexpert/).
 * The setting is checked: Hide out of Stock Items: [https://prnt.sc/2AIta3nu6wvn](https://prnt.sc/2AIta3nu6wvn)
   I also tried all 3 of the options under GetWooPlugins > Swatches Settings > Advanced
   > Disabled Attribute style with no visual difference on the front end: [https://prnt.sc/xJQH0wMM4IYi](https://prnt.sc/xJQH0wMM4IYi)
 * This is what I am seeing when selecting a variation that does not have stock (
   Red/Black/White, Large, Youth): [https://prnt.sc/EcopBBelHOX8](https://prnt.sc/EcopBBelHOX8)
   and here is the same product but selecting a variation that exists: [https://prnt.sc/XNy6GsQ5RLEw](https://prnt.sc/XNy6GsQ5RLEw)(
   Red/Black/White, Large, Unisex)
 * The only difference I can see here is that I don’t actually have a product with
   faulty the attributes defined: [https://prnt.sc/cdyysq_7xQuk](https://prnt.sc/cdyysq_7xQuk)
 * One extra thing I noticed when selecting an attribute is a call to `?wc-ajax=
   get_variation` that always returns `false`. The parameters sent are:
    - attribute_pa_colour: red-black-white
    - attribute_pa_size: large
    - attribute_pa_gender: youth
    - product_id: 232765
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ManageWP Worker] Undefined $_REQUEST[‘action’] during AJAX Updates](https://wordpress.org/support/topic/undefined-_requestaction-during-ajax-updates/)
 *  Thread Starter [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-_requestaction-during-ajax-updates/#post-17262904)
 * I am not seeing this issue anymore. I don’t know if/when it stopped but I guess
   this can be closed out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Woo Search - Product Search for WooCommerce] Pagination not work](https://wordpress.org/support/topic/pagination-not-work-8/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/pagination-not-work-8/#post-16741530)
 * [@dipokemon](https://wordpress.org/support/users/dipokemon/) what versions are
   you using? FacetWP’s pagination doesn’t change pages when we have done a search
   and filter even using Advanced Woo Search 2.79.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Woo Search - Product Search for WooCommerce] Pagination not work](https://wordpress.org/support/topic/pagination-not-work-8/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [3 years ago](https://wordpress.org/support/topic/pagination-not-work-8/#post-16682528)
 * For reference I am testing with the following plugin versions:
    - Elementor: 3.12.2
    - Elementor Pro: 3.12.2
    - FacetWP: 4.1.8
    - FacetWP – Elementor: 1.7
    - Advanced Woo Search PRO: 2.77
 * [@dipokemon](https://wordpress.org/support/users/dipokemon/) I found the previous
   solution didn’t fix the full issue. It seems like the pagination parameters are
   stored in `$obj->ajax_params`. Inside `/wp-content/plugins/advanced-woo-search-
   pro/includes/modules/class-aws-facetwp.php` about line 66 I have:
 *     ```wp-block-code
       $paged = $obj && $obj->query_args && isset( $obj->query_args['paged'] ) ? $obj->query_args['paged'] : $wp_query->query_vars['paged'];
       ```
   
 * Changing that to the following (`query_args` to `ajax_params`) is fixing prev/
   next pagination since `$obj->query_args` is `null` in my tests:
 *     ```wp-block-code
       $paged = $obj && $obj->ajax_params && isset( $obj->ajax_params['paged'] ) ? $obj->ajax_params['paged'] : $wp_query->query_vars['paged'];
       ```
   
 * Does that change anything for you?
 * Also, Facet’s filters don’t change the resulting page items when using AWS. It
   seems to spit out the full product information without the filtering being applied.
   Are you seeing similar results?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Woo Search - Product Search for WooCommerce] Pagination not work](https://wordpress.org/support/topic/pagination-not-work-8/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/pagination-not-work-8/#post-16650063)
 * [@dipokemon](https://wordpress.org/support/users/dipokemon/) Are you using Elementor
   Pro?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Woo Search - Product Search for WooCommerce] Pagination not work](https://wordpress.org/support/topic/pagination-not-work-8/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/pagination-not-work-8/#post-16649979)
 * [@mihail-barinov](https://wordpress.org/support/users/mihail-barinov/) I ran 
   into this same problem but found that all pages were returning page 1’s results.
   With FacetWP’s AJAX filtering you need to account for `$_GET['_paged']` .
 * I changed the third line of your solution to this:
 *     ```wp-block-code
       if( isset( $_GET['_paged'] ) ){
                           $paged = intval( $_GET['_paged'] );
                       } else {
                           $paged = $obj && $obj->query_args && isset( $obj->query_args['paged'] ) ? $obj->query_args['paged'] : $wp_query->query_vars['paged'];
                       }
       ```
   
 * This means the full code becomes the following:
 *     ```wp-block-code
       global $wp_query;
                       $posts_per_page = $obj && $obj->query_args && isset( $obj->query_args['posts_per_page'] ) ? $obj->query_args['posts_per_page'] : $wp_query->query_vars['posts_per_page'];
                       if( isset( $_GET['_paged'] ) ){
                           $paged = intval( $_GET['_paged'] );
                       } else {
                           $paged = $obj && $obj->query_args && isset( $obj->query_args['paged'] ) ? $obj->query_args['paged'] : $wp_query->query_vars['paged'];
                       }
                       $search_res = AWS_Search_Page::factory()->search( $obj->query, $posts_per_page, $paged );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Embedder] PDF Embedder Premium 5.1.1](https://wordpress.org/support/topic/pdf-embedder-premium-5-1-1/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/pdf-embedder-premium-5-1-1/#post-16537681)
 * I am not associated with the plugin but I ran into the same issue and fixed it
   with a modification to the plugin as follows:
 * Make sure to back up the plugin files in case you should break something.
 * Now, inside `/wp-content/plugins/PDFEmbedder-premium/core/commercial_pdf_embedder.
   php` replace lines 91-100 with the following:
 *     ```wp-block-code
       	public function hide_viewer_admin_bar($show_admin_bar) {
       		global $template;
       		if ( null === $template ) {
       			return $show_admin_bar;
       		}
       		if ( 'viewer.php' === basename( $template ) ) {
       			return false;
       		}
       		return $show_admin_bar;
       	}
       ```
   
 * The issue is that the default `$show_admin_bar` was not being returned so it 
   was evaluated to null or nothing making the admin bar should not show up for 
   the entire site regardless of which template is being used.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Stock Locations for WooCommerce] Total stock: 0](https://wordpress.org/support/topic/total-stock-0/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/total-stock-0/#post-15888728)
 * I ran into a similar issue using [WP All Import](https://wordpress.org/plugins/wp-all-import/)
   where after the import my products were set to “out of stock” but the database
   showed there was stock. It turns out my location was disabled. To fix I just 
   had to click the “Enable” button under Products > Stock Locations beside the 
   location I was importing to.
 * I hope that helps someone out in the future.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta Box] PHP Parse error: syntax error, unexpected ‘)’ in ….file-input.php on line 55](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-in-file-input-php-on-line-55/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-parse-error-syntax-error-unexpected-in-file-input-php-on-line-55/#post-15435320)
 * Hey [@longnguyen89](https://wordpress.org/support/users/longnguyen89/),
    I ran
   into this same issue, and yes I am running 7.0.33 so it is out of date. If Meta
   Box requires a specific PHP version then please set it in the plugin header: `
   Requires PHP: 7.3`
 * Here was an old post from WordPress that includes that:
    [https://make.wordpress.org/plugins/2017/08/29/minimum-php-version-requirement/](https://make.wordpress.org/plugins/2017/08/29/minimum-php-version-requirement/)
    -  This reply was modified 4 years, 2 months ago by [d2.roth](https://wordpress.org/support/users/d2roth/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Brute Force Protection - Stop Brute Force Attacks] Time setting off?](https://wordpress.org/support/topic/time-setting-off/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/time-setting-off/#post-14883249)
 * I ran into this problem too and found that replacing `date_i18n` with `wp_date`
   fixes the timezone offset issue.
 * From the [docs](https://developer.wordpress.org/reference/functions/wp_date/):
 * > This is a newer function, intended to replace date_i18n() without legacy quirks
   > in it.
 * I found the code in:
    `guardgiant/includes/class-guardgiant-trusted-device.php`
   and `guardgiant/includes/class-guardgiant-table-login-activity-log.php`
 * Just do a search for `date_i18n` and replace it with `wp_date`.
 * I hope the authors include this in a future version but for now, editing the 
   plugin files works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization] All the images are blurred](https://wordpress.org/support/topic/all-the-images-are-blurred/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/all-the-images-are-blurred/#post-14282100)
 * So I guess when I say version 3.0.1 doesn’t work I am saying that the images 
   don’t redirect properly. They simply stay with a blurred version but if you open
   them in a new tab they will redirect. Even though in 3.0.0 when you have exceeded
   your limits the images aren’t optimized at least the original quality shows up.
   3.0.1 doesn’t show the original quality and that is where I think it is not working.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization] All the images are blurred](https://wordpress.org/support/topic/all-the-images-are-blurred/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/all-the-images-are-blurred/#post-14278007)
 * I am having the same issue I believe and this is what my console shows:
    Uncaught
   SyntaxError: unexpected token: identifieroptimole_lib_no_poly.min.js:1:8
 * [https://prnt.sc/114vvk8](https://prnt.sc/114vvk8)
 * The image looks like this:
    [https://prnt.sc/114vzo1](https://prnt.sc/114vzo1)
 * The source image looks like this:
    [https://prnt.sc/114w08y](https://prnt.sc/114w08y)
 * It appears like Optimole is not replacing the image properly once it has been
   loaded. This happens across 6-7 of our websites using Optimole 3.0.1 but not 
   3.0.0.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WEBKINDER Integration for Google Analytics and Google Tag Manager] Triggers ModSecurity Rule 214540](https://wordpress.org/support/topic/triggers-modsecurity-rule-214540/)
 *  Thread Starter [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/triggers-modsecurity-rule-214540/#post-12987862)
 * Hey WebKinder,
    Will do. I couldn’t find it when I initially searched on GitHub
   but I now see the link in the readme here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Get menu items](https://wordpress.org/support/topic/get-menu-items/)
 *  [d2.roth](https://wordpress.org/support/users/d2roth/)
 * (@d2roth)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/get-menu-items/#post-5823311)
 * Hey SergioDev,
    I am sure you have solved this problem but This is for anyone
   coming to this page with the same problem.
 * Basically in the WordPress backend you need to set the menu to the location. 
   For example SergioDev had the error saying ‘Menu “cs-1-language” not defined’
   so in the backend you must set a menu to display in the location “cs-1-language”.
   That is the whole solution.
 * If you need any further help just ask.

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

1 [2](https://wordpress.org/support/users/d2roth/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/d2roth/replies/page/2/?output_format=md)