Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Pieter1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 26, 2023 9:08 am

Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Pieter1234 » Thu Oct 26, 2023 9:22 am

Hello everyone,


I am new to this forum

I recently updated my Joomla website to version 4.4.0. Since this update, I've been encountering an annoying error message:

Message: UserFactory not set in Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel

I looked for a solution to this issue and came across this post: link to the post. The advice there was to clear the cache, which I have done via administrator/cache, but unfortunately, this did not resolve the problem.

For further diagnosis, I have enabled error reporting and attached the corresponding error details as an attachment.

Does anyone have any idea how I can fix this ongoing issue? Any help would be greatly appreciated!

Thank you for your time and assistance.

Pieter

Code: Select all

A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: UnexpectedValueException
File: /data/sites/web/offirentbe/www/libraries/src/User/UserFactoryAwareTrait.php
Line: 45
Message: UserFactory not set in Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel

#0 /data/sites/web/offirentbe/www/administrator/components/com_actionlogs/src/Model/ActionlogModel.php(58): Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel->getUserFactory()
#1 /data/sites/web/offirentbe/www/libraries/foundry/libraries/actionlog.php(105): Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel->addLog(Array, 'User log('COM_EB_ACTIONLO...', 'com_easyblog.po...', Array)
#3 /data/sites/web/offirentbe/www/libraries/src/MVC/Controller/BaseController.php(693): EasyBlogControllerPosts->save()
#4 /data/sites/web/offirentbe/www/administrator/components/com_easyblog/easyblog.php(78): Joomla\CMS\MVC\Controller\BaseController->execute('save')
#5 /data/sites/web/offirentbe/www/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/data/sites/web...')
#6 /data/sites/web/offirentbe/www/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/data/sites/web...')
#7 /data/sites/web/offirentbe/www/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#8 /data/sites/web/offirentbe/www/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_easyblog')
#9 /data/sites/web/offirentbe/www/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#10 /data/sites/web/offirentbe/www/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\AdministratorApplication->doExecute()
#11 /data/sites/web/offirentbe/www/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#12 /data/sites/web/offirentbe/www/administrator/index.php(32): require_once('/data/sites/web...')
#13 {main}


SERVER variables

Array
(
    [USER] => offirentbe
    [HOME] => /data/sites/web/offirentbe/
    [SCRIPT_NAME] => /administrator/index.php
    [REQUEST_URI] => /administrator/index.php
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/1.1
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 6840
    [SCRIPT_FILENAME] => /data/sites/web/offirentbe/www/administrator/index.php
    [SERVER_ADMIN] => [email protected]
    [CONTEXT_DOCUMENT_ROOT] => /data/sites/web/offirentbe/www
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /data/sites/web/offirentbe/www
    [REMOTE_ADDR] => 81.83.18.56
    [SERVER_PORT] => 443
    [SERVER_ADDR] => 83.217.74.149
    [SERVER_NAME] => www.offirent.be
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => 
    [LD_LIBRARY_PATH] => /data/jail/usr/local/httpd-2.4-worker/lib:/data/jail/usr/local/openssl/lib
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [HTTP_COOKIE] => atumSidebarState=open; _gcl_au=1.1.9425583.1697627742; cookiesck=yes; _ga=GA1.1.1773800012.1697627946; _fbp=fb.1.1697627945754.1212603927; jch_optimize_no_cache_user_state=user_logged_in; _ga_BK4XQBPJ6K=GS1.1.1698245074.4.1.1698247398.34.0.0; 8d061b5a0f91f77b1ef1103106f1b418=24sl5t06dgpgmvs3n6fk15o8ho; admintools_adminaccess_58ded320dcb3453ba0cdd6101e464196=EvqJ35RQTdPxh3OXNGOgOQnYXmjm5E1r.l14c7d3pjuelxewMvXPj
    [HTTP_ACCEPT_LANGUAGE] => nl-NL,nl;q=0.9,en-US;q=0.8,en;q=0.7
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_REFERER] => https://www.offirent.be/administrator/index.php?option=com_easyblog&view=composer&tmpl=component&uid=205.807&return=aHR0cHM6Ly93d3cub2ZmaXJlbnQuYmUvYWRtaW5pc3RyYXRvci9pbmRleC5waHA%2Fb3B0aW9uPWNvbV9lYXN5YmxvZyZ2aWV3PWJsb2dz
    [HTTP_SEC_FETCH_DEST] => document
    [HTTP_SEC_FETCH_USER] => ?1
    [HTTP_SEC_FETCH_MODE] => navigate
    [HTTP_SEC_FETCH_SITE] => same-origin
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_ORIGIN] => https://www.offirent.be
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_SEC_CH_UA_PLATFORM] => "Windows"
    [HTTP_SEC_CH_UA_MOBILE] => ?0
    [HTTP_SEC_CH_UA] => "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"
    [HTTP_CACHE_CONTROL] => max-age=0
    [CONTENT_LENGTH] => 111625
    [HTTP_X_SCHEME] => https
    [HTTP_X_HCL_FORWARDED_PORT] => 443
    [HTTP_X_HCL_FORWARDED_PROTO] => https
    [HTTP_X_REAL_IP] => 81.83.18.56
    [HTTP_HOST] => www.offirent.be
    [proxy-nokeepalive] => 1
    [HTTP_AUTHORIZATION] => 
    [JCH_SCHEME] => https
    [JCH_GZIP] => .gz
    [JCH_GZIP_ENABLED] => yes
    [SCRIPT_URI] => https://www.offirent.be/administrator/index.php
    [SCRIPT_URL] => /administrator/index.php
    [LOGPREFIX] => user_offirentbe
    [UNIQUE_ID] => ZTomSS3ONjKYqsX-Ul3GEQAAAI8
    [HTTPS] => on
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /administrator/index.php
    [REQUEST_TIME_FLOAT] => 1698309705.7331
    [REQUEST_TIME] => 1698309705
)


