mirasvit / module-profiler

Magento 2 Profiler
https://mirasvit.com/
Open Software License 3.0
133 stars 36 forks source link

Profiler Page is blank #23

Closed lukaszolszewski closed 6 years ago

lukaszolszewski commented 6 years ago

Hello,

I've installed the module in my project. The project is based on Magento 2.1.7.

I've had a toolbar of the profiler, but when i'm viewing a page of result or list of results - i'm seeing a blank page.

In system.log:

[2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'header.panel.wrapper' element cannot be added as child to 'header.container', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'head.components' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'requirejs-config' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'translate-config' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'translate' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'js_cookies' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'global_notices' element cannot be added as child to 'after.body.start', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'skip_to_content.target' element cannot be added as child to 'main.content', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'header-wrapper' element cannot be added as child to 'header.container', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'navigation.sections' element cannot be added as child to 'page.top', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'top.container' element cannot be added as child to 'page.top', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'breadcrumbs' element cannot be added as child to 'page.top', because the latter doesn't exist [] [] [2017-10-06 09:56:14] main.CRITICAL: Broken reference: the 'page.main.title' element cannot be added as child to 'columns.top', because the latter doesn't exist []

Does anyone of you have the same problem?

dazz397 commented 6 years ago

I have this problem also

Tjitse-E commented 6 years ago

Same problem here with Magento 2.1.9, I can't find any error messages.

sedax90 commented 6 years ago

same problem, white page and no errors (using magento 2.2)

HOSTED-POWER commented 6 years ago

Same here, it's seem severely broken :(

Nazzas commented 6 years ago

Same with 2.2.1

congaframe commented 6 years ago

same on 2.1.5, there is no error logs

janiscaunecm commented 6 years ago

This is happening because of Mirasvit_Core module. It has this OnFrontendLayoutRenderObserver that checks whether:

If you install the profiler module and have also the core module installed for some reason, then if you do not have license set up, this observer will silently remove any output of Mirasvit blocks.

Few ways to fix:

dazz397 commented 6 years ago

Well I have other paid mirasvit modules installed so uninstalling the core is not really an option. I can comment out the licensing but I would have to do this with every core update or write an override for it. How do you obtain a license for the profiler?

janiscaunecm commented 6 years ago

@dazz397 see Mirasvit\Core\Model\License load() function. Easiest way here would be to add another condition to the if statement, but yes, you would lose that on module update. So, we will be best off to ask Mirasvit to add this to their core module.

adrok commented 6 years ago

We released mirasvit/module-core v 1.2.48 with fix for this issue.