Comments (5)
I don't see any offsetWidth
being used? Doesn't look like this is the affected code?
Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment)
from laminas-developer-tools.
Hi @Ocramius!
I can see the error in this code point:
<!-- START Zend Developer Toolbar JavaScript -->
<script type="text/javascript">
<!--
(function() {
/**
* @param {Cookie} cookie
* @returns {Toolbar}
* @constructor
*/
var Toolbar = function(cookie) {
/** @type {Toolbar} */
var self = this;
/** @type {HTMLElement} */
var container = document.getElementById("zend-developer-toolbar");
/** @type {number} */
var width = container.offsetWidth; //<------- Uncaught TypeError: Cannot read property 'offsetWidth' of null
I tried to reproduce with a new application using the zf2 skeleton but in this case I missed the toolbar with the example code.
You need to use a downloadable link to get the error as I pointed earlier.
Let me know if you need some more details.
Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment)
from laminas-developer-tools.
You need to use a downloadable link
I don't follow this bit, specifically...
Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment)
from laminas-developer-tools.
@Ocramius, can you reproduce the error?
Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment)
from laminas-developer-tools.
I can't reproduce with latest laminas-developer-tools
. I follow your location.assign()
usage and can't reproduce the error.
Please re-create issue if problem persist with steps to reproduce. I'm closing it.
from laminas-developer-tools.
Related Issues (20)
- Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' HOT 6
- ZendDeveloperTools conflicts with Zend\Code 2.3.1 and 2.2.7 HOT 3
- CSS box-sizing HOT 4
- Tooltip in icons to show info or show title HOT 2
- Incorrect Content-Lenght after toolbar injection HOT 1
- Feature: CSS Markup HOT 4
- ApplicationConfig unescaped HOT 9
- Modules list should have vertical scrolling HOT 1
- Should activate panels on click
- default template suffix HOT 5
- Implement FirePHP listener HOT 3
- Option to view queries / individual timing HOT 1
- Uncaught ReferenceError: Sfdump is not defined HOT 4
- Broken Whoops library when DeveloperTools module is enabled HOT 3
- PHP 8.0 support HOT 4
- Toolbar hidden will soon not be remembered because of cookie settings
- DeveloperTools fatal error when using named Adapters HOT 1
- Dependency Dashboard
- PHP 8.3 support HOT 1
- Wrong data type returned in implementation of serialization methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-developer-tools.