User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 618
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Rondeb » Thu Oct 26, 2023 9:35 am

Hi,

have you reinstalled the core files yet?

Greetings Ron

Pieter1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 26, 2023 9:08 am

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Pieter1234 » Thu Oct 26, 2023 9:40 am

Rondeb wrote:
Thu Oct 26, 2023 9:35 am
Hi,

have you reinstalled the core files yet?

Greetings Ron
Hello Ron,

Thank you for your response. When you mention reinstalling the core files, could you please specify which files you're referring to? Are you suggesting that I should re-upload all Joomla core files via FTP?

Looking forward to your clarification.

Best regards,

Pieter

User avatar
Rondeb
Joomla! Guru
Joomla! Guru
Posts: 618
Joined: Mon Dec 02, 2013 12:14 pm
Location: Meschede - Germany
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Rondeb » Thu Oct 26, 2023 9:49 am

Go to your site . com/administrator/index.php?option=com_joomlaupdate
2023-10-26_11-45-56.png
Be sure to reinstall from Joomla 4.4 files and not update to Joomla 5!

Clear browser en website cache.

Ron :D
You do not have the required permissions to view the files attached to this post.

Pieter1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 26, 2023 9:08 am

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Pieter1234 » Thu Oct 26, 2023 1:23 pm

Hello Ron,

Thank you for your detailed guidance. I followed your instructions to go to mywebsite.com/administrator/index.php?option=com_joomlaupdate and made sure to reinstall from Joomla 4.4 files, specifically avoiding an update to Joomla 5. I've also cleared both browser and website cache as you advised.

https://prnt.sc/XF6ZKH_Do9wS

Unfortunately, the same error message persists:

https://prnt.sc/WVQHQYR4NWoN

Message: UserFactory not set in Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel

Do you have any further suggestions on how I can resolve this issue? Your help is greatly appreciated.

Best regards,

Pieter

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Thu Oct 26, 2023 3:45 pm

Could be an EasyBlog problem. Are you on the latest version?

Pieter1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 26, 2023 9:08 am

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Pieter1234 » Thu Oct 26, 2023 8:04 pm

ceford wrote:
Thu Oct 26, 2023 3:45 pm
Could be an EasyBlog problem. Are you on the latest version?
Hello,

I hope this message finds you well. I'm a paying user of EasyBlog and recently upgraded to Joomla 4.4.0. Since the upgrade, I've been encountering an error message that says "UserFactory not set" in the ActionlogModel.

