Title: Fatal error caused by plugin
Last modified: October 14, 2020

---

# Fatal error caused by plugin

 *  Resolved [ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * (@ingeborgvkb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/)
 * This morning my website gave a fatal error message related tot Ultimate member
   plugin. I had to deactivate the plugin to get the site working again. THe error
   message now reads:
    Fatal error: Namespace declaration statement has to be the
   very first statement or after any declare call in the script in /home/pcgu509385/
   domains/vkb-online.nl/public_html/wp-content/plugins/ultimate-member/includes/
   class-config.php on line 2
 * Is there a known solution? I had to take part of the site offline to prevent 
   people without login permission to get access. Would prefer reactivating this
   app, since i have had no problems prior to today.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13536649)
 * Hi [@ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * Could you please tell us what version of Ultimate Member you’re using? Does this
   issue occur with the latest version 2.1.11?
 * Regards,
 *  Thread Starter [ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * (@ingeborgvkb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13536698)
 * i’m using Ultimate Member (version 2.1.11) PHP version 7.2.33
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13536897)
 * Hi [@ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * Could you please try removing the space before the `namespace um` in `/home/pcgu509385/
   domains/vkb-online.nl/public_html/wp-content/plugins/ultimate-member/includes/
   class-config.php`?
 * please see screenshot in the link for you referance:
    [https://drive.google.com/file/d/10Qz_4OraNbzHFhrY75Xbe-T4r9PRkwFr/view](https://drive.google.com/file/d/10Qz_4OraNbzHFhrY75Xbe-T4r9PRkwFr/view)
 * Let’s see if the fatal error goes away.
 * Regards,
 *  Thread Starter [ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * (@ingeborgvkb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13541716)
 * THanks I found the location you are showing in the screenshot, but it looks a
   little bit different. You say to remove the space but it might look like i should
   add a space? Not sure what is correct. please advise, i’m a bit scared to change
   something when i don’t know what i’m doing 🙂
 * I hope this link works so you can see my screenshot.
    [https://drive.google.com/file/d/1Br_evWFGSwclyCjUNXLurSW4hn0sBRrq/view?usp=sharing](https://drive.google.com/file/d/1Br_evWFGSwclyCjUNXLurSW4hn0sBRrq/view?usp=sharing)
 *  Thread Starter [ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * (@ingeborgvkb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13556826)
 * [@champsupertramp](https://wordpress.org/support/users/champsupertramp/)
    I have
   tried to remove the space but it doesnt seem to work? Not sure If I am doing 
   it right. Please advise.
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13559858)
 * Hi [@ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * It looks like your site has malware as the UM doesn’t generate those codes above
   the <?PHP in the file that I was talking about.
 * Please install Sucuri WP plugin to track those affected files maybe this is the
   reason why it throws the error.
 * Regards,
 *  Thread Starter [ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * (@ingeborgvkb)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13561169)
 * [@champsupertramp](https://wordpress.org/support/users/champsupertramp/) thank
   you! you were right, i removed the code in the first line and the plugin now 
   works fine. In the middle of checking other changes with Sucuri. Greatly appreciate
   all the help!
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13561552)
 * Hi [@ingeborgvkb](https://wordpress.org/support/users/ingeborgvkb/)
 * Thannks for letting us know, I am closing this thread now.
 * Regards,
 *  [babaorum](https://wordpress.org/support/users/babaorum/)
 * (@babaorum)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13984836)
 * out

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Fatal error caused by plugin’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [babaorum](https://wordpress.org/support/users/babaorum/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-caused-by-plugin/#post-13984836)
 * Status: resolved