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 definedwith 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?
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?)
The topic ‘ [Resolved] PHP error in BuddyBlog slug’ is closed to new replies.