As a paid user (I use version EasySocial 4.0.13) , I believe I'm already on the latest version of EasyBlog. Could you please confirm if there are any specific compatibility issues with Joomla 4.4.0 that might be causing this?

Any guidance on how to resolve this issue would be greatly appreciated.

Thank you for your assistance.

Pieter

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Fri Oct 27, 2023 11:17 am

Did you put this question directly to the supplier of EasyBlog?

User avatar
DeeEmm
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Mar 04, 2011 4:36 am
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by DeeEmm » Thu Nov 02, 2023 9:01 am

Did anyone find a resolution to this issue?

Pieter1234
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Oct 26, 2023 9:08 am

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Pieter1234 » Fri Nov 03, 2023 10:38 am

DeeEmm wrote:
Thu Nov 02, 2023 9:01 am
Did anyone find a resolution to this issue?
I did not found a solution to this issue. The strange thing it is on one site from me and not on a other site. For what is it used userfactory?

scomil808a
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Apr 26, 2022 7:00 pm

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by scomil808a » Thu Nov 09, 2023 9:01 am

I am receiving the same error. Has anyone found a solution to this problem?

iadams83
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 16, 2023 9:36 pm

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by iadams83 » Thu Nov 16, 2023 9:38 pm

I find it hard to believe that more people aren't running into this issue. I am having the same problem with no solution as of mid-November. Any updates?

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Fri Nov 17, 2023 10:49 am

In the original post the problem may have been an EasyBlog problem but the original poster did not come back to tell us what happened. Others who have reported the same problem have not mentioned EasyBlog so we don't know if they have the exact same problem or not.

FYI: the error occurs when recording an action log, such as logging in or out, creating a new article or checking in an article. You could disable the Action Log - Joomla plugin.

User avatar
DeeEmm
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Mar 04, 2011 4:36 am
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by DeeEmm » Fri Nov 17, 2023 11:52 pm

I have the issue when saving settings in the admin interface. I assume that a similar mechanism is in play - that those actions are being saved to the log. Is there a way to disable logging??

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Sat Nov 18, 2023 9:03 am

Can someone provide more information? From the Home Dashboard / Global Configuration i select Save and Close. Then in the Home Dashboard Latest Actions panel I see the last entry as User xxxxx changed settings of the application configuration - Less than a minute ago.

Does that cause an error for those who experience the problem?

User avatar
DeeEmm
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Fri Mar 04, 2011 4:36 am
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by DeeEmm » Sun Nov 19, 2023 1:24 am

No. Does not happen with native settings, only with third party apps.

Disabling the 'Action-log' plugin does prevent the error from happening with third party apps. That's enough of a workaround for me for the present. I'm assuming that the error I'm seeing is as a result of how the third party app implements the logging functionality. It can stay disabled until they provide a fix.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Mon Nov 20, 2023 9:51 am

A UserFactoryAware interface was introduced in 4.4. I have posted a bug report to see if we can get a fix.

GitHub PR: https://github.com/joomla/joomla-cms/pull/40337
Reported issue: https://issues.joomla.org/tracker/joomla-cms/42373

RW-NWPA
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Sep 06, 2011 5:43 pm

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by RW-NWPA » Tue Nov 21, 2023 4:18 am

i too am experiencing this problem. i instaaled joomla 4.4 and get the error:
0 UserFactory not set in Joomla\Component\Users\Administrator\Table\MfaTable
I am dead in the water until there is a solution.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2314
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by ceford » Tue Nov 21, 2023 4:58 am

RW-NWPA wrote:
Tue Nov 21, 2023 4:18 am
i too am experiencing this problem. i instaaled joomla 4.4 and get the error:
0 UserFactory not set in Joomla\Component\Users\Administrator\Table\MfaTable
I am dead in the water until there is a solution.
Disable the System - User Actions Log plugin.

RW-NWPA
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Sep 06, 2011 5:43 pm

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by RW-NWPA » Wed Nov 22, 2023 5:26 pm

I only saw this after looking at the code and realizing it had to do with Multi Factor Authentication. I disabled MFA on my superuser account and it worked. That must be the equivalent of what you suggested.

Regards,
Rob

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30487
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel

Post by Per Yngve Berg » Wed Nov 22, 2023 7:11 pm

The upgrade to 4.4 includes a change from 2FA to MFA.


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”