Title: chrishaff's Replies | WordPress.org

---

# chrishaff

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor] vulnerability](https://wordpress.org/support/topic/vulnerability-173/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [1 week ago](https://wordpress.org/support/topic/vulnerability-173/#post-18925536)
 * Same regarding WPEninge. WPMU’s Defender Pro also flags this. It still shows 
   this issue today, four days later. I’m going to disable this plugin and see what
   breaks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Orders missing from back end listing](https://wordpress.org/support/topic/orders-missing-from-back-end-listing/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/orders-missing-from-back-end-listing/#post-17030543)
 * Thanks for taking a detailed look.
 * While I wasn’t the person doing the migration/import/export I did restore backups
   of the pre-relaunch version of the site and found them to be in the same condition,
   that is there is data in the wp_wc_xxx and wp_woocommerce_xxx tables but it’s
   not reflected in wp_posts.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MooWoodle – WordPress Moodle LMS Integration, Sell Moodle Courses via WooCommerce] My Courses in My Account lists not course purchases](https://wordpress.org/support/topic/my-courses-in-my-account-lists-not-course-purchases/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/my-courses-in-my-account-lists-not-course-purchases/#post-15492497)
 * Good to hear thanks. Two quick follow up questions:
    1. When do you think you may publish this update?
    2. If the update will be more than a few days, could you please share the updated
       lines ahead of time?
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MooWoodle – WordPress Moodle LMS Integration, Sell Moodle Courses via WooCommerce] MooWoodle doesn’t import](https://wordpress.org/support/topic/moowoodle-doesnt-import/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/moowoodle-doesnt-import/#post-15447604)
 * The Moodle team checked their settings and the sync works now. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Unable to insert download log entry in database.](https://wordpress.org/support/topic/unable-to-insert-download-log-entry-in-database/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/unable-to-insert-download-log-entry-in-database/#post-10219108)
 * I also get this error. In my case after I pushed from Staging to Live on WPEngine.
 * Modifying the source isn’t real sustainable. Is there a more durable solution?
 * When I check in the back end the order is Completed. Looking at Downloadable 
   Product Permissions it reports that the user downloaded the file twice. It was
   attempted, but failed twice.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[date_query enabler] Doesn’t appear to work with 4.7](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/#post-8578735)
 * [@doofusdavid](https://wordpress.org/support/users/doofusdavid/), I haven’t been
   able to get 4.7 back to the previous state. As I mentioned, I went back to 4.6.1
   hoping that this feature comes back (via core or plugins). My attempts at plugins
   have not worked (and I stopped no that track for now).
 * Thanks for any hints.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[date_query enabler] Doesn’t appear to work with 4.7](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/doesnt-appear-to-work-with-4-7/#post-8558283)
 * OK, so evidently the filter went away when it moved into core. There is this 
   plugin that should restore it, alas I’ve got no luck with that one.
 * [https://github.com/WP-API/rest-filter/blob/master/plugin.php](https://github.com/WP-API/rest-filter/blob/master/plugin.php)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Category Order and Taxonomy Terms Order] Doesn't Sort Product Categories on Product Page](https://wordpress.org/support/topic/doesnt-sort-product-categories-on-product-page/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/doesnt-sort-product-categories-on-product-page/#post-6841872)
 * ‘orderby’ => ‘term_order’ does not appear to work with WordPress 4.6. I’ve created
   the following shortcode. Alas the result is not in the order I see when I visit
   Taxonomy Order.
 *     ```
       function myCategories(){
       	$terms = get_terms( array(
       		'taxonomy' => 'category',
       		'number' => 10,
       		'orderby' => 'term_order',
       	) );
       	$result = '';
       	if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
       		$count = count( $terms );
       		$i = 0;
       		$term_list = '<div class="my_term-archive">';
       		foreach ( $terms as $term ) {
       			$i++;
       			$term_list .= '<a href="' . esc_url( get_term_link( $term ) ) . '" alt="' . esc_attr( sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) ) . '">' . $term->name . '</a>';
       			if ( $count != $i ) {
       				$term_list .= ', ';
       			}
       			else {
       				$term_list .= '</div>';
       			}
       		}
       		$result .= $term_list.'';
       	}
       	return $result;
       }
       add_shortcode( 'my-categories', 'myCategories' );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MC4WP: Mailchimp User Sync] Javascript errors on "Synchronize All"](https://wordpress.org/support/topic/javascript-errors-on-synchronize-all/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/javascript-errors-on-synchronize-all/#post-6971530)
 * Installed 1.4.
 * Here is what happened in the UI:
    1. Clicked, one user was sent over. “Progress bar said infinity%”. Waited a little,
       nothing. Opened debug log in another tab; said nothing was logged, no issues.
    2. Reloaded page. Indicated one user was in sync. Clicked on sync all again; proceeded
       to send over the remaining users without issue
 * Validated that they all got into MC fine.
 * So better – worked on the second try…
    I didn’t try the CLI as my mission was
   accomplished.
 * Let me know if you’d like me to do more QA, otherwise you can resolve this issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] Retrieve pages within date range](https://wordpress.org/support/topic/retrieve-pages-within-date-range/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/retrieve-pages-within-date-range/#post-6305475)
 * This! Do I need to create a custom controller?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JSON API] sql query on a custom controller](https://wordpress.org/support/topic/sql-query-on-a-custom-controller/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/sql-query-on-a-custom-controller/#post-6682439)
 * Wait, could you please provide an example?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] on_sent_ok not fired on mobile devices](https://wordpress.org/support/topic/on_sent_ok-not-fired-on-mobile-devices/)
 *  Thread Starter [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/on_sent_ok-not-fired-on-mobile-devices/#post-3309909)
 * Silly fat fingers, I meant CF7 version 3.3.2. It’s WP version 3.5.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brilliant Web-to-Lead for Salesforce] Duplicate Entries caused by form in footer / sidebar](https://wordpress.org/support/topic/duplicate-entries-caused-by-form-in-footer-sidebar/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/duplicate-entries-caused-by-form-in-footer-sidebar/#post-3179467)
 * Hmm, I am on version 2.0.3 and I have this issue, or is it perhaps because I 
   have the same form on the page several times?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brilliant Web-to-Lead for Salesforce] [Plugin: WordPress-to-lead for Salesforce CRM] Captcha](https://wordpress.org/support/topic/plugin-wordpress-to-lead-for-salesforce-crm-captcha/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-to-lead-for-salesforce-crm-captcha/#post-2673082)
 * [@nick](https://wordpress.org/support/users/nick/)
 * I think this is the durable solution:
    `$image_src = plugins_url( 'captcha.php',
   __FILE__ ) . '?_CAPTCHA&t=' . urlencode(microtime());`
 * I believe this also eliminates the need for the next line (126).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Brilliant Web-to-Lead for Salesforce] [Plugin: WordPress-to-lead for Salesforce CRM] Captcha](https://wordpress.org/support/topic/plugin-wordpress-to-lead-for-salesforce-crm-captcha/)
 *  [chrishaff](https://wordpress.org/support/users/chrishaff/)
 * (@chrishaff)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-to-lead-for-salesforce-crm-captcha/#post-2673080)
 * [@nick](https://wordpress.org/support/users/nick/)
    The problem seems to be in/
   lib/captcha/captcha.php on line 125 the global variable __FILE__ is used. __FILE__
   resolves all symlinks (that the hosting co likely set up) . The resolved symlinks
   then don’t match up with strlen($_SERVER[‘DOCUMENT_ROOT’]).
 * I couldn’t think of a quick way to elegantly solve that issue, so I just replaced
   the line with `$image_src = '/wp-content/plugins/salesforce-wordpress-to-lead/
   lib/captcha/captcha.php' . '?_CAPTCHA&t=' . urlencode(microtime());` but that
   will only work for folks that are using WP at the root of their domain.

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