I get a number of PHP warnings in my error logs when a page using WP-Syntax is accessed on my site:
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2039
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2039
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2411
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: implode(): Argument must be an array in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3365
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3388
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3388
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3429
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3481
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3481
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2039
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2039
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 2411
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: implode(): Argument must be an array in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3365
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3388
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3388
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3429
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3481
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3481
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: array_keys() expects parameter 1 to be array, null given in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
[Sun Jan 05 04:35:09 2014] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in ~/public_html/wordpress/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3626
Looks like the same erroneous use of foreach, array_keys, and implode is used repeatedly throughout geshi.php.
I get a number of PHP warnings in my error logs when a page using WP-Syntax is accessed on my site:
Looks like the same erroneous use of
foreach,array_keys, andimplodeis used repeatedly throughout geshi.php.