• I just installed a local webserver on my PC (using Xampp) and am getting an error message:

    Warning: Parameter 1 to FeedWordPressHTTPAuthenticator::set_auth_options() expected to be a reference, value given in C:\Users\Name\Desktop\localhost\htdocs\SiteName\wp-includes\class-wp-hook.php on line 300

    The lines around 300 in class-wp-hook.php read:

    
    				// Avoid the array_slice if possible.
    				if ( $the_['accepted_args'] == 0 ) {
    					$value = call_user_func_array( $the_['function'], array() );
    				} elseif ( $the_['accepted_args'] >= $num_args ) {
    					$value = call_user_func_array( $the_['function'], $args );
    				} else {
    					$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
    				}
    			}
    		} while ( false !== next( $this->iterations[ $nesting_level ] ) );
    
    

    I am completely lost. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m getting this error after update to 4.7 on a shared host. Can’t login to admin. Would welcome some assistance or ideas.

    RE: Warning: Parameter 1 to FeedWordPressHTTPAuthenticator::set_auth_options() expected to be a reference, value given in …

    A quick update. I’ve rolled back to WordPress 4.61 and can now log in. Still have the error at the top of the page but at least I can access again. Have a back up of plugins using UpDraft Backup plugin and I’m in the process of restoring the plugins folder, pre update now.

    As best I can determine, there’s a plugin incompatibility here.

    Thread Starter websta

    (@websta)

    For me, I also had a “headers already sent” error, so while removing the extra space at the end of the wp-config file, I added salt values (https://api.www.ads-software.com/secret-key/1.1/salt/) to wp-config, and the errors were gone.

    So, for me, I think the error related to authorization problems, namely, that the authorization info was incomplete.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Local webserver, Xampp, error from line 300 in class-wp-hook.php’ is closed to new replies.