Posts: 4,385
Threads: 101
Joined: Oct 2014
Reputation:
146
08-15-2020, 03:05 AM
(This post was last modified: 08-15-2020, 03:06 AM by InsiteFX.)
Turn on the debug bar to see what the error is then turn it off.
edit the env file in the root with index.php add
CI_ENVIRONMENT = developement
Then save the file as .env
when finished just remove the . off the begging of it.
Also look at your server error files.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Posts: 20
Threads: 14
Joined: Mar 2020
Reputation:
0
Hi,
I did this & following are details:
CodeIgniter\View\Exceptions\ViewException
SYSTEMPATH/Exceptions/FrameworkException.php at line 17
Response Status 500 - Internal Server Error
log-2020-08-15.log
CRITICAL - 2020-08-15 16:22:52 --> Invalid file: my_view.php
#0 /system/View/View.php(228): CodeIgniter\Exceptions\FrameworkException::forInvalidFile('my...')
#1 /system/Common.php(1087): CodeIgniter\View\View->render('my...', Array, true)
#2 /app/Controllers/Mycontroller.php(147): view('my...', Array)
#3 /system/CodeIgniter.php(914): App\Controllers\Mycontroller->hello()
#4 /system/CodeIgniter.php(400): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Mycontroller))
#5 /system/CodeIgniter.php(308): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 /index.php(48): CodeIgniter\CodeIgniter->run()
#7 {main}
Same code is working perfectly at local machine.
Posts: 115
Threads: 3
Joined: Jul 2020
Reputation:
2
08-15-2020, 12:00 PM
(This post was last modified: 08-15-2020, 12:00 PM by paulbalandan.)
If your zlib output compression is turned on, you must turn it off as it will interfere with output buffering.
Go to your php.ini and find the line zlib.output_compression. Replace the value to Off. Then restart your server.
Posts: 4,385
Threads: 101
Joined: Oct 2014
Reputation:
146
Check that view file and make sure that there are no extra space in the top.
Also please show the view file that is causing you the error would help a lot
in determining the cause of the Error.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )