simonavshalom
Forum Replies Created
-
Hi,
I just want to update that I found the issue. It was with the code for canceling on the next payment that I got from here: https://github.com/strangerstudios/pmpro-cancel-on-next-payment-date/blob/dev/pmpro-cancel-on-next-payment-date.php.
The line causing the issue was:
if ( 'error' === $old_level_status ) {
return $level;
}I changed it to this, and it fixed the issue:
if ( 'error' === $old_level_status || 'expired' === $old_level_status ) {
return $level;
}Hi @jarryd-long ,
This did not help. When the membership expires, the email is sent, but the membership level is not reset. this is the log:
Logged On: 09/27/2024 07:05:02
Today: 2024-09-27
User ID: 351
Expired Level: 22
Original Enddate: 2024-09-23 09:08:00
Logged On: 09/27/2024 07:05:03
Today: 2024-09-27
User ID: 351
Expired Level: 22
Original Enddate: 2024-09-23 09:08:00
Logged On: 09/27/2024 08:05:02
Today: 2024-09-27
User ID: 351
Expired Level: 22
Original Enddate: 2024-09-23 09:08:00
Logged On: 09/27/2024 08:05:03
Today: 2024-09-27
User ID: 351
Expired Level: 22
Original Enddate: 2024-09-23 09:08:00
Logged On: 09/27/2024 08:10:02
Today: 2024-09-27
User ID: 351
Expired Level: 22
Original Enddate: 2024-09-23 09:08:00and this is debug log:
[27-Sep-2024 05:05:03 UTC] PHP Warning: Undefined array key "SERVER_NAME" in /home/1305815.cloudwaysapps.com/nwnqmzy/public_html/wp-content/plugins/paid-memberships-pro/includes/email.php on line 31 [27-Sep-2024 05:05:03 UTC] Account has expired, email sent to [email protected] [27-Sep-2024 05:05:04 UTC] Account has expired, email sent to [email protected] [27-Sep-2024 05:10:02 UTC] Account has expired, email sent to [email protected] [27-Sep-2024 05:48:50 UTC] str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated [27-Sep-2024 05:48:50 UTC] PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/1305815.cloudwaysapps.com/nwnqmzy/public_html/wp-content/plugins/gravityformsadvancedpostcreation/class-gf-advancedpostcreation.php on line 2135
[27-Sep-2024 06:05:03 UTC] Account has expired, email sent to [email protected]
[27-Sep-2024 06:05:22 UTC] PHP Warning: Undefined array key "SERVER_NAME" in /home/1305815.cloudwaysapps.com/nwn***qmzy/public_html/wp-content/plugins/paid-memberships-pro/includes/email.php on line 31- This reply was modified 1 month, 3 weeks ago by simonavshalom.
Hi Jarryd
Thank you for your guidance on the issue.
This is what i get in the logs:0 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 1 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-content/plugins/paid-memberships-pro/scheduled/crons.php(76): apply_filters() 2 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-includes/class-wp-hook.php(324): pmpro_cron_expiration_warnings() 3 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 5 /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-cron.php(191): do_action_ref_array() 6 {main}
thrown in /home/12815.cloudwaysapps.com/nwdfmsy/public_html/wp-includes/class-wp-hook.php on line 324 [26-Sep-2024 10:05:23 UTC] PHP Warning: Undefined array key "SERVER_NAME" in /home/12815.cloudwaysapps.com/nwdfmsy/public_html/wp-content/plugins/paid-memberships-pro/includes/email.php on line 31
[26-Sep-2024 10:05:24 UTC] Account has expired, email sent to [email protected]
[26-Sep-2024 10:05:24 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "my_pmpro_email_expiration_date_change;" not found or invalid function name in /home/12815.cloudwaysapps.com/nwdf*msy/public_html/wp-includes/class-wp-hook.php:324
While following the logging instructions, I noticed a recurring fatal error in the logs related to a custom filter I added to change the email expiration timing. Here’s the relevant log entry:PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "my_pmpro_email_expiration_date_change;" not found or invalid function name in /home/12815.cloudwaysapps.com/nwdfmsy/public_html/wp-includes/class-wp-hook.php:324
The error seems to be caused by this custom code I had implemented:function my_pmpro_email_expiration_date_change( $days ) {
return 3;
}
add_filter( 'pmpro_email_days_before_expiration', 'my_pmpro_email_expiration_date_change;' );It looks like the issue is due to the semicolon after the function name in the
add_filter
line, which I will correct. I’ll continue to monitor after making this fix.Thank you for your help, and I’ll keep you updated if this resolves the issue.
- This reply was modified 1 month, 3 weeks ago by simonavshalom.
This is good news. thank you. I’m waiting for this update!
I found a solution and made it with javascript. You can try it also.
Forum: Plugins
In reply to: [Dynamic Visibility for Elementor] Cache issueThank you for your reply. Ofcourse I can’t avoid caching for specifiec URL’s but this is not my goal, I want to make my site faster and not sacrifice speed for dynamic visibility. If so then I would build a custom script that hides it. But I’m looking for the solution from the plugin. Maybe the way is to check the conditions that are placed in the plugin that will receive current data with the help of a JS and then avoid the page to save cache
@shameemreza thank you
I’m using updated chrome browser. It’s doesn’t show the gpay button on desktop. I even try 2 different laptops
Thank you. you are right, it was because the price was 0.
I have another issue, hope you can help. in product page it should succesfully the button googlepay/applepay, but only of mobile view. on desktop view it’s not showing.
I’ve check in the html and it shows the stripe div but not actually showing it in desktop view.
Thank you, I will try it out. Do you have an estimation of when you will update this feature so it will be possible to lock multiple selections for checkbox inputs?
Ok thank you. Can you advice with some hook or a way that i can implement it by myself with creating custom code?
Is there any updates about the sitemap feature?
OK it’s working well now. I exclude the script from wp rocket. thank you
- This reply was modified 1 year, 2 months ago by simonavshalom.
Thank you. I already did what you mean. all setting in CURCY is perfect. I prefer manage this conversation here to help others in future when he will have the same question.
Let me explain clearly, I’m using “Delay JS” in WP Rocket, so I think maybe this is what caused it. all scripts are delayed until user interaction and I think the CURCY scripts is delayed and because of that, it’s not showing the changed currency as active until user interaction (mouse move, scroll etc).
Hope you understand and wait for your solution.
You were right because inside the container there was an icon with a link this is what cause the issue. it should be a link only to the container.
- This reply was modified 1 year, 3 months ago by simonavshalom.
Forum: Plugins
In reply to: [Filter Everything — Product Filter & WordPress Filter] ETA for sitemapAnyway I will wait for this feature.
I have another question and to avoid open new topic I will ask here.
In SEO rules, which custom field available to be indexed? is it possible to index ACF text field or only checkboxes and radio buttons?