• Getting this error and don’t understand why. Any ideas?
    [31-Jul-2018 18:08:00 UTC] PHP Warning: explode() expects parameter 2 to be string, array given in /mnt/stor12-wc1-ord1/897570/site/web/content/wp-includes/functions.wp-scripts.php on line 271

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    One of your plugins or your theme has an error.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    The last line of the included function is below:

    
    function wp_enqueue_script( $handle, $src = '', $deps = array(), $ver = false, $in_footer = false ) {
    	$wp_scripts = wp_scripts();
    
    	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
    
    	if ( $src || $in_footer ) {
    		$_handle = explode( '?', $handle );
    

    Which version of PHP is your site running and why does it matter if it’s just a warning (other than to report to the offending theme or plugin causing this issue)? Contact host for best advice on how to adjust your PHP warning level and how they are logged or displayed for your site.

    https://stackoverflow.com/questions/4624474/php-difference-between-notice-and-warning

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning in… wp-includes/functions.wp-scripts.php on line 271’ is closed to new replies.