Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • This 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.
    paulm-ua

    (@paulm-ua)

    I 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

    Thread Starter paulm-ua

    (@paulm-ua)

    I 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!

    Thread Starter paulm-ua

    (@paulm-ua)

    I 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 );

Viewing 4 replies - 1 through 4 (of 4 total)