Antwort auf: Kein Zugriff auf das Dashboard

… verrückt ist, dass ich nicht weiß wie der Code da reingekommen ist

Das hat dein Webhoster eingefügt, um sein verkorkstes Berechtigungssystem auf die Reihe zu kriegen. Bei der zwangsweisen Umstellung auf PHP8 vergessen sie aber, die Funktion zu korrigieren.
Du kannst das ersetzen mit

define('FS_METHOD','direct');
define('FS_CHMOD_DIR',0755);
define('FS_CHMOD_FILE',0644);
define('WP_TEMP_DIR',dirname(__FILE__).'/wp-content/uploads');

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer