front end site crash
-
Hi,
after recent updates my frontend was no longer available and crashed with the error message “Argument 1 passed to UserAccessManager\Controller\Frontend\PostController::showEditLink() must be of the type string, null given, called in /home/www/r-fotos.de/wp-include/class-wp-hook.php on line 289″.Maybe it is a good idea, to change the listed parameter definition. I replaced
public function showEditLink(string $link, $postId): string
by
public function showEditLink( $link, $postId): string
{
if ( $link == null ) $link = ” ;
and the error was gone.
Best regards
Harald
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘front end site crash’ is closed to new replies.