Ich habe folgende Fehlermeldung:
Warning: Illegal offset type in /homepages/3/d192916391/htdocs/wp-admin/includes/plugin.php on line 497
Durch diese Fehlermeldung kann ich anscheinend nicht die .htaccess auf PHP5 einstellen/ändern. Ich erhalte dann die Fehlermeldung:
Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in /homepages/3/d192916391/htdocs/wp-includes/functions.php on line 3018
Ich hatte in einer anderen Wordpress-Installation die Plugins vor der Aktualisierung deaktiviert.
Wie kann ich das beheben?
Vielen Dank!
Hallo,
Ich habe folgende Fehlermeldung:
Warning: Illegal offset type in
/homepages/3/d192916391/htdocs/wp-admin/includes/plugin.php on
line 497
Was steht denn in plugin.php auf Zeile 496 bis 498?
Cheers, Felix
Die Fett markierte Zeile müßte es sein, (wenn ich mich nicht verzählt habe):
**
* Validate the plugin path.
*
* Checks that the file exists and {@link validate_file() is valid file}.
*
* @since unknown
*
* @param string $plugin Plugin Path
* @return WP_Error|int 0 on success, WP_Error on failure.
*/
function validate_plugin($plugin) {
if ( validate_file($plugin) )
return new WP_Error(‚plugin_invalid‘, __(‚Invalid plugin path.‘));
if ( ! file_exists(WP_PLUGIN_DIR . ‚/‘ . $plugin) )
return new WP_Error(‚plugin_not_found‘, __(‚Plugin file does not exist.‘));
$installed_plugins = get_plugins();
if ( ! isset($installed_plugins[$plugin]) )
return new WP_Error(‚no_plugin_header‘, __(‚The plugin does not have a valid header.‘));
return 0;
}
/**