• I am given this warning on all pages:

    Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /var/www/miriamveksebo.dk/public_html/wp-includes/plugin.php on line 601

    Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/miriamveksebo.dk/public_html/wp-includes/plugin.php on line 601

    Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /var/www/miriamveksebo.dk/public_html/wp-includes/plugin.php on line 601

    When I try to login, I see only the above warning, and no way of actually logging in. I have read other threads noting the same warning, and understand that it is not something wrong with the site, but a problem being worked at by WP-engine. In the mean time, I would love to be able to overwrite the warning so potential customers aren’t turned away, and I would love to be able to log in. I have no clue what to do. Please help.

    All the best,
    Miriam

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter Veksebo

    (@veksebo)

    Hi James,

    Thank you for your reply.

    I have tried manually resetting each plugin, but that sadly didn’t solve the problem. I am wary about forcing the default theme to activate, as I am very scared that all my content, and manual design, will be lost at the same time. I have read other places that the warnings are actually not because something is wrong with my website, but something about the latest upgrade and that WP cores is working on a fix.

    I have no idea what to do, or if there is anything I could do, as I would really love to be able to log in.

    All the best,
    Miriam

    Thread Starter Veksebo

    (@veksebo)

    If I go to line 601 of /var/www/miriamveksebo.dk/public_html/wp-includes/plugin.php, as the warning is about it says (Line 601-622):

    call_user_func_array($the_[‘function’], array_slice($args, 0, (int) $the_[‘accepted_args’]));

    } while ( next($wp_filter[$tag]) !== false );

    array_pop($wp_current_filter);
    }

    /**
    * Check if any action has been registered for a hook.
    *
    * @since 2.5.0
    *
    * @see has_filter() has_action() is an alias of has_filter().
    *
    * @param string $tag The name of the action hook.
    * @param callable|bool $function_to_check Optional. The callback to check for. Default false.
    * @return bool|int If $function_to_check is omitted, returns boolean for whether the hook has
    * anything registered. When checking a specific function, the priority of that
    * hook is returned, or false if the function is not attached. When using the
    * $function_to_check argument, this function may return a non-boolean value
    * that evaluates to false (e.g.) 0, so use the === operator for testing the
    * return value.

    ——————————————————————————

    I am thinking that the value is set to zero, and if zero equals false, I could maybe test to see is an other value would be better. But as I have no clue what I am doing, I would really love your input. Does something look of to you? Should I insert something, or change something?

    Thanks a bunch!

    Moderator James Huff

    (@macmanx)

    The problem isn’t with the /wp-includes/plugin.php file itself, but rather with a function being passed through it, either a plugin or theme function.

    If it wasn’t a plugin, it’s likely your theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t log in’ is closed to new replies.