Forum users are reporting Issue After Updating to Joomla 4.4.0: "UserFactory not set" Error in ActionlogModel. See https://forum.joomla.org/viewtopic.php?p=3707474&sid=52962b8597e3e7dd5a757ea2034c440f#p3707474
This looks like a backward compatibility break when a third party extension triggers the Action Log plugin. It would be good to have some sort of fix or an explanation.
See #40337
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Without a stack trace it is hard to peovide a fix.
@laoneo there is one here: https://forum.joomla.org/viewtopic.php?f=812&t=1005011#p3705244
It would be interesting to see how the EasyBlogControllerPosts
class is loading the model. I guess not through bootComponent()
. If it instantiates the model directly, then it needs to set the factory. Honestly I'm a bit hesitant here to catch that exception directly in the model.
Labels |
Added:
bug
|
Hi guys any update & solutions for this one?
Example problem to do a purge of EasySocial SEF urls that should work but doesnt with Joomla 5.2.
Unhandled exception - UnexpectedValueException
A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: UnexpectedValueException
File: /var/www/www.site.com/libraries/src/User/UserFactoryAwareTrait.php
Line: 45
Message: UserFactory not set in Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel
#0 /var/www/www.site.com/administrator/components/com_actionlogs/src/Model/ActionlogModel.php(58): Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel->getUserFactory()
#1 /var/www/www.site.com/administrator/components/com_easysocial/includes/actionlog/actionlog.php(105): Joomla\Component\Actionlogs\Administrator\Model\ActionlogModel->addLog()
#2 /var/www/www.site.com/administrator/components/com_easysocial/includes/controller.php(112): SocialActionlog->log()
#3 /var/www/www.site.com/administrator/components/com_easysocial/controllers/sefurls.php(42): EasySocialControllerMain->logAction()
#4 /var/www/www.site.com/libraries/src/MVC/Controller/BaseController.php(730): EasySocialControllerSefUrls->purge()
#5 /var/www/www.site.com/administrator/components/com_easysocial/easysocial.php(114): Joomla\CMS\MVC\Controller\BaseController->execute()
#6 /var/www/www.site.com/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('...')
#7 /var/www/www.site.com/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#8 /var/www/www.site.com/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#9 /var/www/www.site.com/libraries/src/Application/AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent()
#10 /var/www/www.site.com/libraries/src/Application/AdministratorApplication.php(195): Joomla\CMS\Application\AdministratorApplication->dispatch()
#11 /var/www/www.site.com/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\AdministratorApplication->doExecute()
#12 /var/www/www.site.com/administrator/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#13 /var/www/www.site.com/administrator/index.php(32): require_once('...')
#14 {main}
Request information
GET variables
Array
(
)
POST variables
Array
(
[search] =>
[type] =>
[limit] => 1
[limitstart] => 0
[43adf5f76315daa5e00eccbf7d7acec3] => 1
[ordering] => id
[direction] => ASC
[boxchecked] => 0
[task] => purgeAll
[option] => com_easysocial
[view] => sefurls
[controller] => sefurls
)
COOKIE variables
Array
(
[osColorScheme] => light
[atumSidebarState] => open
[81dbc6c0e8060ce065ce1f9025ed2ea1] => m9taseqtgrrldmpa9t7dqc303c
[a5e4d6bfa5193f2e9c9d384efe68c1ad] => d530ds11ol6qvsa9rou3uh0ruj
[_ga_DPYRW84SWK] => GS1.1.1729954001.1.1.1729954004.0.0.0
[_ga] => GA1.1.1328432046.1729954001
[visitortime] => 1729954001833
[admintools_adminaccess_c8479220e02bfedd788df720611f4855] => EoqM5gdHWoyNTaGQRXcjbJDpfCoaqOPP.yRvXKAgOQtmvk8DxCXT2
)
REQUEST variables
Array
(
[search] =>
[type] =>
[limit] => 1
[limitstart] => 0
[43adf5f76315daa5e00eccbf7d7acec3] => 1
[ordering] => id
[direction] => ASC
[boxchecked] => 0
[task] => purgeAll
[option] => com_easysocial
[view] => sefurls
[controller] => sefurls
)
SERVER variables
Array
(
[HTTP_AUTHORIZATION] =>
[HTTPS] => on
[SSL_TLS_SNI] => www.site.com
[HTTP_HOST] => www.site.com
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => sv-SE
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br, zstd
[HTTP_REFERER] => https://www.site.com/administrator/index.php?option=com_easysocial&view=sefurls
[CONTENT_TYPE] => application/x-www-form-urlencoded
[CONTENT_LENGTH] => 176
[HTTP_ORIGIN] => https://www.site.com
[HTTP_DNT] => 1
[HTTP_SEC_GPC] => 1
[HTTP_CONNECTION] => keep-alive
[HTTP_COOKIE] => osColorScheme=light; atumSidebarState=open; 81dbc6c0e8060ce065ce1f9025ed2ea1=m9taseqtgrrldmpa9t7dqc303c; a5e4d6bfa5193f2e9c9d384efe68c1ad=d530ds11ol6qvsa9rou3uh0ruj; _ga_DPYRW84SWK=GS1.1.1729954001.1.1.1729954004.0.0.0; _ga=GA1.1.1328432046.1729954001; visitortime=1729954001833; admintools_adminaccess_c8479220e02bfedd788df720611f4855=EoqM5gdHWoyNTaGQRXcjbJDpfCoaqOPP.yRvXKAgOQtmvk8DxCXT2
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[HTTP_SEC_FETCH_DEST] => document
[HTTP_SEC_FETCH_MODE] => navigate
[HTTP_SEC_FETCH_SITE] => same-origin
[HTTP_SEC_FETCH_USER] => ?1
[HTTP_PRIORITY] => u=0, i
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache/2.4.52 (Ubuntu)
[SERVER_NAME] => www.site.com
[SERVER_ADDR] => xxx.xxx.xxx.xx
[SERVER_PORT] => 443
[REMOTE_ADDR] => xxx.xxx.xxx.xxx
[DOCUMENT_ROOT] => /var/www/www.site.com
[REQUEST_SCHEME] => https
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/www.site.com
[SERVER_ADMIN] => webmaster@site.com
[SCRIPT_FILENAME] => /var/www/www.site.com/administrator/index.php
[REMOTE_PORT] => 61201
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] =>
[REQUEST_URI] => /administrator/index.php
[SCRIPT_NAME] => /administrator/index.php
[PHP_SELF] => /administrator/index.php
[REQUEST_TIME_FLOAT] => 1729956069.7688
[REQUEST_TIME] => 1729956069
)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-10-27 15:44:59 |
Closed_By | ⇒ | richard67 |
@laoneo Could you check this issue? Thanks in advance.