Unable to Add Published Monographs to Catalog in OMP

Hello,

I am encountering an issue in Open Monograph Press (OMP) where I am unable to add published monographs to the catalog. The system was functioning normally before experiencing a “Database connection failed!” error. No changes were made to the site prior to this problem.

Here are the details of the issue:

  • OMP Version: 3.1
  • Hosting Provider: Bluehost
  • Issue Description:
    • When attempting to add a monograph to the catalog, the system does not process the action correctly.
    • There was a database-related error that initially triggered this issue.
    • After checking the logs, I found these errors:
  • [27-Mar-2025 07:15:51 America/Boise] PHP Fatal error: Call to a member function getQualifiedDAOName() on null in /home2/pnuonli1/public_html/omp/lib/pkp/classes/db/DAORegistry.inc.php on line 62
  • [27-Mar-2025 16:19:34 America/Boise] omp: 404 Not Found
  • [27-Mar-2025 22:36:11 America/Boise] PHP Warning: Missing argument 1 for DAOResultFactory::__construct(), called in /home2/pnuonli1/public_html/omp/classes/monograph/PublishedMonographDAO.inc.php on line 409 and defined in /home2/pnuonli1/public_html/omp/lib/pkp/classes/db/DAOResultFactory.inc.php on line 55
  • [27-Mar-2025 22:36:11 America/Boise] PHP Warning: Missing argument 2 for DAOResultFactory::__construct(), called in /home2/pnuonli1/public_html/omp/classes/monograph/PublishedMonographDAO.inc.php on line 409 and defined in /home2/pnuonli1/public_html/omp/lib/pkp/classes/db/DAOResultFactory.inc.php on line 55
  • [27-Mar-2025 22:36:11 America/Boise] PHP Warning: Missing argument 3 for DAOResultFactory::__construct(), called in /home2/pnuonli1/public_html/omp/classes/monograph/PublishedMonographDAO.inc.php on line 409 and defined in /home2/pnuonli1/public_html/omp/lib/pkp/classes/db/DAOResultFactory.inc.php on line 55
  • [27-Mar-2025 22:46:36 America/Boise] omp: DB Error: Duplicate entry ‘16597’ for key ‘PRIMARY’
  • [27-Mar-2025 23:01:38 America/Boise] PHP Warning: assert(): Assertion failed in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php on line 182
  • [27-Mar-2025 23:01:38 America/Boise] PHP Warning: Invalid argument supplied for foreach() in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 981
  • [27-Mar-2025 23:41:52 America/Boise] PHP Warning: assert(): Assertion failed in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php on line 182
  • [27-Mar-2025 23:41:52 America/Boise] PHP Warning: Invalid argument supplied for foreach() in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 981
  • [28-Mar-2025 19:43:55 America/Boise] omp: 404 Not Found
  • [29-Mar-2025 03:42:15 America/Boise] omp: 404 Not Found
  • [29-Mar-2025 14:20:21 America/Boise] omp: 404 Not Found
  • [30-Mar-2025 17:01:41 America/Boise] PHP Warning: assert(): Assertion failed in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php on line 182
  • [30-Mar-2025 17:01:41 America/Boise] PHP Warning: Invalid argument supplied for foreach() in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 981
  • [30-Mar-2025 18:42:29 America/Boise] omp: DB Error: Duplicate entry ‘16597’ for key ‘PRIMARY’
  • [30-Mar-2025 19:56:38 America/Boise] omp: 404 Not Found
  • [30-Mar-2025 20:18:43 America/Boise] PHP Warning: assert(): Assertion failed in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/CategoryGridHandler.inc.php on line 182
  • [30-Mar-2025 20:18:43 America/Boise] PHP Warning: Invalid argument supplied for foreach() in /home2/pnuonli1/public_html/omp/lib/pkp/classes/controllers/grid/GridHandler.inc.php on line 981
  • Troubleshooting Steps Taken:

  • Checked PHP error logs and OMP log files for database-related error messages.

  • Checked foreign key constraints and relationships for integrity violations.

  • Verified that the OMP user account had the necessary database permissions.

  • Cleared the cache via the OMP admin panel.

  • Reviewed the OMP version compatibility to check if the issue was related to a known bug.

Could you provide guidance on resolving this issue? Any advice on database corrections or debugging steps would be greatly appreciated.

Thank you for your support.

Hi @_patrishamae,

This isn’t guaranteed to fix your issue, but I would highly recommend upgrading your OMP instance. 3.1 is quite outdated and no longer supported by PKP.

-Roger
PKP Team