You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What ZF/Expressive/Laminas/Mezzio application I'm using when issue happen ?
Mezzio 3
What PHP version you're using?
PHP 8.0
What ErrorHeroModule version you're using?
^3.1
What Database you're using?
MySQL version 8.0
Expected behavior
no errors are thrown when loading a Mezzio page via AJAX
Actual behavior
PHP Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, Laminas\Diactoros\PhpInputStream given in vendor\samsonasik\error-hero-module\src\Handler\Logging.php:120
Stack trace:
#0 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(120): str_replace('\r\n', '', Object(Laminas\Diactoros\PhpInputStream)) #1 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(192): ErrorHeroModule\Handler\Logging->getRequestData(Object(Laminas\Psr7Bridge\Laminas\Request)) #2 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(227): ErrorHeroModule\Handler\Logging->collectErrorExceptionExtraData(Array, Object(Laminas\Psr7Bridge\Laminas\Request)) #3 vendor\samsonasik\error-hero-module\src\Middleware\Mezzio.php(78): ErrorHeroModule\Handler\Logging->handleErrorException(Object(ErrorException), Object(Laminas\Psr7Bridge\Laminas\Request)) #4 vendor\samsonasik\error-hero-module\src\HeroTrait.php(107): ErrorHeroModule\Middleware\Mezzio->exceptionError(Object(ErrorException)) #5 [internal function]: ErrorHeroModule\Middleware\Mezzio->execOnShutdown() #6 {main}
thrown in vendor\samsonasik\error-hero-module\src\Handler\Logging.php on line 120
Steps/Codes to reproduce the behavior
With PHP 8.0.3 I used AJAX loading method
My code has this: <a href="#" onclick="$('#div_id').load('/proposal/form');">Load Form</a>
Note - going to /proposal/form URL directly loads the form just fine. The error only happens when I use AJAX link to load the form.
I am not sure if the error is related to AJAX specifically, but that is what I am observing at this time.
The text was updated successfully, but these errors were encountered:
What ZF/Expressive/Laminas/Mezzio application I'm using when issue happen ?
What PHP version you're using?
What ErrorHeroModule version you're using?
What Database you're using?
Expected behavior
no errors are thrown when loading a Mezzio page via AJAX
Actual behavior
PHP Fatal error: Uncaught TypeError: str_replace(): Argument #3 ($subject) must be of type array|string, Laminas\Diactoros\PhpInputStream given in vendor\samsonasik\error-hero-module\src\Handler\Logging.php:120
Stack trace:
#0 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(120): str_replace('\r\n', '', Object(Laminas\Diactoros\PhpInputStream))
#1 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(192): ErrorHeroModule\Handler\Logging->getRequestData(Object(Laminas\Psr7Bridge\Laminas\Request))
#2 vendor\samsonasik\error-hero-module\src\Handler\Logging.php(227): ErrorHeroModule\Handler\Logging->collectErrorExceptionExtraData(Array, Object(Laminas\Psr7Bridge\Laminas\Request))
#3 vendor\samsonasik\error-hero-module\src\Middleware\Mezzio.php(78): ErrorHeroModule\Handler\Logging->handleErrorException(Object(ErrorException), Object(Laminas\Psr7Bridge\Laminas\Request))
#4 vendor\samsonasik\error-hero-module\src\HeroTrait.php(107): ErrorHeroModule\Middleware\Mezzio->exceptionError(Object(ErrorException))
#5 [internal function]: ErrorHeroModule\Middleware\Mezzio->execOnShutdown()
#6 {main}
thrown in vendor\samsonasik\error-hero-module\src\Handler\Logging.php on line 120
Steps/Codes to reproduce the behavior
With PHP 8.0.3 I used AJAX loading method
My code has this:
<a href="#" onclick="$('#div_id').load('/proposal/form');">Load Form</a>
Note - going to
/proposal/form
URL directly loads the form just fine. The error only happens when I use AJAX link to load the form.I am not sure if the error is related to AJAX specifically, but that is what I am observing at this time.
The text was updated successfully, but these errors were encountered: