Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Toolbar ErrorException Division by zero #2340

Closed
maddrid opened this issue Oct 16, 2019 · 2 comments
Closed

Bug: Toolbar ErrorException Division by zero #2340

maddrid opened this issue Oct 16, 2019 · 2 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Milestone

Comments

@maddrid
Copy link

maddrid commented Oct 16, 2019

CI_ENVIRONMENT development
Describe the bug
refreshing the index page multiple times or entering the same page (index )multiple times throw
ErrorException Division by zero
also toolbar doesn't show even when index page displayed correctly
Capture2

Capture

CRITICAL - 2019-10-16 17:29:28 --> Division by zero
#0 N:\a\htdocs\ci\system\Debug\Toolbar.php(121): CodeIgniter\Debug\Exceptions->errorHandler(2, 'Division by zer...', 'N:\\a\\htdocs\\ci\\...', 121, Array)
#1 N:\a\htdocs\ci\system\Debug\Toolbar.php(352): CodeIgniter\Debug\Toolbar->run(1571264968.053, 0, Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response))
#2 N:\a\htdocs\ci\system\Filters\DebugToolbar.php(74): CodeIgniter\Debug\Toolbar->prepare(Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response))
#3 N:\a\htdocs\ci\system\Filters\Filters.php(187): CodeIgniter\Filters\DebugToolbar->after(Object(CodeIgniter\HTTP\IncomingRequest), Object(CodeIgniter\HTTP\Response))
#4 N:\a\htdocs\ci\system\CodeIgniter.php(355): CodeIgniter\Filters\Filters->run('/', 'after')
#5 N:\a\htdocs\ci\system\CodeIgniter.php(245): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 N:\a\htdocs\ci\public\index.php(45): CodeIgniter\CodeIgniter->run()
#7 {main}

CodeIgniter 4 version
latest

Context
XAMPP for Windows 7.3.7
Apache/2.4.39 (Win64) OpenSSL/1.1.1c PHP/7.3.7
Windows NT PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64
PHP Version 7.3.7
and REQUEST_URI as the protocol.

@jim-parry jim-parry changed the title Toolbar ErrorException Division by zero Bug: Toolbar ErrorException Division by zero Oct 19, 2019
@jim-parry jim-parry added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 19, 2019
@julesbl
Copy link

julesbl commented Oct 21, 2019

Tried reproducing this under spark server, seems to work without a problem bar displayed, no division by zero, so probably something in Windows or Apache.

My system

CodeIgniter Version: 4.0.0-rc.3
PHP Version: 7.3.10-1+ubuntu16.04.1+deb.sury.org+1
PHP SAPI: cli-server
Environment: development
Base URL: http://localhost:8080
TimeZone: America/Chicago
Locale: en
Content Security Policy Enabled: No

@jim-parry jim-parry added this to the 4.0.0 milestone Oct 29, 2019
@lonnieezell
Copy link
Member

Cannot recreate. If someone else can feel free to reopen with more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

4 participants