Closed itisjoby closed 1 year ago
We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.
dd()
outputs nothing in production
environment.
And you can see errors in log files on the server.
dd()
outputs nothing inproduction
environment. And you can see errors in log files on the server.
i donot use ci4 dd() this is a custom function that print data so it will work fine in production too, as you can see from the provided screenshot. my issue is not still resolved. @kenjis can i open a new issue
No. This is not a bug.
Why don't you see the log file? It is the easiest way to see the error.
@kenjis i understood. i can see the error in server2 log. but i am getting 2 responses when i directly loading the receiver.php and loading it via curl. when i load it directly i get error response that there is no variable. but in curl i dont get any response. is this out of ci4 question?
It is not a framework issue. The framework does not show errors in production environment. It is intentional.
Unfortunately, there is no easy way to show detailed errors that you want with the framework. Even if there is, the core code of the framework would need to be customized. At least I don't immediately know how to customize it.
PHP Version
8.2
CodeIgniter4 Version
4.3.2
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
Mongodb
What happened?
My 2 projects share some data with curl post. the sender project is running codeigniter 3 and receiver is running codeigniter 4.3.2. when i try to send data i am getting 500 http status code.
but there is no response of what the error was even after i ask php to display errors .
the problem is when CI_ENVIRONMENT in .env is set as production. https://prnt.sc/JzVAPYsHf4ks when it is set as development i am getting proper response. https://prnt.sc/_Xlp9cnFA5Ly
but since this is a production server and i only want to enable errors for one page i am puzzled here.
Steps to Reproduce
1.) set CI_ENVIRONMENT = production in .env file 2.) write 2 functions a) reciever.php
b) sending.php
3.) run sending function
Expected Output
i expect to see errors because i forcefully requested php to show errors with code .
Anything else?
No response