According to our New Relic, in the last 30 minutes, there have been 52 similar errors.
Error:
Non-static method PB_Label_Wordpress_Creation_Kit::wck_generate_slug() should not be called statically
Stack:
β¦at /var/www/sitename/wp-content/plugins/profile-builder-labels-edit/
index.php (96)
in pb_label_edit_create_box called at ? (?)
in call_user_func_array called at /var/www/sitename/wp-includes/plugin.php (503)
in do_action called at /var/www/sitename/wp-admin/admin-ajax.php (44).
A partial of index.php is:
function pb_label_edit_create_box(){
global $wppb_strings;
if( is_admin() && current_user_can( 'edit_theme_options' ) ){
//var_dump( $wppb_strings );
$pblabel_fields = array();
$pblabel_backup = array();
foreach( $wppb_strings as $filename => $strings ){
/* set up the fields array */
$i = 0;
foreach( $strings as $string ){
if ( !in_array( $string, $pblabel_backup ) ) {
$pblabel_fields[] = array(
'type' => 'textarea',
'title' => $filename . '_' . $i,
'description' => 'Default: ' . $string,
'default' => $string,
);
$pblabel_backup[PB_Label_Wordpress_Creation_Kit::wck_generate_slug( $filename ) . '_' . $i] = $string;
$i++;
}
}
}
This has been happening for a while now, would anyone know what is causing and how to resolve this?