WSOD Namespace declarion issue

Created on 19 March 2024, 8 months ago
Updated 3 May 2024, 7 months ago

Another uses reported this as a sidenote in another issue, but we just ran into the same problem, so I created a real issue ticket.

Upon import of the users, it threw a WSOD, with this error:

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /web/modules/contrib/clever_reach/lib/BusinessLogic/Sync/GroupSyncTask.php on line 5

It is an easy fix; the nanemsapce line is not the first line of code, so I just swapped these two lines (after the <?php) and then it worked perfectly.

<?php

namespace CleverReach\BusinessLogic\Sync;

use CleverReach\Infrastructure\Exceptions\InvalidConfigurationException;
🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024