Title: evscoding's Replies | WordPress.org

---

# evscoding

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Issue with Scheduling Sale Prices](https://wordpress.org/support/topic/issue-with-scheduling-sale-prices/)
 *  [evscoding](https://wordpress.org/support/users/evscoding/)
 * (@evscoding)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/issue-with-scheduling-sale-prices/#post-17259053)
 * Same here.
 * I have even done all the testing on fresh install with just woocommerce plugin
   on. Seems to be a problem with wc_scheduled_sales function in /includes/wc-product-
   functions.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta for WooCommerce] Fatal error](https://wordpress.org/support/topic/fatal-error-4468/)
 *  [evscoding](https://wordpress.org/support/users/evscoding/)
 * (@evscoding)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-4468/#post-16814796)
 * [@squatter1](https://wordpress.org/support/users/squatter1/)
 * Hey, i know it’s frustrating. Please refer to my first comment at related issue:
   [https://wordpress.org/support/topic/plugin-fatal-error-site-inaccessible/](https://wordpress.org/support/topic/plugin-fatal-error-site-inaccessible/)
 * Hopefully this is fixed with next release.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Meta for WooCommerce] Plugin Fatal Error | Site Inaccessible](https://wordpress.org/support/topic/plugin-fatal-error-site-inaccessible/)
 *  [evscoding](https://wordpress.org/support/users/evscoding/)
 * (@evscoding)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-fatal-error-site-inaccessible/#post-16814771)
 * [@wabrbhome](https://wordpress.org/support/users/wabrbhome/) I have the same 
   issue.
 * Done a little more digging and it seems that [https://www.facebook.net/](https://www.facebook.net/)
   domain is currently with an error “ERR_NAME_NOT_RESOLVED”.
 *     ```wp-block-code
       nslookup
       ```
   
 * returns:
 *     ```wp-block-code
       ** server can't find www.facebook.net: NXDOMAIN
       ```
   
 * Digging the code further it seems that this function in /facebook-for-woocommerce/
   includes/Events/AAMSettings.php:69 does not take into account that $response 
   might not be a is_wp_error() but can be still empty. So “array_key_exists()” 
   check fails cause there is no array there in the first place.
 *     ```wp-block-code
       public static function build_from_pixel_id( $pixel_id ) {
       		$url      = self::get_url( $pixel_id );
       		$response = wp_remote_get( $url );
       		if ( is_wp_error( $response ) ) {
       			return null;
       		} else {
       			$response_body = json_decode( wp_remote_retrieve_body( $response ), true );
       			if ( ! array_key_exists( 'errorMessage', $response_body ) ) {
       				$response_body['matchingConfig']['pixelId'] = $pixel_id;
       				return new AAMSettings( $response_body['matchingConfig'] );
       			}
       		}
       		return null;
       }
       ```
   
 * Here is the “quick fix” for this function (which will still through GET “API”
   response as its 500):
 *     ```wp-block-code
       public static function build_from_pixel_id( $pixel_id ) {
               $url      = self::get_url( $pixel_id );
               $response = wp_remote_get( $url );
   
               if ( is_wp_error( $response ) ) {
                   return null;
               }
   
               $response_body = json_decode( wp_remote_retrieve_body( $response ), true );
   
               if ( ! $response_body || array_key_exists( 'errorMessage', $response_body ) ) {
                   return null;
               }
   
               $response_body['matchingConfig']['pixelId'] = $pixel_id;
               return new AAMSettings( $response_body['matchingConfig'] );
       }
       ```
   
 * Hopefully we will get a fix in next release.
    -  This reply was modified 2 years, 11 months ago by [evscoding](https://wordpress.org/support/users/evscoding/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced AJAX Product Filters] Auto Selection of Filters on default woocommerce links (category and etc.)](https://wordpress.org/support/topic/auto-selection-of-filters-on-default-woocommerce-links-category-and-etc/)
 *  Thread Starter [evscoding](https://wordpress.org/support/users/evscoding/)
 * (@evscoding)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/auto-selection-of-filters-on-default-woocommerce-links-category-and-etc/#post-16786805)
 * Thank you for your response [@razyrx](https://wordpress.org/support/users/razyrx/).
 * I understand that “Category page is not the same as shop page filtered by category
   filter”, but it already does have the code to identify where the filter is. It
   seems valuable to make the present filter value “checked” if identified. Once
   filtering something else, it should be logical to redirect to any other route
   that would be logical to work in, i.e. shop page.
 * I have already tried that setting, but it does not do the job well from UI/UX
   perspective.
    - If selected “Delete value” -> then it removes the value completely and user
      might not know where is he.
    - if selected “Leave only one value” -> then the filter loses its purposes, 
      it only shows the value that the user is in and as you said, can not be changed.

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