Skip to content

[OMP] | Installation - 3.5 RC2 installation ends with error 500 #11343

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

Closed
1 task done
nongenti opened this issue Apr 29, 2025 · 3 comments
Closed
1 task done

[OMP] | Installation - 3.5 RC2 installation ends with error 500 #11343

nongenti opened this issue Apr 29, 2025 · 3 comments

Comments

@nongenti
Copy link

Valid Title

  • I have updated the title to accurately reflect the bug description

Description

OMP 3.5 RC2 installation ends with error 500 after sending the form.
If I try to run OMP after that crashed installation process I get also an error 500, because there is no database entry in versions table with the product-type "core" and the product "omp".

Steps to Reproduce

  1. Download omp-3.5.0rc2.tar.gz from http://pkp.sfu.ca/omp/download/omp-3.5.0rc2.tar.gz
  2. Extract to /var/www/html
  3. Create a files directory and an empty database and a database user
  4. Go to /var/www/html/omp-3.5.0rc2
  5. Run: php -S localhost:8000
  6. Open http://localhost:8000 in browser
  7. Input all data to form
  8. Click on "Install Open Monograph Press"

Expected Result

Finishing the installation process and after that a running OMP application.

Actual Result

A white page and error 500.

Environment Details

Server: Ubuntu 24.04.02 LTS, PHP 8.3, Mysql 8.0.41, Apache2
Client: Firefox 136.0.1

Application Version

OMP 3.5.0rc2

Logs

Running the installation ends with that console output:

127.0.0.1:47720 [500]: POST /index.php/index/en/install/install - Uncaught TypeError: Cannot assign null to property PKP\scheduledTask\ScheduledTask::$executionLogFile of type string in /var/www/html/omp-3.5.0rc2/lib/pkp/classes/scheduledTask/ScheduledTask.php:68
Stack trace:
#0 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/install/Installer.php(952): PKP\scheduledTask\ScheduledTask->__construct()
#1 [internal function]: PKP\install\Installer->updateRorRegistryDataset()
#2 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/install/Installer.php(490): call_user_func()
#3 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/install/Installer.php(297): PKP\install\Installer->executeAction()
#4 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/install/Installer.php(206): PKP\install\Installer->executeInstaller()
#5 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/install/form/InstallForm.php(198): PKP\install\Installer->execute()
#6 /var/www/html/omp-3.5.0rc2/lib/pkp/pages/install/InstallHandler.php(93): PKP\install\form\InstallForm->execute()
#7 [internal function]: PKP\pages\install\InstallHandler->install()
#8 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/PKPRouter.php(327): call_user_func()
#9 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/PKPPageRouter.php(249): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#10 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/Dispatcher.php(157): PKP\core\PKPPageRouter->route()
#11 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/PKPApplication.php(422): PKP\core\Dispatcher->dispatch()
#12 /var/www/html/omp-3.5.0rc2/index.php(21): PKP\core\PKPApplication->execute()
#13 {main}
  thrown in /var/www/html/omp-3.5.0rc2/lib/pkp/classes/scheduledTask/ScheduledTask.php on line 68

If I try to run http://localhost/omp-3.5.0rc2 in a browser after that crashed installation process I also get an error 500 and apache log tells:

[client 127.0.0.1:58544] PHP Fatal error:  Uncaught Error: Call to a member function getContext() on null in /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/PKPApplication.php:487
Stack trace:\n#0 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/plugins/PluginRegistry.php(238): PKP\\core\\PKPApplication->getEnabledProducts()
#1 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/plugins/PluginRegistry.php(127): PKP\\plugins\\PluginRegistry::loadFromDatabase()
#2 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/plugins/PluginRegistry.php(194): PKP\\plugins\\PluginRegistry::loadCategory()
#3 [internal function]: PKP\\plugins\\PluginRegistry::PKP\\plugins\\{closure}()
#4 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/plugins/PluginRegistry.php(194): array_reduce()
#5 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/scheduledTask/PKPScheduler.php(129): PKP\\plugins\\PluginRegistry::loadAllPlugins()
#6 /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/ScheduleServiceProvider.php(87): PKP\\scheduledTask\\PKPScheduler->registerPluginSchedules()
#7 [internal function]: PKP\\core\\ScheduleServiceProvider->PKP\\core\\{closure}()
#8 {main}\n  thrown in /var/www/html/omp-3.5.0rc2/lib/pkp/classes/core/PKPApplication.php on line 487

Reason is a missing database entry in versions table with the product-type "core" and the product "omp".

Additional Information

No response

@touhidurabir
Copy link
Member

I think this is related to #11171 . The core reason of this described at #11171 (comment) .

@asmecher
Copy link
Member

asmecher commented May 3, 2025

@nongenti, can you check if the commit in #11171 resolves this issue for you?

@nongenti
Copy link
Author

nongenti commented May 5, 2025

@asmecher, @touhidurabir, yes this commit resolves this issue. Thanks!

@nongenti nongenti closed this as completed May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants