mgtcommerce / mgt_developertoolbar Goto Github PK
View Code? Open in Web Editor NEWMgt DeveloperToolbar for Magento 2
Home Page: https://www.mgt-commerce.com/
Mgt DeveloperToolbar for Magento 2
Home Page: https://www.mgt-commerce.com/
It seems that we have to update the library highlight.js for Magento 2.3.5-p1
Uncaught Error: Mismatched anonymous define() module: function() {
return t.hljs
}
http://requirejs.org/docs/errors.html#mismatch
at makeError (require.js:166)
at intakeDefines (require.js:1221)
at Object.localRequire [as require] (require.js:1402)
at requirejs (require.js:1737)
at Function.req.config (require.js:1745)
at (index):67
The library path is:
view/frontend/web/js/highlight.min.js
view/adminhtml/web/js/highlight.min.js
A modman file for the module would be nice.
After installation of module i am getting error : magento version is 2.3.4
Fatal error: Uncaught Error: Class 'Mgt\DeveloperToolbar\Model\Profiler\Driver\Standard\Stat' not found in /var/www/html/app/code/Mgt/DeveloperToolbar/registration.php:4 Stack trace: #0 /var/www/html/app/etc/NonComposerComponentRegistration.php(29): require_once() #1 [internal function]: Magento\NonComposerComponentRegistration{closure}('/var/www/html/a...') #2 /var/www/html/app/etc/NonComposerComponentRegistration.php(29): array_map(Object(Closure), Array) #3 /var/www/html/app/etc/NonComposerComponentRegistration.php(33): Magento\NonComposerComponentRegistration{closure}() #4 /var/www/html/vendor/composer/autoload_real.php(70): require('/var/www/html/a...') #5 /var/www/html/vendor/composer/autoload_real.php(60): composerRequiref6a67d92b5a759526446827cfc564d96('b4cf39431a4b949...', '/var/www/html/v...') #6 /var/www/html/vendor/autoload.php(7): ComposerAutoloaderInitf6a67d92b5a759526446827cfc564d96::getLoader() #7 /var/www/html/app/autoload.php(30): include('/var/www/html/v...') #8 /var/www/html/app/bootstrap.php(33): re in /var/www/html/app/code/Mgt/DeveloperToolbar/registration.php on line 4
We have jQuery in our project Version 1.8.3 with noConflict()
. And I implemented some JS code, which ran perfect on my local system, but not on live.
After clearing the jQuery file from the toolbar, the code didn't work locally either.
I recommend (yes, it is a lot of work) to reimplement the JS in prototype.
Maybe I'll do this, but at the moment this project seems to be abandoned and the PRs are not processed :(
When Mgt_Developertoolbar is enabled. CSS layout not working on frontend or in Developertoolbar.
Rest of Admin area CSS layout works except for Developertoolbar reports.
Magento 2.1.1
After enabling the extension I'm getting this error:
Exception #0 (Exception): Notice: A non well formed numeric value encountered in /home/cloudpanel/htdocs/magento.dev/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Block/MemoryConsumption.php on line 70
Exception #0 (Exception): Notice: A non well formed numeric value encountered in /home/cloudpanel/htdocs/magento.dev/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Block/MemoryConsumption.php on line 70
#0 /home/cloudpanel/htdocs/magento.dev/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Block/MemoryConsumption.php(70): Magento\Framework\App\ErrorHandler->handler(8, 'A non well form...', '/home/cloudpane...', 70, Array)
#1 /home/cloudpanel/htdocs/magento.dev/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Block/MemoryConsumption.php(77): Mgt\DeveloperToolbar\Block\Toolbar\Block\MemoryConsumption->Mgt\DeveloperToolbar\Block\Toolbar\Block\{closure}('768M')
#2 [internal function]: Mgt\DeveloperToolbar\Block\Toolbar\Block\MemoryConsumption->getPhpMemoryLimit()
Running PHP7, should work on PHP5 due to automatically casting.
Since Magento 2.4.6 removed zendframework1 from the codebase it's required to use alternative implementations
I've prepared the fix for it in #56
If you disable Prototype.js
this addon ceases to function, but for no good reason. The addon just assumes that you're running prototype.js
Hello,
your extension requires Magento_AdminNotifications, but it's not required in the module.xml
So if you disable Magento_AdminNotifications and your extension pushes new advertising an exception is thrown:
3 exception(s):
Exception #0 (Magento\Framework\DB\Adapter\TableNotFoundException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.adminnotification_inbox' doesn't exist, query was: SELECT `adminnotification_inbox`.* FROM `adminnotification_inbox` WHERE (title = 'NEW: AWS Graviton2 processors - 40% more performance at 20% lower cost!') AND (url = 'https://www.mgt-commerce.com/cms/aws-graviton?refId=notification')
Exception #1 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.adminnotification_inbox' doesn't exist, query was: SELECT `adminnotification_inbox`.* FROM `adminnotification_inbox` WHERE (title = 'NEW: AWS Graviton2 processors - 40% more performance at 20% lower cost!') AND (url = 'https://www.mgt-commerce.com/cms/aws-graviton?refId=notification')
Exception #2 (PDOException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.adminnotification_inbox' doesn't exist
After removing extension:
PHP Fatal error: Uncaught Error: Class 'Mgt\DeveloperToolbar\Model\Profiler\Driver\Standard\Stat' not found in /home[domain]/public_html/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/registration.php:4\nStack trace:\n#0 /home[domain]/public_html/vendor/composer/autoload_real.php(71): require()\n#1 /home[domain]/public_html/vendor/composer/autoload_real.php(61): composerRequire7379a9505e3770c7e7155c3709e1eb4f('7ec163ad857f346...', '/home/outpro.lt...')\n#2 /home[domain]/public_html/vendor/autoload.php(7): ComposerAutoloaderInit7379a9505e3770c7e7155c3709e1eb4f::getLoader()\n#3 /home[domain]/public_html/app/autoload.php(30): include('/home/outpro.lt...')\n#4 /home[domain]/public_html/app/bootstrap.php(30): require_once('/home/outpro.lt...')\n#5 /home[domain]/public_html/index.php(22): require('/home/outpro.lt...')\n#6 {main}\n thrown in /home[domain]/public_html/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/registration.php on line 4, referer: http://[domain]/
Right now it is in local
After quite some debugging if found that the
In Magento 2.3.3, The success/error messages are removed in all admin page.
This happen when i was saving product/category ..
It should show success or error message on the top of page after save.
I've found that for some reason, the code $this->layout->getBlock()
are causing this issue.
And it's used in app/code/Mgt/DeveloperToolbar/Model/Observer/DataCollector.php->collectInformation()
$toolbarBlock = $this->layout->getBlock('mgt_developer_toolbar');
$phpParseTimeBlock = $this->layout->getBlock('mgt_developer_toolbar_block_php_parse_time');
$memoryConsumptionBlock = $this->layout->getBlock('mgt_developer_toolbar_block_memory_consumption');
$databaseQueriesBlock = $this->layout->getBlock('mgt_developer_toolbar_block_database_queries');
Thanks.
main.CRITICAL: Error: Class "Zend_Http_Client" not found in /var/www/magento/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php:196
Is it possible to add functionality to visible containers/blocks directly on frontend page?
Similar to this: https://github.com/ho-nl/magento2-Ho_Templatehints
Yes, I know that I can install above extension, but I prefer to have "all in one" so that is my question ;)
On the dashboard or any section of the toolbar I am having the following error:
Fatal error: Call to a member function setCurrentUrl() on boolean in /var/www/project/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Helper/Toolbar.php on line 172
It looks like the layout file mgt_developer_toolbar_view.xml is not loaded, hence the block mgt_developer_toolbar_container not being returned.
Current setup is on Magento EE 2.1.2 and "mgtcommerce/module-mgtdevelopertoolbar dev-master f3867c4"
I've installed the extension but I'm unable to record the queries https://prnt.sc/st0yg1
Hi !
your toolbar is really great.
Could you add it to https://packagist.org/ ? because adding a specific repo in the composer.json file is not a good practice.
additionally, the given command to add the repo is not good because it transforms the repo node of the composer.json file from array to object.
Thanks !
Laurent
Issue when upgrading Magento 2.4.4/php8.1. MGT developer toolbar issue ->
Exception #0 (Exception): Deprecated Functionality: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/MYWEBSITE/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Model/Config.php on line 77.
Any idea to solve this problem without overriding this file each time we upgrade Magento 2.4.4 ?
Thanks :)
I am using Magento 2.1.1
Since the Mgt_Developertoolbar isn't the developers 'responsibility' to maintain it should be in the base/default folder. Since Magento 1.4+ the default/default folder practically isn't used anymore and thus requires us to first move files before we have a working setup, moving it to base/default makes it work by default.
There is an error in Phpinfo.php
file.
Exception #0 (Exception): Deprecated Functionality: Function create_function() is deprecated in /var/www/html/src/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Container/Sidebar/Block/Phpinfo.php on line 43
It seems that the function create_function()
is in deprecated state for Magento 2.3 with php 7.2.x
Would be great if the developer toolbar integrated with the excellent Aoe_Profiler. Currently we can use this one or use the Aoe_Toolbar which requires me enabling and disabling the modules.
Currently this package is dependent on "magento/framework": "~100.1"
I have enterprise 2.2 rc30 installed
→ composer info magento/product-enterprise-edition
name : magento/product-enterprise-edition
descrip. : eCommerce Platform for Growth (Enterprise Edition)
keywords :
versions : * 2.2.0-rc30
type : metapackage
license : proprietary
source : []
dist : [zip] https://repo.magento.com/archives/magento/product-enterprise-edition/magento-product-enterprise-edition-2.2.0.0-RC30.zip
names : magento/product-enterprise-edition
…
And this package fails to install
→ composer require --dev mgtcommerce/module-mgtdevelopertoolbar
1/1: http://packagist.org/p/provider-latest$77b31ab683f59847c8ca13e28bc28a262bb9d1841cc9f4fc33f99e66ef83b7de.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Using version ^1.0 for mgtcommerce/module-mgtdevelopertoolbar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install mgtcommerce/module-mgtdevelopertoolbar 1.0.3
- Conclusion: don't install mgtcommerce/module-mgtdevelopertoolbar 1.0.2
- Conclusion: don't install mgtcommerce/module-mgtdevelopertoolbar 1.0.1
- Conclusion: remove magento/framework 101.0.0-rc30
- Installation request for mgtcommerce/module-mgtdevelopertoolbar ^1.0 -> satisfiable by mgtcommerce/module-mgtdevelopertoolbar[1.0.0, 1.0.1, 1.0.2, 1.0.3].
- Conclusion: don't install magento/framework 101.0.0-rc30
- mgtcommerce/module-mgtdevelopertoolbar 1.0.0 requires magento/framework ~100.1 -> satisfiable by magento/framework[100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7, 100.1.8, 100.2.0-rc20, 100.1.9].
…
Always apreciated when open source modules get created, but adding branding right in the Admin Panel is not-done. Please 'for the love of god' remove the branding. If you display it somewhere in the toolbar it's self, that's fine, but not in the primary navigation of the Admin Panel.
The .container class in your stylesheet was overriding styles in a site I was working on - I didn't realise this as not familiar with said site so wasted a fair bit of time trying to debug it. It must be a fairly widely used class name so I would have thought this could be a fairly common issue.
Since the images for the module aren't media but are part of the base skin they should me moved to the skin/frontend/base/default instead.
If you guys accept a pullrequest I can make the changes :)
Sometimes caches has been disabled automatically and would be nice to see quickly see if and what caches are enabled
In the blocks tab it would be nice to have an option to download the full generated layout XML code for extended debugging.
Hello,
When installing the module with Composer, I think you should add the --dev
flag so the module is installed into the require-dev
section and not installed if you run composer install --no-dev
.
The installation command becomes
composer require --dev mgtcommerce/module-mgtdevelopertoolbar
Hello,
It seems you're using design materials from Blackfire.io such has toolbar icons.
Please change the icons you're using.
Hi, I am receiving this error mesage:
Exception #0 (Exception): Notice: Undefined index: instance in vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/view/frontend/templates/toolbar/container/sidebar/events.phtml on line 29
when I press the Events item from the menu.
I am runnign magento 2.4.2-p1 and version 1.0.9 of the mgtcommerce/module-mgtdevelopertoolbar module
Would you please have a look ?
Thanks
Exception #0 (Exception): Deprecated Functionality: Function create_function() is deprecated in /var/www/html2/magentoee/app/code/Mgt/DeveloperToolbar/Block/Toolbar/Container/Sidebar/Block/Phpinfo.php on line 43
How to solve this error?thanks!
Hi,
when i activate the dev toolbar, all the session messages are not working in the BO.
for example, juste save a product : the notice message is not displayed.
On PHP 8.3, getting a warning message in the log:
PHP message: PHP Deprecated: Calling ReflectionProperty::setValue() with a single argument is deprecated in /home/aaaa/www/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/Model/Driver/Output/Zero.php on line 86
It's probably not a big issue, just a cosmetic, but here is a screenshot how it looks:
http://www.myscreenshots.co.uk/sandor/Selection_2016-08-23_b629.png
I wish we had a section for dependency graphs
For more information: https://devdocs.magento.com/guides/v2.3/config-guide/bootstrap/mage-profiler.html
Hello !
After updating to Magento CE 2.4.6-p4 the admin show this error.
according to phpcs it's preferable to use the class Laminas\Http\Request
Class 'Zend_Http_Client' is restricted in .../magento/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php. Suggested replacement: Laminas\Http\Request
I also find this info on stackoverflow
Are you open to contribution ?
area: adminhtml
error:
Error: Class "Zend_Http_Client" not found in /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php:196
Stack trace:
#0 /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Feed/Feed.php(125): Mgt\DeveloperToolbar\Model\Feed\Feed->getFeedData()
#1 /var/www/html/app/code/Mgt/DeveloperToolbar/Model/Observer/PredispatchAdminActionControllerObserver.php(59): Mgt\DeveloperToolbar\Model\Feed\Feed->checkUpdate()
#2 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Mgt\DeveloperToolbar\Model\Observer\PredispatchAdminActionControllerObserver->execute(Object(Magento\Framework\Event\Observer))
#3 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Mgt\DeveloperToolbar\Model\Observer\PredispatchAdminActionControllerObserver), Object(Magento\Framework\Event\Observer))
#4 /var/www/html/vendor/magento/framework/Event/Manager.php(65): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer))
#5 /var/www/html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('controller_acti...', Array)
#6 /var/www/html/vendor/magento/framework/App/FrontController.php(271): Magento\Framework\Event\Manager\Proxy->dispatch('controller_acti...', Array)
#7 /var/www/html/vendor/magento/framework/App/FrontController.php(211): Magento\Framework\App\FrontController->dispatchPreDispatchEvents(Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor), Object(Magento\Framework\App\Request\Http))
#8 /var/www/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Magento\Backend\Controller\Adminhtml\Dashboard\Index\Interceptor))
#9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#11 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#12 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#13 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#14 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#15 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#16 {main}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.