Skip to content
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

Administration - Hosted Journal: Can not remove Hosted Journal #10909

Open
Tribunal33 opened this issue Feb 7, 2025 · 0 comments · May be fixed by #10910
Open

Administration - Hosted Journal: Can not remove Hosted Journal #10909

Tribunal33 opened this issue Feb 7, 2025 · 0 comments · May be fixed by #10910
Assignees
Labels
Bug:3:Critical A bug that prevents a substantial minority of users from using the software.
Milestone

Comments

@Tribunal33
Copy link

Describe the bug
When trying to remove a hosted journal there is an error.

Prerequisites : admin access to hosted journal area for contexts with multiple journals already created. If starting from default dataset you will need to create a new journal first.

To Reproduce
Steps to reproduce the behavior:

  1. Login as admin
  2. From admin user dropdown select Administration option
  3. Under Site Management select Hosted Journals button
  4. Select the triangle option from the listed journals (not the main one)
  5. Open dev console for browser to see errors
  6. Select Remove from the options
  7. Select Ok on Popup window and observe the network request tab in dev tool

Expected : Journal should be removed from the list without error and journal is no longer accessible.
Actual: Error is seen in the console and journal is not removed from the list. It is no longer accessible so some things must be deleted on the database side.

What application are you using?
OJS 3.5

Additional information

Image

Error logs from apache : [Fri Feb 07 12:43:19.025667 2025] [php:error] [pid 27000:tid 1872] [client ::1:52092] PHP Fatal error: Uncaught Error: Class "PKP\navigationMenu\DB" not found in C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\navigationMenu\NavigationMenuDAO.php:167\nStack trace:\n#0 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\navigationMenu\NavigationMenuDAO.php(158): PKP\navigationMenu\NavigationMenuDAO->deleteById(14)\n#1 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\navigationMenu\NavigationMenuDAO.php(179): PKP\navigationMenu\NavigationMenuDAO->deleteObject(Object(PKP\navigationMenu\NavigationMenu))\n#2 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\services\PKPContextService.php(677): PKP\navigationMenu\NavigationMenuDAO->deleteByContextId(7)\n#3 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\controllers\grid\admin\context\ContextGridHandler.php(291): PKP\services\PKPContextService->delete(Object(APP\journal\Journal))\n#4 [internal function]: PKP\controllers\grid\admin\context\ContextGridHandler->deleteContext(Array, Object(APP\core\Request))\n#5 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\core\PKPRouter.php(327): call_user_func(Array, Array, Object(APP\core\Request))\n#6 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\core\PKPComponentRouter.php(265): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)\n#7 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\core\Dispatcher.php(157): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))\n#8 C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\core\PKPApplication.php(416): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))\n#9 C:\xampp\htdocs\ojs-main\ojs\index.php(30): PKP\core\PKPApplication->execute()\n#10 {main}\n thrown in C:\xampp\htdocs\ojs-main\ojs\lib\pkp\classes\navigationMenu\NavigationMenuDAO.php on line 167, referer: http://localhost/ojs-main/ojs/index.php/index/en/admin/contexts

@Tribunal33 Tribunal33 added the Bug:3:Critical A bug that prevents a substantial minority of users from using the software. label Feb 7, 2025
@Tribunal33 Tribunal33 added this to the 3.5.0 LTS milestone Feb 7, 2025
@kaitlinnewson kaitlinnewson self-assigned this Feb 7, 2025
@kaitlinnewson kaitlinnewson modified the milestones: 3.5.0 LTS, 3.5 Internal Feb 7, 2025
kaitlinnewson added a commit to kaitlinnewson/pkp-lib that referenced this issue Feb 7, 2025
@kaitlinnewson kaitlinnewson linked a pull request Feb 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:3:Critical A bug that prevents a substantial minority of users from using the software.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants