strike3
Forum Replies Created
-
Forum: Plugins
In reply to: [Robo Gallery - Photo & Image Slider] Lightbox loading behind top menuOkay, that’s great news! Thanks so much.
MattForum: Plugins
In reply to: [The Events Calendar] Critical Error on latest version of WordPressOkay, thanks for the info on that. I did some more testing on a staging site, and it was a plugin called WooSidebars that was causing the warning over header information. Not sure why it was listing your plugin in the warning message, but disabling that other plugin fixed the issue. Somehow WooSidebars must have been interacting with the Events Calendar, and the combo was causing our memory to go over the maximum limit (256M), which was apparently the actual critical error.
Anyway, we’re good to go now. Thanks again for your help!
MattForum: Fixing WordPress
In reply to: Fatal Error caused by specific custom post categoryThanks so much for pointing me in the right direction! It turns out the site was using some old code based on this post in tutsplus: https://code.tutsplus.com/how-to-use-radio-buttons-with-taxonomies–wp-24779a
The code had been working for years, but something with a recent update (either WordPress or maybe a newer PHP version?) broke it. It was replacing the default category metabox with a radio select. I think the idea was to not allow multiple categories for a single post. Anyway, I removed that code and let WordPress load the default category metabox (a checkbox instead of a radio select), and now it’s working again.
Thanks again for the help!- This reply was modified 1 year, 1 month ago by strike3. Reason: Edited to mark as resolved
Hi Georgi,
Okay, that sounds good. Thanks!
MattAlso, I did exclude both the affected post types and the post type URLs (the main page and all subpages using wildcards) in the plugin settings, but the error has continued happening.
MattThank you once again! I checked that shortcode, and sure enough, it was using query_posts, which (from what I’m reading) may be worse than WP_Query. I’ve rewritten it to use get_posts instead, and now it is working fine with Relevanssi. Thank you for the amazing support here.
Sincerely,
MattThat worked perfectly! Thank you so much. That one is a custom shortcode, so it makes sense it would be the problem here. I should have realized that earlier. We made the shortcode because Visual Composer didn’t have a good way to display some of our ACF data. I’m guessing it’s probably how the shortcode is creating its loop or something like that causing this problem. Anyway, no need to go further on this–your solution with excluding the shortcode will work perfectly for what we need.
In case it’s helpful to anyone later on, here’s the functions.php filter used to exclude the shortcode (in this case, our shortcode is [listemployee], and it can have other parameters/text within the shortcode):
add_filter( ‘relevanssi_pre_excerpt_content’, ‘rlv_listemployee’, 8 );
function rlv_listemployee( $content ) {
return preg_replace( ‘/\[listemployee.*\]/’, ‘\1’, $content );
}
Thank you again!
MattYes, that fixed the issue. Thanks! I guess that will work since it still lists page URLs though there isn’t much text with most search results now.
I’m a little curious about what could be happening with our theme and why only a few search terms seemed to be triggering it. If I could figure that part out, I imagine the theme authors would be willing to make a change to make their theme more compatible with Relevanssi. We’re using one of the top-selling ones over on ThemeForest (the7 theme).
Thanks again for the quick help on this!
Sincerely,
MattForum: Plugins
In reply to: [AsynCRONous bbPress Subscriptions] include post author in notifications?Great, thanks so much!
Matt
Forum: Plugins
In reply to: [AsynCRONous bbPress Subscriptions] include post author in notifications?Hi Markus,
Thanks for your help! Yeah, it is a weird request. They moderate all the posts on their forum, so I think they’re wanting people to know when the topic is approved/posted. I couldn’t get the code above to work, but I think I just found the line in ABBPS that was causing this. They’re using version 3.3 of the plugin, and this was line 146 in asynchronous-bbpress-subscriptions.php:$user_ids = array_diff( $user_ids, array( bbp_get_topic_author_id( $topic_id ) ) );
If I comment that out, the authors get the notification. Like you said, though, it’s not ideal to comment things out of the main plugin. I guess if the plugin isn’t getting updates, though, I could just leave it at that. Otherwise, do you know how I could get that to work through functions.php? If I tried to add the author back to the array, I’m not sure which would happen last before the notifications went out (i.e., would the author get removed again by the line above?).
Thanks again for taking the time to reply on this. Let me know if there’s a way for me to buy you a cup of coffee or something!
Matt
Forum: Plugins
In reply to: [bbPress - Moderation Tools] question about pending topic notificationsHi,
We finally figured this one out a couple of weeks ago. Sorry I haven’t updated this thread yet. It seemed to be a compatibility issue with the mail queue plugin we were using (WordPress Mail Queue). I convinced the site owner to switch to an external SMTP service (Amazon SES) and we’ve had no problems with emails since then.Thanks for checking in on this. Your plugin has been fantastic for our site!
Matt
Okay, thanks for the heads-up! I’ll check on this when we update the plugin.
Matt
It works! Sorry for the delayed reply. I had to modify the code slightly because of another plugin we use (AsynCRONous BBPress Subscriptions). Just in case anyone else sees this and is using that plugin, just change the bbp_notify_forum_subscribers and bbp_notify_topic_subscribers in the code above to abbps_notify_forum_subscribers and abbps_notify_topic_subscribers. We have to go that route on our site because BCC’ing all our forum subscribers was putting us over our host’s SMTP limits.
Again, thank you so much for fixing this!
Matt
Great, thanks so much! I’ve added that in and will let you know how it goes. Really appreciate your help with this!
Matt
Forum: Plugins
In reply to: [BP Profile Search] no results with search on name fieldHi Andrea,
Great, that works! I must have had it set to ‘contains’ before and changed it without realizing it. Sorry for the hassle!Matt