properez
Member
Posted 7 months ago #
Hello,
I installed buddypress today and i got the following error message:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of do_action(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/05/8404005/html/community/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php on line 751
I recieved a couple of other messages too but i think its all related.
Does anyone know what i should do about that?
Change the the allow_call_time_pass_reference in the php.ini file to true. If you open your php.ini file and find the entry for it, it should be set to false. Or if it's not in there- set it like this:
allow_call_time_pass_reference = true
properez
Member
Posted 7 months ago #
Ok, That makes sense thank you.
Jessica
Member
Posted 6 months ago #
I tried adding the allow_call_time_pass_reference in my php.ini file but it didn't work. Is there a further fix for this please?
Jess
properez
Member
Posted 6 months ago #
Well WordPress has stated that there were some messages that will appear when developing and setting debug to true in the "wp-config" file.
Go into your wp-config file and edit debug. It will look like this:
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
Notice that the bolded area says false for 'wp-debug'
That should do it.It worked for me.
properez
Member
Posted 6 months ago #
I mean to set it as false.
NOTE: If it still happens clear your "cache" and "cache_public" folder.
But make sure that you dont delete the actual folders. You can erase files inside them that you dont want to erase.
Those files are: user1.php, and .htaccess this being the most important. If its not there don't fret. Its cool.Just erase all of the other files inside the "cache" folders.
Then the error messages should go away upon refreshing.
hope this helps.
This deprecated message in original post has been fixed in BuddyPress trunk. If you want to fix it now in your installation, open up wp-plugins/buddypress/bp-xprofile/bp-xprofile-classes.php and go to line 751
replace:
<?php do_action( 'xprofile_field_additional_options', &$this ) ?>
with:
<?php do_action_ref_array( 'xprofile_field_additional_options', array( &$this ) ); ?>
Jessica
Member
Posted 6 months ago #
Thats brilliant thank you Mercime, worked for me!