Fatal Error with PHP 8.0
-
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /wp-content/plugins/al-custom-permalink/al-custom-permalink.php on line 246
Current Code:
return ($string{0} == '/' ? '/' : '') . trailingslashit($url['path']) . $_CPRegisteredURL;
I just edited it directly in my plugin and it worked but it will be great if you can update it in a new update release.
New Updated Code: Just replace the curly braces ( “$string{0}” ) with ( “$string[0]” ).
return ($string[0] == '/' ? '/' : '') . trailingslashit($url['path']) . $_CPRegisteredURL;
Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal Error with PHP 8.0’ is closed to new replies.