itthinx
Forum Replies Created
-
Forum: Plugins
In reply to: [Groups] Attachment Details in WP 4.0The error I see in the Javascript console is actually:
TypeError: jQuery(...).selectize is not a functionForum: Plugins
In reply to: [Groups] Attachment Details in WP 4.0Many thanks for pointing out the issue, will have a look and fix it.
Forum: Plugins
In reply to: [Groups] Removing a site from group didnยดt unlock itHi,
Groups protects posts and content blocks, when you say you use groups to prevent access to certain sites, do you protect the sites using https://ww.wp.xz.cn/plugins/groups-blog-protect/ or is there a customized mechanism in place?
Cheers
Forum: Plugins
In reply to: [Affiliates WooCommerce Light] Can a affilate sign up from my site?Hi,
You can have a default page generated at the click of a button for that, please see http://www.itthinx.com/documentation/affiliates/setup/
Cheers
Forum: Plugins
In reply to: [Groups] Groups generating query that takes 10 sec on premium wp server… and a visit to the test site’s Shop page shows a page generation time of about 2 seconds with 2 slow queries, where #1 takes 1.1001 and #2 takes 0.2056 seconds (again, this is with object caching off and 10.000 products in the store) :
“Slow” query #1 :
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type = 'product' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') AND ( (wp_postmeta.meta_key = '_visibility' AND CAST(wp_postmeta.meta_value AS CHAR) IN ('visible','catalog')) ) AND wp_posts.ID IN ( SELECT ID FROM wp_posts WHERE ID NOT IN ( SELECT post_id FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' ) UNION ALL SELECT post_id AS ID FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' AND wp_postmeta.meta_value IN ('activate_plugins','add_users','aff_access','aff_admin_affiliates','aff_admin_options','assign_product_terms','assign_shop_discount_terms','assign_shop_payment_terms','create_users','delete_others_pages','delete_others_posts','delete_others_products','delete_others_shop_discounts','delete_others_shop_payments','delete_pages','delete_plugins','delete_posts','delete_private_pages','delete_private_posts','delete_private_products','delete_private_shop_discounts','delete_private_shop_payments','delete_product','delete_product_terms','delete_products','delete_published_pages','delete_published_posts','delete_published_products','delete_published_shop_discounts','delete_published_shop_payments','delete_shop_discount','delete_shop_discount_terms','delete_shop_discounts','delete_shop_payment','delete_shop_payment_terms','delete_shop_payments','delete_themes','delete_users','edit_dashboard','edit_files','edit_others_pages','edit_others_posts','edit_others_products','edit_others_shop_discounts','edit_others_shop_payments','edit_pages','edit_plugins','edit_posts','edit_private_pages','edit_private_posts','edit_private_products','edit_private_shop_discounts','edit_private_shop_payments','edit_product','edit_product_terms','edit_products','edit_published_pages','edit_published_posts','edit_published_products','edit_published_shop_discounts','edit_published_shop_payments','edit_shop_discount','edit_shop_discount_terms','edit_shop_discounts','edit_shop_payment','edit_shop_payment_terms','edit_shop_payments','edit_theme_options','edit_themes','edit_users','export','export_shop_reports','groups_access','groups_admin_groups','groups_admin_options','import','install_plugins','install_themes','level_0','level_1','level_10','level_2','level_3','level_4','level_5','level_6','level_7','level_8','level_9','list_users','manage_categories','manage_links','manage_options','manage_product_terms','manage_shop_discount_terms','manage_shop_discounts','manage_shop_payment_terms','manage_shop_settings','moderate_comments','promote_users','publish_pages','publish_posts','publish_products','publish_shop_discounts','publish_shop_payments','read','read_private_pages','read_private_posts','read_private_products','read_private_shop_discounts','read_private_shop_payments','read_product','read_shop_discount','read_shop_payment','remove_users','switch_themes','unfiltered_html','unfiltered_upload','update_core','update_plugins','update_themes','upload_files','view_shop_reports','view_shop_sensitive_data','premium','fiver','niner','three') ) AND wp_posts.post_password = '' GROUP BY wp_posts.ID ORDER BY wp_posts.post_title ASC LIMIT 0, 10“Slow” query #2 :
SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id) WHERE 1=1 AND wp_posts.post_type = 'product' AND ((wp_posts.post_status = 'publish')) AND ( (wp_postmeta.meta_key = '_visibility' AND CAST(wp_postmeta.meta_value AS CHAR) IN ('visible','catalog')) ) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESCWith object caching reactivated and visiting the Shop page as a normal visitor (i.e. not logged in) via GTMetrix we get a page load time of around a second http://gtmetrix.com/reports/itthinx.wpengine.com/frFumZKs
Forum: Plugins
In reply to: [Groups] Groups generating query that takes 10 sec on premium wp serverJust following up with a result for the query mentioned by the OP, this one’s on WP Engine with Object Caching turned off for the test. This test site has 1426 posts (in addition to 10000 WooCommerce products) at the time and yields the following results as per Query Monitor:
Page generation time Peak memory usage Database query time Database queries 0.9145 0.0% of 3,600s limit 24,225 kB 4.6% of 524,288 kB limit 0.0531 SELECT: 12This particular query shows
0.0437execution time.SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') AND wp_posts.ID IN ( SELECT ID FROM wp_posts WHERE ID NOT IN ( SELECT post_id FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' ) UNION ALL SELECT post_id AS ID FROM wp_postmeta WHERE wp_postmeta.meta_key = 'groups-groups_read_post' AND wp_postmeta.meta_value IN ('activate_plugins','add_users','aff_access','aff_admin_affiliates','aff_admin_options','assign_product_terms','assign_shop_discount_terms','assign_shop_payment_terms','create_users','delete_others_pages','delete_others_posts','delete_others_products','delete_others_shop_discounts','delete_others_shop_payments','delete_pages','delete_plugins','delete_posts','delete_private_pages','delete_private_posts','delete_private_products','delete_private_shop_discounts','delete_private_shop_payments','delete_product','delete_product_terms','delete_products','delete_published_pages','delete_published_posts','delete_published_products','delete_published_shop_discounts','delete_published_shop_payments','delete_shop_discount','delete_shop_discount_terms','delete_shop_discounts','delete_shop_payment','delete_shop_payment_terms','delete_shop_payments','delete_themes','delete_users','edit_dashboard','edit_files','edit_others_pages','edit_others_posts','edit_others_products','edit_others_shop_discounts','edit_others_shop_payments','edit_pages','edit_plugins','edit_posts','edit_private_pages','edit_private_posts','edit_private_products','edit_private_shop_discounts','edit_private_shop_payments','edit_product','edit_product_terms','edit_products','edit_published_pages','edit_published_posts','edit_published_products','edit_published_shop_discounts','edit_published_shop_payments','edit_shop_discount','edit_shop_discount_terms','edit_shop_discounts','edit_shop_payment','edit_shop_payment_terms','edit_shop_payments','edit_theme_options','edit_themes','edit_users','export','export_shop_reports','groups_access','groups_admin_groups','groups_admin_options','import','install_plugins','install_themes','level_0','level_1','level_10','level_2','level_3','level_4','level_5','level_6','level_7','level_8','level_9','list_users','manage_categories','manage_links','manage_options','manage_product_terms','manage_shop_discount_terms','manage_shop_discounts','manage_shop_payment_terms','manage_shop_settings','moderate_comments','promote_users','publish_pages','publish_posts','publish_products','publish_shop_discounts','publish_shop_payments','read','read_private_pages','read_private_posts','read_private_products','read_private_shop_discounts','read_private_shop_payments','read_product','read_shop_discount','read_shop_payment','remove_users','switch_themes','unfiltered_html','unfiltered_upload','update_core','update_plugins','update_themes','upload_files','view_shop_reports','view_shop_sensitive_data','premium','fiver','niner','three') ) ORDER BY wp_posts.post_date DESC LIMIT 0, 10Forum: Plugins
In reply to: [Mailgun for WordPress] Invalid plugin headerSame thing here, I was just going to test it for compatibility within a certain setup. The
trunkfolder must be removed for the plugin to successfully activate.Forum: Plugins
In reply to: [Groups] Problem assigning a group with edit capabilities to a single post.PS : Documentation http://www.itthinx.com/documentation/groups/
Forum: Plugins
In reply to: [Groups] Problem assigning a group with edit capabilities to a single post.Hi,
It seems that you’re misunderstanding how it works a bit. Please have a look at the documentation and take into account that capabilities granted to a group will effectively grant these capabilities to its members.
Cheers
Forum: Plugins
In reply to: [Groups] Restricting Content in WordPress Templates@joshseltzer @wpseeker the code is correct but you’re missing one obvious thing here, the conditional enclosing what you want to happen if it’s a member:
if ( $is_a_member ) { // do what needs to be done for the member, for example ... echo 'Foo!'; }Forum: Plugins
In reply to: [Groups 404 Redirect] Redirect to a page or post option is not workingHi,
Assuming that you have marked the “Redirect to a page or post” option and indicated a post ID, if it still brings you to the home page, it seems that it isn’t able to identify the post based on the ID you are providing.
After you click the Save button with a post ID indicated, do you get to see the post’s title below where it says Title: ?
If not, please provide details on other plugins activated and where your site is hosted. There might be a conflict, the option normally works fine.
Cheers
Forum: Plugins
In reply to: [Groups 404 Redirect] The redirect throws Internal Error 500Hi,
Many thanks for sharing that. I’ve just seen your post here, had I seen it before it could have saved me a couple of hours ๐ You’re right, the call to method_exists() is involved in the issue. There is a bug in some versions of PHP where a call to method_exists( $class, $method ) when the $class does effectively not exist will result in a segmentation fault. I’ve added a fix that circumvents this bug and released version 1.2.3.
Cheers
Forum: Plugins
In reply to: [Groups 404 Redirect] 502 Gateway Error on WP EngineThe cause of the 502 is a bug in some versions of PHP where a call to method_exists( $class, $method ) when the $class does effectively not exist will result in a segmentation fault. I’ve added a fix that circumvents this bug and released version 1.2.3.
Forum: Plugins
In reply to: [Groups] Groups generating query that takes 10 sec on premium wp serverI’m linking to the conversation here http://www.itthinx.com/plugins/groups/#comment-381974 so we have this in one place. Please follow up there if you have any comments.
Please check if Object Caching is enabled, I’ve done tests with that and the results look ok on a test site with +1k posts and Groups activated and access restrictions in place that involve several groups and capabilities.
Note that there is an option which can disable WP Engine’s ‘governor’, in wp-config.php :
define( 'WPE_GOVERNOR', false );although that should not be necessary.
IMO these LONG QUERY ‘errors’ should not show up as ‘errors’ per se but at most be classified as ‘warnings’ – as I’m pointing out in the comment to which I link above, some of the queries that are recorded are valid and can be considered optimal up to a certain extent given the conditions that surround their usage (e.g. capabilities obtained).
Forum: Plugins
In reply to: [Affiliates] how close several refferal from 1 affiliate?The Pro version provides additional filters in the Totals section for that: Affiliate Id, Affiliate Name and Affiliate Username.