gaiusjaugustus
Forum Replies Created
-
I am *not* using ARMember Pro. I’m currently using ARMember Lite. I stated this in my initial post, and nowhere in my posts did I indicate I was using Pro.
Please answer my question……
Any ideas as to why this could be occurring or where the error is coming from?
I want to upgrade to Pro, but if I need to be able to trust the Lite version before committing to a purchase.
Hello,
Sorry for the delayed response. Thank you so much for following up and providing me with steps to give you more information (and for confirming that this isn’t a widespread issue).
In CF, I have Widget Mode set to “Managed”.
I have “Would you like to opt for pre-clearance for this site?” set to “No”. Should this be “Yes”?? If so, what should I set the follow up question to?
I turned off my caching plugins for the following tests. URLs: https://pastebin.com/gCZFwkV9
I have 2 login URLs. One is set by AOIS in the settings to hide my wp-login URL. When I attempt to login with valid credentials on this page, I receive the “ERROR: Your answer was incorrect – please try again.” message.
The second URL is a front end URL for members. Interestingly, when I use the same credentials to log in on this form, I was able to log in successfully.
On neither form was I prompted with an interactive challenge.
Let me know if there’s any further information I can give you. I have turned back on my caching plugins to keep my site’s performance at its best. However, I’ll leave Cloudflare Turnstile enabled until I’m forced to switch back to Google Recaptcha.
Thank you for your time and assistance.
Thank you for the follow up.
I updated my AR Member plugin to version 4.0.28. I also updated my site to WP 6.5 and ensured all my other plugins are up to date.
The fatal PHP error has continued to occur every hour or two. Here are the times today I received an email indicating the error occurred: 1:34 AM, 3:34 AM, 5:33 AM, 7:34 AM, 9:33 AM, 11:33 AM, 1:33 PM, 2:42 PM, 4:05 PM, 5:34 PM, 7:33 PM, 9:33 PM. I have my site set up to notify me of every error, which has been fine up until this.
The email from Fatal Error Notify always points to a request related to the blog: eg, /blog, /blog/feed/, /blog/page/2/. But when I visit the page, even with debugging on, I don’t see any errors on the page or in the console.
Any ideas as to why this could be occurring or where the error is coming from?
Forum: Developing with WordPress
In reply to: Previous/Next links within primary category onlySupposedly, the following code will get the RankMath primary category for a post:
get_post_meta( $post_id, 'rank_math_primary_category', true );
The problem is that I’m not proficient enough at WordPress’s coding conventions to then translate this into a php snippet I can install on my site.
Therefore, what I’ve done instead is create a custom taxonomy using Advanced Custom Fields, called “story”. Each post is assigned to 1 story only. Then I can use the code from my original post as-is, replacing “category” with “story”, as shown below.
add_filter( 'next_post_link', 'my_adjacent_post_link', 10, 5 ); add_filter( 'previous_post_link', 'my_adjacent_post_link', 10, 5 ); function my_adjacent_post_link( $output, $format, $link, $post, $adjacent ) { $previous = 'previous' === $adjacent; if ( ! ( $previous && is_attachment() ) ) { $post = get_adjacent_post( true, '', $previous, 'story' ); } if ( ! $post ) { $output = ''; } else { $title = $post->post_title; if ( empty( $post->post_title ) ) { $title = $previous ? __( 'Previous Post' ) : __( 'Next Post' ); } $title = apply_filters( 'the_title', $title, $post->ID ); $date = mysql2date( get_option( 'date_format' ), $post->post_date ); $rel = $previous ? 'prev' : 'next'; $string = '<a href="' . get_permalink( $post ) . '" rel="' . $rel . '">'; $inlink = str_replace( '%title', $title, $link ); $inlink = str_replace( '%date', $date, $inlink ); $inlink = $string . $inlink . '</a>'; $output = str_replace( '%link', $inlink, $format ); } return $output; }
Thank you again for the assistance.
Forum: Developing with WordPress
In reply to: Previous/Next links within primary category onlyThat’s great! Thank you.
I thought it was built in, but now that I know it’s not, I’ve pinpointed it to be part of the RankMath SEO plugin. So it sounds like a total rewrite, instead of using the get_adjacent_post I would use get_next_post_where.
I’m struggling with the usage of this, as I’ve never coded a filter before.
Can you potentially give an example of how to retrieve the post details for the next post in a predetermined category (by ID)? Something like this?
$primarycat = get_post_meta( $post_id, 'rank_math_primary_category', true ); $adjacent = 'previous'; $where = 'AND tt.term_id IN ($primarycat)'; apply_filters( "get_{$adjacent}_post_where", string $where, bool $in_same_term, array $excluded_terms, string $taxonomy, WP_Post $post ); function modify_get_adjacent_post_where_defaults($where, $in_same_term, $excluded_terms, $taxonomy, $post) { return $where; } // add the filter add_filter( "get_adjacent_post_where", "modify_get_adjacent_post_where_defaults", 10, 5 ); if ($adjacent = 'previous') { $post=get_previous_post_where( true, '', $previous, 'category' ); } else { $post=get_next_post_where( true, '', $previous, 'category' ); }
I’m using ARMember Lite v 4.0.27, the latest version. My site and all plugins are up to date.
I don’t know what you mean, “the issue is not found”. I guess you mean you don’t find it in your documentation? I also searched ARMember’s site for the error and didn’t find anything.
I’m getting the error, there’s no doubt about that. it was picked up by the plugin Fatal Error Notify.
According to php.net, an E_ERROR is “Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted.”
https://www.php.net/manual/en/errorfunc.constants.php
Also, you shouldn’t have marked this as resolved because it is not.
This turned out to be a conflict with Object Caching (I use Docket Cache). As a workaround, I am able to disable object caching via Docket Cache, change my rules in ARMember, and then enable object caching again.
@tallgiraffepublishing Did this get fixed for you? I’m having the same issue in the free version, and I don’t want to pay for the plugin if this is broken because it’s the main feature I need.
Any updates on this? I’m still receiving these errors.
mod_fcgid: stderr: PHP Warning: FS_Plugin::_construct(): The script tried to access a property on an incomplete object. Please ensure that the class definition “FS_Plugin” of the object you are trying to operate on was loaded _before unserialize() gets called or provide an autoloader to load the class definition in /home/…/wp-content/plugins/goal-tracker-ga/freemius/includes/entities/class-fs-plugin.php on line 134, referer:
Forum: Plugins
In reply to: [Code Snippets] Could not create snippet. Request failed with status code 418I’m having the same issue with Dreamhost hosting (PHP 8.1), WordPress 6.4.2, and v?3.6.2 of the plugin.
I can confirm that downgrading to 3.3.0 worked, but obviously, I’d like to keep my plugins up to date.
Thanks for your continued work on this. I am on version 1.1.1 with auto-updates enabled.
The warnings are still appearing on my website.
Great news! When I set the plugin to Defer and then exclude the WooCommerce Square plugin, the WooCommerce Product Retailers buttons appear as expected.
Thanks for your assistance troubleshooting!
I added squarecdn.com to the exclusion list, so now the exclusion list is:
wp-includes/js,squarecdn.com
However, I’m still experiencing the issue.
What’s next?
I switched to defer and added wp-includes/js to the exclusion list. Unfortunately, the problem persisted. I’ve also cleared my cache to ensure that wasn’t the issue.
What can I try next?
Hi, Nathan,
I’m curious if you have an ETA on when the next update is coming?Thanks,
Gaius