BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55292

    Hi Brajesh,

    Oh I see, I understand the issue now. I will wait for the update and hopefully that will solve the problem.

    regards,
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55280

    Hello Brajesh,

    Regarding the incorrect count of featured members, you are correct, there were indeed 4 members that were featured earlier but then I deactivated them, and also they expired using the expiration plugin.

    I thought the Featured Members plugin was causing a conflict because the member counts displayed correctly only when I deactivated the Featured Members plugin.

    I installed the Featured members as a plugin, I am not using code. How can I implement the lines of code you linked to, since I am using Featured Members as a plugin?

    Thank you
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55270

    Hi Brajesh!

    So sorry that I forgot about this. Had been busy lately and forgot to come back and provide the update.

    I have checked and it does work now. The two users that were set to “featured” is no longer featured and so it is working as it should.

    Thank you for your help!

    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55251

    Hi Brajesh,

    Thank you for your help, it was indeed the code snippet being still activated that was the issue, that was very silly of me and I am sorry for the bother. I did not realise that it was still activated as I had previously disabled the code snippet.

    So now that I have finally successfully installed it, I was able to check the cron job and the “bp_fma_remove_featured” was there and it was scheduled to run in the next 60 minutes.

    I have now set up 2 users to be featured and expire in 1 day and I will come back to report about whether it worked or not.

    Thank you so much!
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55247

    Hi Brajesh

    I just enabled WP_DEBUG_LOG and checked the debug.log file.

    I found two instances of the fatal error, they are both from today and reflect when I tried to activate the plugin. The error said:

    [31-Mar-2025 06:17:34 UTC] PHP Fatal error: Cannot declare class BP_Featured_Member_Expirable_Membership, because the name is already in use in /full_file_path_redacted/class-bp-featured-member-expirable-membership.php on line 16

    So I went to this folder and deleted it from the last activation attempt and tried to install it again, but I got the same error a third time.

    Thank you for helping,
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55245

    Hi Brajesh

    Thanks for checking. I am not sure how else I can get an error log. I could send you a screenshot of the error message but that won’t reveal much. I am not sure what else I can do here.

    Regards,
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55242

    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
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55228

    Hi 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.
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55208

    Hi Brajesh,

    Sorry for that. I removed the featured members as a test and forgot to re-feature them. I have made two test members featured members now, you can see them now.

    Thanks
    Stephanie

  • Participant
    Level: Enlightened
    Posts: 81
    Stephanie on #55207

    Hi 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
    Stephanie