Dear team,
We are using the latest version of OJS 3.4 with PHP 8.1. Once the author click the button " Send Notification of payment error", it directs him to this error " HTTP ERROR 500" . I looked through the PHP error log file to see what I can do but nothing appeared.
Steps I took leading up to the issue
For example:
- Click on 'Send Notification of payment ’ button
- See error " HTTP ERROR 500"
What application are you using?
For example, OJS 3.4.0-8, PHP 8.1
Many thanks
-Salam
Hi @Salam_Al-Khammasi ,please post the php error log info
Hi @deanting,
The problem is there is no error occurs in the PHP log.
Hi @Salam_Al-Khammasi,
There will always be a more detailed error message to go with a 500
; if you don’t see anything, check to make sure you’re looking in the right log. It’ll depend on your server, but some servers have separate PHP and Apache error logs. See How do I find my PHP error log? - #3 by asmecher for some notes.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
We could find the error through the Apache error log file as below:
[29-May-2025 11:04:38 Asia/Baghdad] PHP Fatal error: Uncaught TypeError: APP\plugins\paymethod\manual\mailables\ManualPaymentNotify::sender(): Argument #1 ($sender) must be of type PKP\user\User, null given, called in /home//plugins/paymethod/manual/ManualPaymentPlugin.php on line 188 and defined in /home/public_html/plugins/paymethod/manual/mailables/ManualPaymentNotify.php:62
Stack trace:
#0 /home//public_html/plugins/paymethod/manual/ManualPaymentPlugin.php(188): APP\plugins\paymethod\manual\mailables\ManualPaymentNotify->sender(NULL)
#1 /home//public_html/pages/payment/PaymentHandler.php(48): APP\plugins\paymethod\manual\ManualPaymentPlugin->handle(Array, Object(APP\core\Request))
#2 [internal function]: APP\pages\payment\PaymentHandler->plugin(Array, Object(APP\core\Request))
#3 /home//public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#4 /home//public_html/lib/pkp/classes/core/PKPPageRouter.php(278): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array, false)
#5 /home//public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPPageRouter->route(Object(APP\core\Request))
#6 /home//public_html/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#7 /home//public_html/index.php(21): PKP\core\PKPApplication->execute()
#8 {main}
thrown in /home//public_html/plugins/paymethod/manual/mailables/ManualPaymentNotify.php on line 62```
Hi @Salam_Al-Khammasi,
I believe that error was recently fixed for release in 3.5.0 with this change – but the manual payment plugin, which you have selected, isn’t really intended for production use. I’d recommend using PayPal.
Regards,
Alec Smecher
Public Knowledge Project Team
This topic was automatically closed after 13 days. New replies are no longer allowed.