module-profiler icon indicating copy to clipboard operation
module-profiler copied to clipboard

Profiler Page is blank

Open lukaszolszewski opened this issue 9 years ago • 10 comments

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?

lukaszolszewski avatar Oct 06 '17 10:10 lukaszolszewski

I have this problem also

dazz397 avatar Oct 06 '17 16:10 dazz397

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

Tjitse-E avatar Oct 19 '17 08:10 Tjitse-E

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

sedax90 avatar Nov 06 '17 15:11 sedax90

Same here, it's seem severely broken :(

HOSTED-POWER avatar Nov 30 '17 22:11 HOSTED-POWER

Same with 2.2.1

Nazzas avatar Nov 30 '17 23:11 Nazzas

same on 2.1.5, there is no error logs

congaframe avatar Dec 09 '17 12:12 congaframe

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

  • block class name starts with 'Mirasvit'
  • licence is valid

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:

  • obtain a license
  • remove core module since profiler has no dependency on it, it seems
  • remove the license checking part in the observer mentioned

janiscaunecm avatar Dec 28 '17 12:12 janiscaunecm

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?

dazz397 avatar Dec 28 '17 20:12 dazz397

@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.

janiscaunecm avatar Dec 28 '17 22:12 janiscaunecm

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

adrok avatar Dec 29 '17 08:12 adrok