-
Notifications
You must be signed in to change notification settings - Fork 462
[Installer] | Setup - Page, files dir path not set on first installation when default path is not edited #11171
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
Comments
Just sharing an extra error from the thread: PHP Fatal error: Uncaught TypeError: Cannot assign null to property PKP\scheduledTask\ScheduledTask::$executionLogFile of type string in /var/www/html/ojs/lib/pkp/classes/scheduledTask/ScheduledTask.php:68
Stack trace:
#0 /var/www/html/ojs/lib/pkp/classes/install/Installer.php(952): PKP\scheduledTask\ScheduledTask->__construct()
#1 [internal function]: PKP\install\Installer->updateRorRegistryDataset()
#2 /var/www/html/ojs/lib/pkp/classes/install/Installer.php(490): call_user_func()
#3 /var/www/html/ojs/lib/pkp/classes/install/Installer.php(297): PKP\install\Installer->executeAction()
#4 /var/www/html/ojs/lib/pkp/classes/install/Installer.php(206): PKP\install\Installer->executeInstaller()
#5 /var/www/html/ojs/lib/pkp/classes/install/form/InstallForm.php(198): PKP\install\Installer->execute()
#6 /var/www/html/ojs/lib/pkp/pages/install/InstallHandler.php(93): PKP\install\form\InstallForm->execute()
#7 [internal function]: PKP\pages\install\InstallHandler->install()
#8 /var/www/html/ojs/lib/pkp/classes/core/PKPRouter.php(327): call_user_func()
#9 /var/www/html/ojs/lib/pkp/classes/core/PKPPageRouter.php(249): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#10 /var/www/html/ojs/lib/pkp/classes/core/Dispatcher.php(157): PKP\core\PKPPageRouter->route()
#11 /var/www/html/ojs/lib/pkp/classes/core/PKPApplication.php(422): PKP\core\Dispatcher->dispatch()
#12 /var/www/html/ojs/index.php(21): PKP\core\PKPApplication->execute()
#13 {main}
thrown in /var/www/html/ojs/lib/pkp/classes/scheduledTask/ScheduledTask.php on line 68, referer: http://localhost:7020/index.php/index/de/install |
I looked into the issue it seems this runs much deeper than it seems . The problem generated form However it seems that at the installation phase , after the config file update via I think after a successful write and update to config in the install phase , we need to immediately reset to config data in registry to get the latest updated details . @asmecher @jonasraoni what do you think ? I have added a PR at #11171 (comment) . However my main concern is from where and when this has been starting to behave like this ? |
@touhidurabir, the fix looks harmless enough, and it tests working for me on an install that recently encountered the same problem. I've also forward-ported this to |
Uh oh!
There was an error while loading. Please reload this page.
Valid Title
Description
When the installer is run for the first time and the default value of files dir is not edited, the files dir internally is not set correctly despite being shown on the installer page as "/var/www/html/files" (seems to be the default value on the installer page).
The value "/var/www/html/files" is written as such into the config file, however, internally it still is "files" (probably loaded from config.inc.php):
Subsequently this reults in the following errors:
When ignoring the errors and calling
http://localhost:7020
again OJS shows a blanck page and additional PHP errors:When setting config.inc.php back to
installed = off
and run it again it works fine (as the correct value of files dir is loaded from config.inc.php).I never edited the input field for the files folder since it was correct from the beginning. It seems there is a syncing issue between config file and default value on the install screen.
Steps to Reproduce
Expected Result
OJS should start up an run.
Actual Result
White screen and PHP errors.
Environment Details
Debian GNU/Linux 12
Application Version
OJS 3.5rc2
Logs
Full error logs
Additional Information
No response
Related Issues
PRs
Stable-3.5.0
pkp-lib --> #11295
ojs --> pkp/ojs#4842 [TEST ONLY]
omp --> pkp/omp#1969 [TEST ONLY]
ops --> pkp/ops#968 [TEST ONLY]
The text was updated successfully, but these errors were encountered: