Giter VIP home page Giter VIP logo

mgt_developertoolbar's People

Contributors

chrisastley avatar henkun avatar sergei-sss avatar swieczorek avatar zamoroka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mgt_developertoolbar's Issues

highlight.js library Error

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

Getting error : Fatal error: Uncaught Error: Class 'Mgt\DeveloperToolbar\Model\Profiler\Driver\Standard\Stat' not found in /var/www/html/app/code/Mgt/DeveloperToolbar/registration.php

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

loading jQuery can make JS work which don't without the toolbar

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 :(

Affects CSS on Frontend

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

Non well formed numeric value encountered

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.

Magento 2.4.6 compatibility

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

decouple from Prototype.js

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

Do not force admin notifications or at least require them

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

M2.2.2: unable to uninstall

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]/

Breaks Inline Translation

After quite some debugging if found that the

(the book symbol for inline translation) is also contained in the developer toolbar block. (phpinfo section?) -> so the Script to show the trigger does not work properly anymore

Magento 2.3.3: Missing success / error messages.

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.

Handle "mgt_developer_toolbar_view" not loading

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"

install the module without adding a specific repo

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

Error when updating 2.4.4 and php8.1 : MGT developer toolbar issue

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 :)

Duplicate Router ID

Steps to reproduce

  1. Install the Toolbar
  2. Try to merge the Xml

Expected result

  1. Shop should appear

Actual result

  1. The router.xml contains two routers with the same ID. This will throw an Error.
    Invalid XML in file src/vendor/mgtcommerce/module-mgtdevelopertoolbar/src/app/code/Mgt/DeveloperToolbar/etc/frontend/routes.xml: Element 'config': Missing child element(s). Expected is ( router ). Line: 2

I am using Magento 2.1.1

The template/layout xml should be in the base/default folder

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.

Error in php info section for Magento 2.3 with php 7.2.x

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

Compatibility with Aoe_Profiler

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.

Magento 2.2 compatibility?

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].
…

Remove branding from Admin Panel

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.

Consider namespacing '.container' or all classnames

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.

Broken configuration tab

Magento 2.3.3 Enterprise
PHP 7.2.19

Magento admin -> Stores -> Configuration
Configuration tab 'Mgt-Commerce.com' is broken
image

Show generated Layout XML

In the blocks tab it would be nice to have an option to download the full generated layout XML code for extended debugging.

Install with Composer: add --dev flag

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

Undefined index: instance

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

create_function() is deprecated error

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!

session messages are not working

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.

Class "Zend_Http_Client" not found

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 ?

Infos

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}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.