Answers.Body: <p>You can fix this by clearing caches. Try one or both of the following:</p>
  <ol>
  <li>On the command line <code>cd path/to/civicrm</code> and then <code>cv flush</code>.</li>
  <li>Delete the contents of the <code>templates_c</code> directory.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-21T00:05:43.660Z
Answers.LastActivityDate: 2023-09-21T00:05:43.660Z
Answers.UserDisplayName: Coleman
Body: <p>After upgrading to Joomla 4.34 I cannot access the backend of my website.</p>
  <p>My shared hosting account (Hostmonster) runs MySQL 5.7.23-23, which has limited me to CiviCRM 5.39 and running PHP 7.4.  I've been looking into upgrading my hosting account to one that runs MySQL 5.7.5+ so that I can upgrade to the latest version of CiviCRM and use PHP 8+.</p>
  <p>When I tried upgrading to PHP 8, I received this error: Sorry, there was a problem we could not recover from. The server returned a &quot;500 - Whoops, looks like something went wrong.&quot;</p>
  <p>Through file manager I set debug to &quot;true&quot; in the configuration.php file and received the below &quot;Call stack&quot; following the &quot;An error has occurred. 0 Call to a member function register() on int&quot; message.</p>
  <p>I asked ChatGPT how to fix it and ChapGPT indicated that it was an issue with CiviCRM, but since I can't get into the backend, I can't try several of the solutions that were suggested.</p>
  <p>I'm looking for options to gain access to the administration area of my website again.  Once I do, I will upgrade my hosting account so that I can upgrade CiviCRM.</p>
  <p>What do you suggest?  Can I &quot;Turn Off&quot; the CIVICrm Component through file manager?  Would that work?</p>
  <p>Thanks,</p>
  <p>Mike</p>
  <hr />
  <p>&quot;An error has occurred. 0 Call to a member function register() on int&quot; message.
  Call stack</p>
  <h1>Function    Location</h1>
  <p>1   ()  JROOT/administrator/components/com_civicrm/civicrm/CRM/Extension/ClassLoader.php:82
  2   CRM_Extension_ClassLoader-&gt;register()   JROOT/administrator/components/com_civicrm/civicrm/Civi/Core/Container.php:618
  3   Civi\Core\Container::boot() JROOT/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php:85
  4   CRM_Core_Config::singleton()    JROOT/plugins/user/civicrm/civicrm.php:109
  5   plgUserCivicrm-&gt;civicrmResetNavigation()    JROOT/plugins/user/civicrm/civicrm.php:91
  6   plgUserCivicrm-&gt;onUserLogin()   JROOT/libraries/src/Plugin/CMSPlugin.php:284
  7   Joomla\CMS\Plugin\CMSPlugin-&gt;Joomla\CMS\Plugin{closure}()  JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
  8   Joomla\Event\Dispatcher-&gt;dispatch() JROOT/libraries/src/Application/EventAware.php:111
  9   Joomla\CMS\Application\WebApplication-&gt;triggerEvent()   JROOT/libraries/src/Application/CMSApplication.php:866
  10  Joomla\CMS\Application\CMSApplication-&gt;login()  JROOT/libraries/src/Application/AdministratorApplication.php:341
  11  Joomla\CMS\Application\AdministratorApplication-&gt;login()    JROOT/administrator/components/com_login/src/Controller/DisplayController.php:82
  12  Joomla\Component\Login\Administrator\Controller\DisplayController-&gt;login()  JROOT/libraries/src/MVC/Controller/BaseController.php:678
  13  Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
  14  Joomla\CMS\Dispatcher\ComponentDispatcher-&gt;dispatch()   JROOT/administrator/components/com_login/src/Dispatcher/Dispatcher.php:45
  15  Joomla\Component\Login\Administrator\Dispatcher\Dispatcher-&gt;dispatch()  JROOT/libraries/src/Component/ComponentHelper.php:361
  16  Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
  17  Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
  18  Joomla\CMS\Application\AdministratorApplication-&gt;doExecute()    JROOT/libraries/src/Application/CMSApplication.php:293
  19  Joomla\CMS\Application\CMSApplication-&gt;execute()    JROOT/administrator/includes/app.php:61
  20  require_once()  JROOT/administrator/index.php:32</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-19T20:39:33.560Z
