Okay, the second error log above is BS because it occurred before I got upgraded to the new paypal so ignore that.
In regards to the first error log above ChatGPT, I know hiss, hiss, boo, boo but it helps me a lot sometimes, indicates that this is a PHP method signature mismatch between the PayPal RESTful module and Zen Cart’s messageStack class:
paypalr is declaring:
Code:public function output(?string $class = null)
Zen Cart’s messageStack::output() is declared as:
In PHP 8+, method signatures in subclasses must match exactly (including nullable types and default values).Code:public function output($class)
Proposed fix:
Open:
/includes/modules/payment/paypal/PayPalRestful/Admin/Formatters/Messages.php
Find:
Code:public function output(?string $class = null)
Replace with:
Code:public function output($class = null)
That makes the signature compatible with messageStack::output($class).
If the above is correct then I will just make the change.
If not then I apologize and please advise.
Thank You for any assistance with this issue.


Reply With Quote
