Closed (works as designed)
Project:
Responsive and off-canvas menu
Version:
7.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2016 at 13:48 UTC
Updated:
16 Oct 2017 at 06:34 UTC
Jump to comment: Most recent
Comments
Comment #2
tancHi Rita,
Do you see any javascript errors in the console?
Comment #3
Raher commentedHi Tanc,
All I see is this
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/. ajax.js?v=8.1.1:1060Thanks
Comment #4
tancDo you see the html for the off-canvas menu near the bottom of your page's html? It should start with something like:
Also, are all of your scripts loading from /pptheme8 as the root? In your example of where the mmenu library is loading from it is prefixed with /pptheme8 whereas all my scripts load from /
For example:
Comment #5
Raher commentedHey Tanc,
Yep it's showing my subfolder pptheme8 not sure how I can change that...
The menu is loading at the html at the bottom of the page tho.
Thanks,
Rita
Comment #6
tancHi Rita,
Without knowing more about your hosting environment I can't recommend any solutions. Do all your scripts load from your subfolder /pptheme8 ? Or is it just the mmenu one?
Comment #7
Raher commentedyes they all load from the subfolder...
Comment #8
tancHi Rita, I've been away for a bit and I'm now at a conference but I'll try and help, although I'm not really sure what to suggest. Is there anyone you work with or another peer that might be able to help? Its quite hard to diagnose from afar and I don't know enough about your development or hosting environment to suggest changes. If you can give me reproducible steps so I can emulate your environment I might be able to help.
Comment #9
tancI'm closing this but feel free to re-open if you're unable to get things working.
Comment #10
Denis Waßmann commentedHi tanc,
same Problem here ... The menu is loading at the html at the bottom of the page. When i invite the Javascript sites/all/libraries/mmenu the links at the bottom of the page are away but no canvas opens. You can see the Problem here
Thank you for your help!
Comment #11
Denis Waßmann commentedComment #12
jboeger commentedSame for me as #10.
Comment #13
tancHi Denis, can you confirm which version of jQuery you're using? Looking at your loaded js it looks like the Drupal default 1.4.4 is being loaded. You'll need to update to a newer version using jquery_update module if that is the case. You're also on Drupal 7 and this issue was about Drupal 8 problems. I'll change it over to D7 and we can continue here for now.
Comment #14
Denis Waßmann commentedHi tanc, thx - it really seems to be an jQuery-Problem. When i set it on 1.5 nothing happens. When i set it higher, canvas works, but the styles on my Page make Problems, so i have to solve this. Sorry for the Issue-Mistake ... i was never active in this Forum ... in the future I'll look/read better.
Comment #15
tancHey no problem! Glad you're on the road to fixing your issue
Comment #16
pkosenko commentedI have this same issue. The menu gets written to the bottom of the page (but not hidden), but when the responsive icon is clicked, the canvas menu does not appear, and the browser simply scrolls to the bottom menu.
For some reason "responsive_menu.config.js" is NOT being written to the page in a script tag, although it is listed in the set of Javascripts include in the Drupal object. This happens even when I try to move the script reference over to the them as a script[]= reference in the theme .info.
This from the responsive_menu.module file:
$page['page_bottom']['#attached']['js'][] = array(
'data' => drupal_get_path('module', 'responsive_menu') . '/js/responsive_menu.config.js',
'type' => 'file',
'scope' => 'footer',
'group' => JS_THEME,
'weight' => 20,
);
The particular site has a front page theme deployed (using the "theme_key" module) that is different from the site theme.
I notice that the front page theme is missing a "page_bottom" DIV.
But maybe that is not the issue. Adding the region to the theme .info DID NOT fix the problem.
Listing what tags ARE required by the Javascript plugin might help me figure out why the Drupal configuration script is NOT being output into the page.
Comment #17
tancCorrect, it will be the missing page_bottom region that this module requires to output the needed divs and attach the required javascript.