jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 37 forks source link

installation of higher version --> Internal Server Error #1475

Closed Heklaterriol closed 1 year ago

Heklaterriol commented 1 year ago

when I try to install a new version of JEM, e.g 2.3.10 over 2.3.9 I get an "Internal Server Error" message from Joomla.

Then I tried to install package by package in this order

  1. com_jem.zip --> OK

mod_jem.zip --> Internal Server Error mod_jem_wide.zip --> Internal Server Error mod_jem_cal.zip --> Internal Server Error mod_jem_calajax.zip --> Internal Server Error mod_jem_teaser.zip --> Internal Server Error mod_jem_banner.zip --> Internal Server Error mod_jem_jubilee.zip --> Internal Server Error

plg_content_jem.zip --> OK plg_content_jemlistevents.zip --> OK plg_search_jem.zip --> OK plg_finder_jem.zip --> OK plg_jem_comments.zip --> OK plg_jem_mailer.zip --> OK

even with error reporting on maximum I do not get any information.

When trying to install mod_jem_wide.zip I get the following log entry:

#Fields: datetime   priority clientip   category    message
2023-03-17T16:58:09+00:00   CRITICAL 84.134.202.142 error   Uncaught Throwable of type Error thrown with message "Class "Factory" not found". Stack trace:
#0 [ROOT][TMP]/install_64149c21c547a/mod_jem_wide/script.php(34): mod_jem_wideInstallerScript->getParam('version')
#1 [internal function]: mod_jem_wideInstallerScript->preflight('update', Object(Joomla\CMS\Installer\Adapter\ModuleAdapter))
jemproject/JEM-Project#1343 [ROOT]/libraries/src/Installer/LegacyInstallerScript.php(151): call_user_func_array(Array, Array)
jemproject/JEM-Project#1344 [ROOT]/libraries/src/Installer/LegacyInstallerScript.php(171): Joomla\CMS\Installer\LegacyInstallerScript->__call('preflight', Array)
jemproject/JEM-Project#1345 [ROOT]/libraries/src/Installer/LegacyInstallerScript.php(91): Joomla\CMS\Installer\LegacyInstallerScript->callOnScript('preflight', Array)
jemproject/JEM-Project#1346 [ROOT]/libraries/src/Installer/InstallerAdapter.php(1054): Joomla\CMS\Installer\LegacyInstallerScript->preflight('update', Object(Joomla\CMS\Installer\Adapter\ModuleAdapter))
jemproject/JEM-Project#1347 [ROOT]/libraries/src/Installer/InstallerAdapter.php(713): Joomla\CMS\Installer\InstallerAdapter->triggerManifestScript('preflight')
jemproject/JEM-Project#1348 [ROOT]/libraries/src/Installer/Installer.php(644): Joomla\CMS\Installer\InstallerAdapter->install()
jemproject/JEM-Project#1349 [ROOT]/administrator/components/com_installer/src/Model/InstallModel.php(195): Joomla\CMS\Installer\Installer->install('/www/htdocs/w01...')
jemproject/JEM-Project#1350 [ROOT]/administrator/components/com_installer/src/Controller/InstallController.php(52): Joomla\Component\Installer\Administrator\Model\InstallModel->install()
jemproject/JEM-Project#1351 [ROOT]/administrator/components/com_installer/src/Controller/InstallController.php(100): Joomla\Component\Installer\Administrator\Controller\InstallController->install()
jemproject/JEM-Project#1352 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): Joomla\Component\Installer\Administrator\Controller\InstallController->ajax_upload()
jemproject/JEM-Project#1353 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('ajax_upload')
jemproject/JEM-Project#1354 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
jemproject/JEM-Project#1355 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_installer')
jemproject/JEM-Project#1356 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
jemproject/JEM-Project#1357 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute()
jemproject/JEM-Project#1358 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
jemproject/JEM-Project#1359 [ROOT]/administrator/index.php(32): require_once('/www/htdocs/w01...')
jemproject/JEM-Project#1360 {main}

Any ideas?

Heklaterriol commented 1 year ago

All modules produce the exact same call stack (except the name of the module)

mckillo commented 1 year ago

When I try to update from 2.3.9 to 2.3.10,I have these error messages in JL 4.2.9:

error to update from 2 3 9 to 2 3 10

I think that we review the update process for J4 and the first error is the ZIP files have the same version 4.0.0

Heklaterriol commented 1 year ago

This is because in the previous test versions in the com_jem package there was the version number 4. You can check the version in the Joomla Extension Manager.

You can change it in the DB table under > #_extensions > com_jem > manifest_cache. There you find the entry "version":"4" (or similar) set it to "version":"2.3.10"

Thereafter you can update to higher versions.

mckillo commented 1 year ago

In my installation, version =4.0.0 change to 2.3.10, and I have other error: error to update from 2 3 9 to 2 3 10 with com_jem_db_manifiest_version_2 3 10

I think that the error is ZIP package in pkg_jem_v2.3.10.zip\pkg_jem_v2.3.10\packages\com_jem\script.php (function preflight when it has to update version). I'll try to debug but this weekend I'm busy.

mckillo commented 1 year ago

@Heklaterriol Check the commit 9c010b18bf5977cee1d730be6200254fc7c0a8ff, solved the error in modules. Tomorrow I will finish the script.php update of com_jem (this file is old and give me errors too)

Heklaterriol commented 1 year ago

commit 9c010b18bf5977cee1d730be6200254fc7c0a8ff works fine, thank you!

Heklaterriol commented 1 year ago

I was also necessary to change the version to a higher number. I set the version to 2.3.12, checked it and pushed it to JEM-4beta2