Error after upgrading from beta1 to beta2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Error after upgrading from beta1 to beta2 (/showthread.php?tid=73259) |
Error after upgrading from beta1 to beta2 - lik - 04-05-2019 Hello to all. I am writing a new application on CodeIgniter 4, everything was OK. Manually updated from beta1 to beta2. There was an error: http://ai.ysu.su/ci4-errors.jpg Please tell me how to fix the error? Thank you in advance RE: Error after upgrading from beta1 to beta2 - ciadmin - 04-05-2019 What were you trying to do when the error occurred? Just loading the welcome page? Have you tried disabling the DebugToolbar (app/Config/Filters.php)? RE: Error after upgrading from beta1 to beta2 - lik - 04-05-2019 I load the main page of my application. If you disable DebugToolbar (app / Config / Filters.php) then everything is fine the page loads without problems. To enable debug mode, I add a line to /public/index.php: define ('ENVIRONMENT', 'development'); In the version of beta1, everything worked without errors RE: Error after upgrading from beta1 to beta2 - ciadmin - 04-05-2019 Hmm - everything works fine for me, regardless of the mode. How did you install your CI4? (manual, composer) RE: Error after upgrading from beta1 to beta2 - lik - 04-05-2019 In manual mode - standard folders system public app writable. Here is the full log: CRITICAL - 2019-04-06 07:33:20 --> preg_match() expects parameter 2 to be string, array given #0 [internal function]: CodeIgniter\Debug\Exceptions->errorHandler(2, 'preg_match() ex...', '/home/ysu.su/h/...', 144, Array) #1 /home/ysu.su/h/system/Debug/Toolbar.php(144): preg_match('~[^\\x20-\\x7E\\t\\...', Array) #2 /home/ysu.su/h/system/Debug/Toolbar.php(331): CodeIgniter\Debug\Toolbar->run(1554525200.6966, 0.0864, Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response)) #3 /home/ysu.su/h/system/Filters/DebugToolbar.php(74): CodeIgniter\Debug\Toolbar->prepare() #4 /home/ysu.su/h/system/Filters/Filters.php(176): CodeIgniter\Filters\DebugToolbar->after(Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response)) #5 /home/ysu.su/h/system/CodeIgniter.php(346): CodeIgniter\Filters\Filters->run('/', 'after') #6 /home/ysu.su/h/system/CodeIgniter.php(238): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #7 /home/ysu.su/h/public/index.php(37): CodeIgniter\CodeIgniter->run() #8 {main} RE: Error after upgrading from beta1 to beta2 - elephpantech - 04-06-2019 Same problem detected! My tests found the problem appear when I use "with('message', 'OK')" method in "return redirect()->back()" object; I've manual install a new clean app and only change $baseURL on App config. 'Session' service and 'form' helper are enabled on BaseController. PHP Code: <?php namespace App\Controllers; PHP Code: <?= form_open() ?> RE: Error after upgrading from beta1 to beta2 - mirel.popescu - 04-08-2019 (04-06-2019, 07:03 AM)elephpantech Wrote: Same problem detected! The same problem. If I use "redirect()->back()" and have $sessionDriver== 'CodeIgniter\Session\Handlers\DatabaseHandler' throws error. If session is used with FileHandler there is no error. Any ideea how to solve that? Thanks! RE: Error after upgrading from beta1 to beta2 - elephpantech - 04-08-2019 Solved: https://github.com/codeigniter4/CodeIgniter4/commit/7cfa780021048d6653bc701b64cc62496fc3114d RE: Error after upgrading from beta1 to beta2 - lik - 04-10-2019 Thank you very much. Everything is fixed. |