BuddyDev

Search

[Resolved] PHP error in BuddyBlog slug

  • Participant
    Level: Initiated
    Posts: 3
    Simone on #30031

    Hi I use buddyblog and I have entered the code to translate the slug of the buddyblog pages. define ('BUDDYBLOG_ARCHIVE_SLUG', 'articles');
    Using “Query Monitor” it signals me a php error with the following message Constant BUDDYBLOG_ARCHIVE_SLUG already defined with the following statement:

    
    wp-content/plugins/bp-custom.php:2
    BuddyPress->constants()
    wp-content/plugins/buddypress/class-buddypress.php:122
    BuddyPress::instance()
    wp-content/plugins/buddypress/bp-loader.php:46
    buddypress()
    wp-content/plugins/buddypress/bp-loader.php:90
    

    . I’m not a programmer but I understand that there seems to be a script to translate the double slug.
    Is it just my problem or has someone already happened?

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #30039

    Hi Simone,
    Thank you for using BuddyBlog.

    I can see from the above error that the slug is being defined more than once. You should not define same thing twice.

    Can you please recheck your bp-custom.php to see if you have defined it twice( is BUDDYBLOG_ARCHIVE_SLUG present twice?)

    Regards
    Brajesh

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #30043

    Hello Simone,

    Please download the latest version of plugin form the following url:

    https://buddydev.com/plugins/buddyblog/

    Regards
    Ravi

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #30097

    Hi Simone,
    Please upgrade as Ravi suggested. There was a bug in the plugin and not in your code in bp-custom.php

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 3
    Simone on #30156

    Hi! Sorry for the delay in this message but only now have I had time to follow your advice.
    OK all right, after the update the php error message is gone!
    But is there a way to automatically update your plugins?
    Thanks you are always available !!!

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #30159

    Thank you for confirming Simone.

    I am glad it is resolved.

    Yes, you can use BuddyDev dashboard for automatic updates.
    https://buddydev.com/plugins/buddydev-dashboard/

    Regards
    Brajesh

The topic ‘ [Resolved] PHP error in BuddyBlog slug’ is closed to new replies.

This topic is: resolved