paulm-ua
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox] Can't get iframe to showThis is the same issue I had…it is due to the YouTube video URL getting changed from https to http in the iframe request (so that content is not pulled to the site).
- This reply was modified 8 years, 2 months ago by paulm-ua.
Forum: Plugins
In reply to: [SB Child List] MySQL Warning after upgrade to 4.3I am also seeing these warnings (could be related to WP 4.0, or specific php and MySQL versions)…I’m not seeing these warnings on some hosts where I have sites hosted…looks like the mysql_real_escape_string function expects two parameters, but it’s only getting one. Anyone have any ideas?
Here are the warning messages:
Warning: mysql_real_escape_string(): Access denied for user ‘xxxxx’@’localhost’ (using password: NO) in /wp-content/plugins/sb-child-list/sb_child_list.php on line 219
Warning: mysql_real_escape_string(): A link to the server could not be established in /wp-content/plugins/sb-child-list/sb_child_list.php on line 219
Warning: mysql_real_escape_string(): Access denied for user ‘xxxxx’@’localhost’ (using password: NO) in /wp-content/plugins/sb-child-list/sb_child_list.php on line 220
Warning: mysql_real_escape_string(): A link to the server could not be established in /wp-content/plugins/sb-child-list/sb_child_list.php on line 220
Forum: Plugins
In reply to: [New User Approve] User Role not set correctly when ApprovedI found the issue in the code triggered when the user register form was submitted. It was not related to New User Approve. Thank you for looking at this issue!
Forum: Plugins
In reply to: [New User Approve] User Role not set correctly when ApprovedI tried to use the following action in my functions.php file, but it didn’t work (what did I screw up):
// *** Set the Role of the new user to Subscriber when the user is approved ***
function set_user_role_to_subscriber($user) {
$wp_user_object = new WP_User($user->ID);
$wp_user_object->set_role(‘subscriber’);
}
add_action( ‘new_user_approve_approve_user’, ‘set_user_role_to_subscriber’, 10, 1 );