Skip to content

Instantly share code, notes, and snippets.

View BurlesonBrad's full-sized avatar
🎯
Focusing

Brad Griffin BurlesonBrad

🎯
Focusing
View GitHub Profile
{
"cluster_name": "elasticsearch",
"nodes": {
"UHLSl8KCSVy1qYZE294JcA": {
"name": "dunorthdesigns.vps.pagelyhosting.com-dunorthdesigns",
"transport_address": "10.0.6.143:9300",
"host": "10.0.6.143",
"ip": "10.0.6.143",
"version": "2.3.4",
"build": "e455fd0",
I also found this, which may be helpful: https://github.com/allan23/ep-troubleshoot - doesn't seem to be in the plugin marketplace so you'd have to install it manually, but may be helpful in generating more debug info specific to what's happening in elasticpress land.
Looking more closely at the exception being logged during indexing:
Caused by: SearchParseException[failed to parse search source [{"from":0,"size":5,"sort":[{"post__in":{"order":"desc"}}],"query":{"match_all":{"boost":1}},"post_filter":{"bool":{"must":[{"bool"
:{"must_not":[{"terms":{"terms.product_visibility.name.raw":["outofstock"]}}]}},{"bool":{"must":{"terms":{"post_id":[56662,57698,58086,10463,32389,63478,60303,60287,60277,60308,60268,15626,65731,65444,65712]}}}},{"term":{"post_type.raw":"product"}},{"term":{"post_status":"publish"}}]}}}]]; nested: SearchParseException[No mapping found for [post__in] in order to sort on];
I would guess the issue is with one of those post ids: 56662,57698,58086,10463,32389,63478,60303,60287,60277,60308,60
@BurlesonBrad
BurlesonBrad / snippet.php
Created July 27, 2017 02:26
keep price and CTA near featured images
remove_action('woocommerce_single_product_summary','woocommerce_template_single_add_to_cart', 30);
add_action('woocommerce_single_product_summary','woocommerce_template_single_add_to_cart', 15 );
@BurlesonBrad
BurlesonBrad / index.html
Created October 14, 2016 03:35 — forked from jazzido/index.html
Glowing text effect with CSS3
<html>
<head>
<style type="text/css">
.glow {
-webkit-animation-duration: 1s;
-webkit-animation-name: glow;
-webkit-animation-direction: alternate;
-webkit-animation-iteration-count: infinite;
animation-duration: 1s;
animation-name: glow;
@BurlesonBrad
BurlesonBrad / .htaccess
Created October 10, 2016 21:10
C to the Dils
RewriteEngine On
RewriteCond %{HTTP_HOST} ^carriedils\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://carriedils.com/$1 [R=301,L]
// First line kinda obvious //
// Second line is the old URL //
// Line 3 is techinical server hooplah //
// This one says, "Yo. All three of my dubya's are gone. And, btw Google, this is a PERMANENT change (301) //
@BurlesonBrad
BurlesonBrad / autocheck-tos-box-woocommerce.php
Created September 18, 2016 19:49
Automatically check Terms of Service box in WooCommerce https://bradgriffin.me/woocommerce
function bkg_autocheck_tos( $terms_is_checked ) {
return true;
}
add_filter( 'woocommerce_terms_is_checked', 'bkg_autocheck_tos', 10 );
add_filter( 'woocommerce_terms_is_checked_default', 'bkg_autocheck_tos', 10 );
@BurlesonBrad
BurlesonBrad / change-stock-text.php
Last active September 2, 2016 16:23
Change stock text ~ there's TWO of them (not just one!) https://bradgriffin.me
<?php
/**
* Plugin Name: Wayne Changes Text Field
* Plugin URI: https://bradgriffin.me
* Description: Changes the stock text - BOTH of them. Not just one!
* Version: 1
* Author: Brad
* Author URI: https://bradgriffin.me
* Requires at least: 4.6
* Tested up to: 4.6
<?php
/**
* Plugin Name: Alyssa Gets to Change Her Text
* Plugin URI: https://bradgriffin.me
* Description: Engage Maverick | ENGAGE! Make a conversation with your customer and customize EVERY piece of Text!
* Version: 1
* Author: Brad
* Author URI: https://bradgriffin.me
* Requires at least: 4.6
* Tested up to: 4.6
@BurlesonBrad
BurlesonBrad / per-product-redirect.php
Last active April 26, 2021 21:40
Per Product Redirect for EVERY WooCommerce Product https://woocamp.com
<?php /* <--------Careful! */
/**
* Plugin Name: Per product Redirect
* Description: Empowers WooCommerce Store owners to add a custom redirect page on add-to-cart for EVERY product
* Version: 1.0.0
* Author: Brad Griffin
* Author URI: https://woocamp.com
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
@BurlesonBrad
BurlesonBrad / wc-hide-coupons-cart-checkout.php
Created July 22, 2016 17:59 — forked from maxrice/wc-hide-coupons-cart-checkout.php
WooCommerce - hide the coupon form on the cart or checkout page, but leave coupons enabled for use with plugins like Smart Coupons and URL Coupons
<?php
// hide coupon field on cart page
function hide_coupon_field_on_cart( $enabled ) {
if ( is_cart() ) {
$enabled = false;
}
return $enabled;