Blank Page Fatal Error

For assistance with the phpBB Wall extension
Post Reply
User avatar
Mandi
Site Admin
Site Admin
Posts: 47
Joined: July 31st, 2023, 8:37 pm
Location: Somewhere, Canada
Contact:

Blank Page Fatal Error

Post by Mandi »

After getting the install activation errors fixed, the Profile and Wall page was blank (all white). Checking the error log on the server side it said this:
PHP Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/******/forum.lipsweb.com/ext/msaulohenrique/wall/controller/helper.php on line 271
THE FIX

Locate line 271 which looks like this:

Code: Select all

$data = $like.(($count == 0) ? '' : (($count > 1) ? $this->user->lang('WALL_LIKE_THIS') : ($own == $row['user_id']) ? $this->user->lang('WALL_LIKE_THIS') : $this->user->lang('WALL_LIKE_THIS_S')));
Replace with this:

Code: Select all

$data = $like.(($count == 0) ? '' : (($count > 1) ? $this->user->lang('WALL_LIKE_THIS') : (($own == $row['user_id']) ? $this->user->lang('WALL_LIKE_THIS') : $this->user->lang('WALL_LIKE_THIS_S'))));
Post Reply