Moin,
folgenden Fehler finde ich bei einem Freund auf dem Blog, nachdem ich dort von MySQL 4 auf Vers. 5 und auf PHP 5 umgestellt, sowie WP und die entsprechenden Plugins aktualisiert habe.
ZitatWarning: strpos() expects parameter 1 to be string, object given in /xxxxx/domain.de/wp-includes/functions.php on line 3590
Google sagt mir auch nix über diesen Fehler und hier im Forum konnte ich auch nichts finden... :shock:
In der functions.php steht entsprechend folgendes...
PHP
/**
* File validates against allowed set of defined rules.
*
* A return value of '1' means that the $file contains either '..' or './'. A
* return value of '2' means that the $file contains ':' after the first
* character. A return value of '3' means that the file is not in the allowed
* files list.
*
* @since 1.2.0
*
* @param string $file File path.
* @param array $allowed_files List of allowed files.
* @return int 0 means nothing is wrong, greater than 0 means something was wrong.
*/
function validate_file( $file, $allowed_files = '' ) {
if ( false !== strpos( $file, '..' ))
return 1;
if ( false !== strpos( $file, './' ))
return 1;
if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) )
return 3;
if (':' == substr( $file, 1, 1 ))
return 2;
return 0;
}
Alles anzeigen
Kann mir bitte jemand einen Rat, oder Tipp geben, was ich nun tun muss ??