Class "PKP\notification\PKPNotification" not found

Describe the issue or problem
Creating submission flow breaks on final step.

Steps I took leading up to the issue

  1. Go to create submission fill in all fields

  2. On final step click ‘Submit‘, which opens modal to confirm or cancel

  3. By clicking submit button in modal to confirm

  4. See error

    Here is the trace of problem

    Request URL

    https://ojs.test/index.php/test2025/api/v1/submissions/43130/submit

    Request Method

    POST

    Status Code

    400 Bad Request

    Remote Address

    127.0.0.1:443

    Referrer Policy

    strict-origin-when-cross-origin

    {

    “error”: “The GET method is not supported for route test2025/api/v1/submissions/43130/submit. Supported methods: PUT.”

    }

    Tracing further i noticed another error:
    Class “PKP\notification\PKPNotification” not found

**Fix applied
**
Created a class PKPNotification.php in lib/pkp/classes/notification/

<?php namespace PKP\\notification; class PKPNotification extends Notification { } This eliminated errors on submission** OJS version:** 3.5.0-1

Hi @evici,

Were you able to capture from the error message where the PKPNotification class was referred to? Rather than creating a new PKPNotification class where there shouldn’t be one, it would be better to update the calling code to refer to Notification instead.

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.