Hello and sorry to bother with a newbie problem:
I have several personal hobby project websites running Dokuwiki. After a upgrade to Release 2020 to Hogfather failed (one of the plugins was incompatible and it crashed on starting, I made a rolback to release gazebo and everything worked perfect until last week. So I'm sorry, I run an older Release.
Last week, my webspace provider changed from PHP 7.3 to PHP 8.0 or 8.1, sonce then, all my websites are unavailable. I have only a white page and it says Errer 500.
I contacted my webspace provider and they referred me to "PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in xxxxxx/inc/init.php on line 557"
I managed to locate the init.php file and could access it using ftp. But now I'm stuck, I do not now what to do next.
This is the region around the said line 557:
// find the (indestructable) root of the path - keeps windows stuff intact
if($path{0} == '/'){
$root = '/';
}elseif($iswin){
// match drive letter and UNC paths
if(preg_match('![a-zA-z]🙂(.)!',$path,$match)){
$root = $match[1].'/';
$path = $match[2];
}else if(preg_match('!\\\\[\\/]+\\[\\/]+[\\/](.)!',$path,$match)){
$root = $match[1];
$path = $match[2];
}
}
$path = str_replace('\','/',$path);
// if the given path wasn't absolute already, prepend the script path and retry
if(!$root){
$base = dirname($_SERVER['SCRIPT_FILENAME']);
$path = $base.'/'.$path;
if($run == 0){ // avoid endless recursion when base isn't absolute for some reason
$run++;
return fullpath($path,$exists);
}
}
$run = 0;
I hope someone out there can help me, my mother tongue is (swiss) german, so I hope you understand what I try to explain,
kind regards Martin Boesch