Replies
Hi Brajesh,
I changed the line in the wp-config.php file to allow debugging (WP_DEBUG to true) and this is what I got when I tried to install the expirable BP member plugin (note some of the messages were already there before I tried to install the plugin, and that I have changed the higher levels of the addresses of the file location in the URLs below, ie everything after “mydomain.com/public_html/” is the true file location):
————————————————————————————————-
Deprecated: Creation of dynamic property Wbc_WooCommerce_Settings_Page::$id is deprecated in mydomain.com/public_html/wp-content/plugins/buddypress-recaptcha/admin/includes/class-wbc-buddypress-settings-page.php on line 28
Deprecated: Creation of dynamic property Wbc_WooCommerce_Settings_Page::$label is deprecated in mydomain.com/public_html/wp-content/plugins/buddypress-recaptcha/admin/includes/class-wbc-buddypress-settings-page.php on line 29
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the jonradio-multiple-themes domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in mydomain.com/public_html/wp-includes/functions.php on line 6114
Deprecated: Creation of dynamic property Devb_Conditional_Profile_Admin::$path is deprecated in mydomain.com/public_html/wp-content/plugins/conditional-profile-fields-for-buddypress/admin.php on line 49
Deprecated: Creation of dynamic property Devb_Conditional_Profile_Admin::$url is deprecated in mydomain.com/public_html/wp-content/plugins/conditional-profile-fields-for-buddypress/admin.php on line 50
Deprecated: Creation of dynamic property MPP_BuddyPress_Component::$forbidden_names is deprecated in mydomain.com/public_html/wp-content/plugins/mediapress/modules/buddypress/mpp-bp-component.php on line 188
Deprecated: Creation of dynamic property MPP_BuddyPress_Component::$valid_status is deprecated in mydomain.com/public_html/wp-content/plugins/mediapress/modules/buddypress/mpp-bp-component.php on line 207
——————————————————————————————————
I tried to deactivate all the plugins except the buddypress plugins and then reactivate the expirable members plugin and it stil said a fatal error occurred.
Thank you
StephanieHi Brajesh,
Sorry if this is a stupid question, but I downloaded the php file from Github (when downloaded, it is only a PHP format) and put it in a zipped folder, then uploaded it in my dashboard in Plugins -> Add New. It was uploaded successfully but could not be activated. When I tried to activate it, there was an error message saying “Plugin could not be activated because it triggered a fatal error.”
So, since I can’t install it, I can’t proceed with other tests.
StephanieHi Brajesh,
I added the expiration feature by code snippet from the github link mentioned above, I didn’t install it as a plugin. I deactivated the code, then reactivated the code, purged the cache, and looked at the list of cron jobs, and “bp_fma_remove_featured” was not there, nothing similar in wording to that was there either.
Thanks
StephanieI installed and activated “Advanced Cron Manager – debug & control” and it has a list of jobs scheduled, but I can’t find or identify which one would be the job scheduled to automatically remove the featured member. For example, I don’t know if it is the “woocommerce_tracker_send_event” since featured membership can be purchased via Woocommerce, or if it is “puc_cron_check_updates-buddypress-member-type” cause the name is about buddypress member type.
Hello Brajesh,
Thanks for your email.By not working I mean that the codes I tried had no visual effect at all.
I tried your suggestion of removing the quotes and there was some effect but not ideal and not every customising shortcode I tried worked. I have an example page. As it is a test site and may be deleted in the future, I will add the link as a private reply in a following post.This is what I tried to change the slider speed:
[bp-featured-members view=slider slide-speed=4000]
For me on Firefox 115.21.0esr, it slides slowly but it slides back and forth in both directions and it looks very awkward. On Chrome, (I have an outdated version of Chrome so it might not display correctly), it slides in one direction but then it suddenly jumps.)
I tried to add other shortcodes for other customisations, like this:
[bp-featured-members view=slider slide-speed=4000 slide-pauseOnHover=1]
I assumed that the 1 in
slide-pauseOnHover=1
means “on”, since the plugin page says the default is 0. But when I hover over it, it doesn’t stop sliding.
Hello,
I am trying to change the duration of the featured member validity period in the expirable membership code mentioned above. I noted you said “Please change days from 7 to 30 in this.”.
I would like to check something, because when I tried changing the number of days to 1 (so that I don’t have to wait a long time to see if worked), it didn’t work.
When I looked at the code, on line 59 the comment says
Setup hourly cronjob to remove featured members
and on line 64 it sayswp_schedule_event( time(), 'hourly', 'bp_fma_remove_featured' );
. Note that they both say “hourly”. As I understand it, cron jobs that run hourly is more accurate to the day than cron jobs that run daily since it would run 24 times in a day and check for expiration 24 times, so maybe this isn’t an error.But then on line 76 it says “How much time to expire.” and the time is in seconds, not days or hours, as written on line 81 where it says
DAY_IN_SECONDS
.So my question is this: my featured members are not expiring – I put 1 for 1 day on line 81 where it originally says
return 7 * DAY_IN_SECONDS;
.What am I doing wrong, should it say “DAY_IN_HOURS” instead, or am I supposed to write the duration of the number of days in seconds format (ie “86400” for 1 day) so it looks like “return 86400 * DAY_IN_SECONDS;”?
Thank you
Stephanie- This reply was modified 3 weeks, 4 days ago by
Stephanie. Reason: Edit for clarity
- This reply was modified 3 weeks, 4 days ago by
Hello Brajesh and Ravi,
Sorry to re-start an old topic. I tried this and I could get the slider to show, but I couldn’t figure out how to use the other customisation variables. I am not a developer but based on the little I do know from experience that I picked up, I tried the variables from this page: https://buddydev.com/plugins/bp-featured-members/.
For example for the slider speed, I tried
[bp-featured-members view="slider" slide-speed="1000"]
since it said (int) where int means integer and the default is 400 (miliseconds I presume) so I put 1000. I also tried
slide-pauseOnHover
and
max
using
=""
format as well as the for example max() format, and placed it immediately after the default
[bp-featured-members view="slider"]
shortcode between the two square brackets but nothing worked. Not sure if I am using the wrong code format or if there is a conflict with the theme. I am using a child theme of the BuddyX theme.I have version 1.1.3 of the Buddypress Featured Members plugin, wordpress Version 6.7.2, and a child theme of BuddyX version 4.7.7.
Thank you
Stephanie