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 messageConstant 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?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
BrajeshHello Simone,
Please download the latest version of plugin form the following url:
https://buddydev.com/plugins/buddyblog/
Regards
RaviHi Simone,
Please upgrade as Ravi suggested. There was a bug in the plugin and not in your code in bp-custom.phpRegards
BrajeshThank 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.