• Xavvi

    (@skinny-latte)


    Had to disable this as it was causing errors on the frontend:

    Warning: array_values() expects parameter 1 to be array, boolean given in /home/public_html/wp-content/plugins/wp-seo-acf-content-analysis/wpseocontent.php on line 21
    
    Warning: Invalid argument supplied for foreach() in /home/public_html/wp-content/plugins/wp-seo-acf-content-analysis/wpseocontent.php on line 7

    Not cool.

    https://wordpress.org/plugins/wp-seo-acf-content-analysis/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I get similar…

    Warning: array_values() expects parameter 1 to be array, boolean given in C:\WampDeveloper\Websites\discoveringantarctica.org.uk\webroot\wp-content\plugins\wp-seo-acf-content-analysis\wpseocontent.php on line 21
    
    Warning: Invalid argument supplied for foreach() in C:\WampDeveloper\Websites\discoveringantarctica.org.uk\webroot\wp-content\plugins\wp-seo-acf-content-analysis\wpseocontent.php on line 7

    This is when the page loads content into the main browser window from a link in an iframe.

    I will probably have to disable the plugin until this is sorted out.

    Strange that this plugin is even loading in the frontend like that, this should all be trapped in admin. That seems like a mistake to begin with. but then this is just sloppy type handling.

    A quick patch without really understanding wahts going on, i changed:

    function getValues($array) {
    		$value_array = array_values($array);
    		return $value_array;
    	}

    to:

    function getValues($array) {
    		if(is_array($array)){
    			$value_array = array_values($array);
    		} else {
    			$value_array = array(0=>$array);
    		}
    		return $value_array;
    	}

    in /wp-seo-acf-content/wpseocontent.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Outputs error code on frontend’ is closed to new replies.