Comments.Text: Just to clarify, the error occurred when you upgraded Joomla, and then got worse when you upgraded PHP, but you haven't recently upgrade Civi right? That's still 5.39?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-20T14:39:16.840Z
Comments.Text: Yes.  I can't upgrade beyond 5.39 because my site runs on MySQL 5.7.23-23 and Civi 5.4+ requires MySQL 5.7.5+.  https://docs.civicrm.org/installation/en/latest/general/requirements/
Comments.UserDisplayName: Mike22359
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-20T14:49:07.307Z
Comments.Text: I am fairly sure my the issue began after the upgrade to Joomla 4.3.4.  It was several days after upgrading that I attempted to access the backend of my site and ran into this problem.
Comments.UserDisplayName: Mike22359
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-20T16:36:56.690Z
Comments.Text: Have you cleared CiviCRM caches? Try deleting the contents of the `templates_c` directory.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-20T19:46:42.577Z
Comments.Text: That worked! Thank you, Coleman!
Comments.UserDisplayName: Mike22359
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-21T00:06:00.607Z
Comments.Text: Great. That solution is an oldie but goodie. Kinda like "did you try unplugging it and plugging it back in?" but hey it still works after all these years! Posted it as an answer.
Comments.UserDisplayName: Coleman
Tags: <joomla>
Title: Cannot Access Joomla 4.34 Backend - An error has occurred. 0 Call to a member function register() on int
ThreadText: # Cannot Access Joomla 4.34 Backend - An error has occurred. 0 Call to a member function register() on int
  
  (Asked by: username_0 on 2023-09-19)
  
  After upgrading to Joomla 4.34 I cannot access the backend of my website.
  
  My shared hosting account (Hostmonster) runs MySQL 5.7.23-23, which has limited me to CiviCRM 5.39 and running PHP 7.4. I've been looking into upgrading my hosting account to one that runs MySQL 5.7.5+ so that I can upgrade to the latest version of CiviCRM and use PHP 8+.
  
  When I tried upgrading to PHP 8, I received this error: Sorry, there was a problem we could not recover from. The server returned a "500 - Whoops, looks like something went wrong."
  
  Through file manager I set debug to "true" in the configuration.php file and received the below "Call stack" following the "An error has occurred. 0 Call to a member function register() on int" message.
  
  I asked ChatGPT how to fix it and ChapGPT indicated that it was an issue with CiviCRM, but since I can't get into the backend, I can't try several of the solutions that were suggested.
  
  I'm looking for options to gain access to the administration area of my website again. Once I do, I will upgrade my hosting account so that I can upgrade CiviCRM.
  
  What do you suggest? Can I "Turn Off" the CIVICrm Component through file manager? Would that work?
  
  Thanks,
  
  Mike
  
  ---
  
  "An error has occurred. 0 Call to a member function register() on int" message.
  Call stack
  
  # Function Location
  
  1 () JROOT/administrator/components/com\_civicrm/civicrm/CRM/Extension/ClassLoader.php:82
  2 CRM\_Extension\_ClassLoader->register() JROOT/administrator/components/com\_civicrm/civicrm/Civi/Core/Container.php:618
  3 Civi\Core\Container::boot() JROOT/administrator/components/com\_civicrm/civicrm/CRM/Core/Config.php:85
  4 CRM\_Core\_Config::singleton() JROOT/plugins/user/civicrm/civicrm.php:109
  5 plgUserCivicrm->civicrmResetNavigation() JROOT/plugins/user/civicrm/civicrm.php:91
  6 plgUserCivicrm->onUserLogin() JROOT/libraries/src/Plugin/CMSPlugin.php:284
  7 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
  8 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
  9 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:866
  10 Joomla\CMS\Application\CMSApplication->login() JROOT/libraries/src/Application/AdministratorApplication.php:341
  11 Joomla\CMS\Application\AdministratorApplication->login() JROOT/administrator/components/com\_login/src/Controller/DisplayController.php:82
  12 Joomla\Component\Login\Administrator\Controller\DisplayController->login() JROOT/libraries/src/MVC/Controller/BaseController.php:678
  13 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
  14 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/administrator/components/com\_login/src/Dispatcher/Dispatcher.php:45
  15 Joomla\Component\Login\Administrator\Dispatcher\Dispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
  16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
  17 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
  18 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
  19 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
  20 require\_once() JROOT/administrator/index.php:32
  
  **Tags:** joomla
  
  > **Comments:**
  > **username_1**: Just to clarify, the error occurred when you upgraded Joomla, and then got worse when you upgraded PHP, but you haven't recently upgrade Civi right? That's still 5.39?  
  > **username_0**: Yes.  I can't upgrade beyond 5.39 because my site runs on MySQL 5.7.23-23 and Civi 5.4+ requires MySQL 5.7.5+.  https://docs.civicrm.org/installation/en/latest/general/requirements/  
  > **username_0**: I am fairly sure my the issue began after the upgrade to Joomla 4.3.4.  It was several days after upgrading that I attempted to access the backend of my site and ran into this problem.  
  > **username_1**: Have you cleared CiviCRM caches? Try deleting the contents of the `templates_c` directory.  
  > **username_0**: That worked! Thank you, username_1!  
  > **username_1**: Great. That solution is an oldie but goodie. Kinda like "did you try unplugging it and plugging it back in?" but hey it still works after all these years! Posted it as an answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-09-21. Score: 2
  
  You can fix this by clearing caches. Try one or both of the following:
  
  1. On the command line `cd path/to/civicrm` and then `cv flush`.
  2. Delete the contents of the `templates_c` directory.
  
  
  ---
  
  