Thanks to all for your wise inputs. I have made some progress. The component is now getting registered on the live site. Although I changed a great many upper/lower cases I think the most important one was the "name" tag in my manifest file. Previously it was "HCOConcerts". I changed it to com_hcoconcerts.
The site and admin are both working again smoothly in wamp64 following a hiccup when I made a mistake during my case changing, and I now have a live site that loads but when I try to access my component I have fatal errors both on the Site and the Administrator sections. I have made some progress in that in both cases the errors were previously "can't find component", but they are occurring in the same place according to the error log. HCOConcertsResults/HtmlView.php(58) Line 58 is the statement "return parent::display($tpl);"
Site error:
0 - Call to a member function get() on null
All Errors report log file:
2024-05-19T13:11:36+00:00CRITICAL 86.170.63.88errorUncaught Throwable of type Error thrown with message "Call to a member function get() on null". Stack trace: #0 [ROOT]/plugins/system/t3/includes/core/t3.php(533) : eval()'d code(416): include()
#1 [ROOT]/plugins/system/t3/includes/core/t3.php(533) : eval()'d code(204): Joomla\CMS\MVC\View\_JHtmlView->loadTemplate(NULL)
#2 [ROOT]/components/com_hcoconcerts/src/View/HCOConcertsResults/HtmlView.php(58): Joomla\CMS\MVC\View\_JHtmlView->display(NULL)
#3 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): derek\Component\HCOConcerts\Site\View\HCOConcertsResults\HtmlView->display()
#4 [ROOT]/components/com_hcoconcerts/src/Controller/DisplayController.php(278): Joomla\CMS\MVC\Controller\BaseController->display(false, false)
#5 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): derek\Component\HCOConcerts\Site\Controller\DisplayController->display()
#6 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#7 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#8 [ROOT]/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Component\ComponentHelper::renderComponent('com_hcoconcerts')
#9 [ROOT]/libraries/src/Application/SiteApplication.php(261): Joomla\CMS\Application\SiteApplication->dispatch()
#10 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\SiteApplication->doExecute()
#11 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#12 [ROOT]/index.php(32): require_once('/home/hp3-linc2...')
#13 {main}
Administrator error:
An error has occurred.
0 count(): Argument #1 ($value) must be of type Countable|array, null given
2024-05-19T15:48:06+00:00CRITICAL 86.170.63.88errorUncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given". Stack trace: #0 [ROOT]/administrator/components/com_hcoconcerts/src/View/HCOConcerts/HtmlView.php(54): count(NULL)
#1 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): derek\Component\HCOConcerts\Administrator\View\HCOConcerts\HtmlView->display()
#2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): Joomla\CMS\MVC\Controller\BaseController->display()
#3 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#4 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#5 [ROOT]/libraries/src/Application/AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent('com_hcoconcerts')
#6 [ROOT]/libraries/src/Application/AdministratorApplication.php(195): Joomla\CMS\Application\AdministratorApplication->dispatch()
#7 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\AdministratorApplication->doExecute()
#8 [ROOT]/administrator/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#9 [ROOT]/administrator/index.php(32): require_once('/home/hp3-linc2...')
#10 {main}
View/HCOConcerts/HtmlView.php(54): line 54 is "if (count($errors = $this->get('Errors')))"
I've put break points in my wamp64 setup and examined all the values of variables at these particular points and can see no obvious case specific values that look as if they might need changing (but there were some when I had the "can't find component" error).
Really unsure where I'm going to go to go from here, but something might spring to mind overnight - it usually does, so I can spend yet another fruitless day!
Truly grateful for your assistance so far. If any thoughts spring to mind I'd love to hear them.
The site and admin are both working again smoothly in wamp64 following a hiccup when I made a mistake during my case changing, and I now have a live site that loads but when I try to access my component I have fatal errors both on the Site and the Administrator sections. I have made some progress in that in both cases the errors were previously "can't find component", but they are occurring in the same place according to the error log. HCOConcertsResults/HtmlView.php(58) Line 58 is the statement "return parent::display($tpl);"
Site error:
0 - Call to a member function get() on null
All Errors report log file:
2024-05-19T13:11:36+00:00CRITICAL 86.170.63.88errorUncaught Throwable of type Error thrown with message "Call to a member function get() on null". Stack trace: #0 [ROOT]/plugins/system/t3/includes/core/t3.php(533) : eval()'d code(416): include()
#1 [ROOT]/plugins/system/t3/includes/core/t3.php(533) : eval()'d code(204): Joomla\CMS\MVC\View\_JHtmlView->loadTemplate(NULL)
#2 [ROOT]/components/com_hcoconcerts/src/View/HCOConcertsResults/HtmlView.php(58): Joomla\CMS\MVC\View\_JHtmlView->display(NULL)
#3 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): derek\Component\HCOConcerts\Site\View\HCOConcertsResults\HtmlView->display()
#4 [ROOT]/components/com_hcoconcerts/src/Controller/DisplayController.php(278): Joomla\CMS\MVC\Controller\BaseController->display(false, false)
#5 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): derek\Component\HCOConcerts\Site\Controller\DisplayController->display()
#6 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#7 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#8 [ROOT]/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Component\ComponentHelper::renderComponent('com_hcoconcerts')
#9 [ROOT]/libraries/src/Application/SiteApplication.php(261): Joomla\CMS\Application\SiteApplication->dispatch()
#10 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\SiteApplication->doExecute()
#11 [ROOT]/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#12 [ROOT]/index.php(32): require_once('/home/hp3-linc2...')
#13 {main}
Administrator error:
An error has occurred.
0 count(): Argument #1 ($value) must be of type Countable|array, null given
2024-05-19T15:48:06+00:00CRITICAL 86.170.63.88errorUncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable|array, null given". Stack trace: #0 [ROOT]/administrator/components/com_hcoconcerts/src/View/HCOConcerts/HtmlView.php(54): count(NULL)
#1 [ROOT]/libraries/src/MVC/Controller/BaseController.php(697): derek\Component\HCOConcerts\Administrator\View\HCOConcerts\HtmlView->display()
#2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(730): Joomla\CMS\MVC\Controller\BaseController->display()
#3 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#4 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#5 [ROOT]/libraries/src/Application/AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent('com_hcoconcerts')
#6 [ROOT]/libraries/src/Application/AdministratorApplication.php(195): Joomla\CMS\Application\AdministratorApplication->dispatch()
#7 [ROOT]/libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\AdministratorApplication->doExecute()
#8 [ROOT]/administrator/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#9 [ROOT]/administrator/index.php(32): require_once('/home/hp3-linc2...')
#10 {main}
View/HCOConcerts/HtmlView.php(54): line 54 is "if (count($errors = $this->get('Errors')))"
I've put break points in my wamp64 setup and examined all the values of variables at these particular points and can see no obvious case specific values that look as if they might need changing (but there were some when I had the "can't find component" error).
Really unsure where I'm going to go to go from here, but something might spring to mind overnight - it usually does, so I can spend yet another fruitless day!
Truly grateful for your assistance so far. If any thoughts spring to mind I'd love to hear them.
Statistics: Posted by DerekE — Sun May 19, 2024 5:12 pm