CMS MADE SIMPLE FORGE

CGBlog

 

[#12159] Fatal error when "FEU Group that can view draft articles" is set to something other than none

avatar
Created By: Tristan (tristan)
Date Submitted: Thu Sep 26 06:21:44 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.15.13
CMSMS Version: 2.2.12
Severity: Major
Resolution: None
State: Open
Summary:
Fatal error when "FEU Group that can view draft articles" is set to something other than none
Detailed Description:
Not sure whether this is a FEU problem or a CGBlog problem but with
FrontEndUsers 3.1.4 and CGBlog 1.15.13 whenever you have a group set at the "FEU
Group that can view draft articles" option you'll get this fatal error on every
page that calls cgblog:

AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught TypeError: Argument
1 passed to FrontEndUsers\\FrontEndUsersManipulator::MemberOfGroup() must be of
the type integer, null given in
/home/emily/domains//public_html/modules/FrontEndUsers/lib/class.FrontEndUsersManipulator.php:1353\nStack
trace:\n#0 [internal function]:
FrontEndUsers\\FrontEndUsersManipulator->MemberOfGroup(NULL, '1')\n#1
/home/emily/domains/public_html/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)\n#2 [internal function]:
FrontendUsers\\UserManipulatorInterface->__call('MemberOfGroup', Array)\n#3
/home/emily/domains/public_html/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)\n#4 [internal function]:
FrontendUsers\\UserManipulatorInterface->__call('MemberOfGroup', Array)\n#5
/home/emily/domains/public_html/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)\n#6 [internal functi...\n', referer:
https://*************.nl/


History

Comments
avatar
Date: 2020-07-19 21:39
Posted By: Ryan Foster (RytoEX)

I can confirm that this is still happening on CGBlog 1.15.14 and FEU 3.2.2 on
CMSMS 2.2.12 when accessing any page that called CGBlog as a non-authenticated
user.  Pages would load once logged in.

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to
FrontEndUsers\FrontEndUsersManipulator::MemberOfGroup() must be of the type
integer, null given in
/site/modules/FrontEndUsers/lib/class.FrontEndUsersManipulator.php:1347
Stack trace:
#0 [internal function]:
FrontEndUsers\FrontEndUsersManipulator->MemberOfGroup(NULL, '12')
#1 /site/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)
#2 [internal function]:
FrontendUsers\UserManipulatorInterface->__call('MemberOfGroup', Array)
#3 /site/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)
#4 [internal function]:
FrontendUsers\UserManipulatorInterface->__call('MemberOfGroup', Array)
#5 /site/modules/FrontEndUsers/lib/class.UserManipulatorInterface.php(20):
call_user_func_array(Array, Array)
#6 [internal function]:
FrontendUsers\UserManipulatorInterface->__call('MemberOfGroup', Array in
/site/modules/FrontEndUsers/lib/class.FrontEndUsersManipulator.php on line 1347