-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RESOLVED] Apparent login module crash when upgrading Joomla 4 website to php 8.0 #38749
Comments
|
Hello, Thx for your reply:
Uncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given". Stack trace: #0 [ROOT]/modules/mod_login/mod_login.php(34): require() #1 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(52): include('/homepages/5/d6...') #2 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(55): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher{closure}('/homepages/5/d6...', NULL) #3 [ROOT]/libraries/src/Helper/ModuleHelper.php(276): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch() #4 [ROOT]/libraries/src/Helper/ModuleHelper.php(161): Joomla\CMS\Helper\ModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array) #5 [ROOT]/libraries/src/Document/Renderer/Html/ModuleRenderer.php(99): Joomla\CMS\Helper\ModuleHelper::renderModule(Object(stdClass), Array) #6 [ROOT]/libraries/src/Document/Renderer/Html/ModulesRenderer.php(50): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array, NULL) #7 [ROOT]/libraries/src/Document/HtmlDocument.php(565): Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('cart', Array, NULL) #8 [ROOT]/libraries/src/Document/HtmlDocument.php(847): Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'cart', Array) #9 [ROOT]/libraries/src/Document/HtmlDocument.php(633): Joomla\CMS\Document\HtmlDocument->_renderTemplate() #10 [ROOT]/libraries/src/Application/CMSApplication.php(1017): Joomla\CMS\Document\HtmlDocument->render(false, Array) #11 [ROOT]/libraries/src/Application/SiteApplication.php(714): Joomla\CMS\Application\CMSApplication->render() #12 [ROOT]/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\SiteApplication->render() #13 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #14 [ROOT]/index.php(32): require_once('/homepages/5/d6...') #15 {main}
Thx Philippe This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
It seems to clearly be coming from the login component/module: I unpublished the faulty module, tried to recreate one from scratch, using any position of the template and it always fail... This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
please post the stack trace from when you are using cassiopeia (also accodring to the smartaddons site you are not alone in having issues with their templates and 4.2 - have you contacted them for support?) |
Yes, I did contact them but they indicated that this was probably due to the Joomla Login module and that I should contact the Joomla team :-) Stack trace with Cassiopeia below...Looks the same to me... error - Uncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given". Stack trace: #0 [ROOT]/modules/mod_login/mod_login.php(34): require()\n#1 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(52): include('/homepages/5/d6...')\n#2 [ROOT]/libraries/src/Dispatcher/ModuleDispatcher.php(55): Joomla\CMS\Dispatcher\ModuleDispatcher::Joomla\CMS\Dispatcher\{closure}('/homepages/5/d6...', NULL)\n#3 [ROOT]/libraries/src/Helper/ModuleHelper.php(276): Joomla\CMS\Dispatcher\ModuleDispatcher->dispatch()\n#4 [ROOT]/libraries/src/Helper/ModuleHelper.php(161): Joomla\CMS\Helper\ModuleHelper::renderRawModule(Object(stdClass), Object(Joomla\Registry\Registry), Array)\n#5 [ROOT]/libraries/src/Document/Renderer/Html/ModuleRenderer.php(99): Joomla\CMS\Helper\ModuleHelper::renderModule(Object(stdClass), Array)\n#6 [ROOT]/libraries/src/Document/Renderer/Html/ModulesRenderer.php(50): Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render(Object(stdClass), Array, NULL)\n#7 [ROOT]/libraries/src/Document/HtmlDocument.php(565): Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render('cart', Array, NULL)\n#8 [ROOT]/libraries/src/Document/HtmlDocument.php(847): Joomla\CMS\Document\HtmlDocument->getBuffer('modules', 'cart', Array)\n#9 [ROOT]/libraries/src/Document/HtmlDocument.php(633): Joomla\CMS\Document\HtmlDocument->_renderTemplate()\n#10 [ROOT]/libraries/src/Application/CMSApplication.php(1017): Joomla\CMS\Document\HtmlDocument->render(false, Array)\n#11 [ROOT]/libraries/src/Application/SiteApplication.php(714): Joomla\CMS\Application\CMSApplication->render()\n#12 [ROOT]/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\SiteApplication->render()\n#13 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()\n#14 [ROOT]/index.php(32): require_once('/homepages/5/d6...')\n#15 {main} This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
include('/homepages/5/d6...') This tells me that something connected with the template is still running |
HmmmmProblem is I am not sure I can see what the thing is...I'll try again... This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
Is there any way to expand the path in this stack trace or to find it elsewhere? Dump? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
Does the template have a mod_login override? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
You may be right. Am not near my system but I’ll check when back. Should I then just simply remove it? |
You were right! Thisis what causes the issue! Cheers Philippe This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
That's what I thought it would be but you said it had the same error when using cassiopeia and that should not have been using the template override. weird |
Agreed... This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38749. |
Steps to reproduce the issue
Have a website using a std Login module which is working just fine with Joomla 4.2.2 and php 7.4.x
Activated php 8.0: website crashes with "count(): Argument #1 ($value) must be of type Countable|array, null given" error message on frontend.
Go to admin panel, turn off the login panel module: the site gets back to life without problems.
Expected result
Login panel should be working ok.
Actual result
Crash as seen on the attached image (crash.jpg)
System information (as much as possible)
Joomla 4.2.2![screen shot 2022-09-13 at 10 18 23](https://camo.githubusercontent.com/2505f46e4efc362bab2f2b48fa266a1b23425d302fec187d603670a00bff5d96/68747470733a2f2f6973737565732e6a6f6f6d6c612e6f72672f75706c6f6164732f312f66643234373237643537343939343466633934346435363233346164616433652e6a7067)
php running on Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
MySQL 5.7.38-log
PHP version: 8.0.22
Template by Smartaddons (SJ TopDeal)
Joomshopping 5.0.7 (declared by Joomshopping as compatible with php 8
Additional comments
No additional error message when turning debug to maximum
Thanks and best regards
Philippe
The text was updated successfully, but these errors were encountered: