Megamenu does not display on importing configuration

dbjpanda's picture
dbjpanda
Mon, 07/30/2018 - 09:15
#1
Megamenu does not display on importing configuration

I executed "drush cim" and then "drush cr" but the megamenu did not work. Instead I got this 

Refused to apply style from 'http://blogenic.localhost/sites/default/files/awe-menu-css/md_menu_main....' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Then I manually clicked on save button on megamenu and it worked. This is not good for CI. So need to be fixed. 

cindy's picture
cindy
Tue, 07/31/2018 - 22:05

Hello,

All parameter in tab style ara in file css in folder sites/default/files/awe-menu-css, This file css is created everytimr you save buider.
When you push your datdaa online (server live) from your localhost, you have to push folder awe-menu-css also. 

If not, you should open builder and resave to render new file css on server live .

dbjpanda's picture
dbjpanda
Wed, 08/01/2018 - 02:02

But this is not a right way in Drupal devops. Nowdays everyone use CI to deploy. So can you ask your developers to provide a right solution.

cindy's picture
cindy
Fri, 08/03/2018 - 05:39

Sorry, now you have to do it manually. This is not really an error of our module. 

dbjpanda's picture
dbjpanda
Fri, 08/03/2018 - 09:20

This is not an error. This is a feature request which is a necessery part of the module. Because it is always not possible to manually click on the Save button always while deploying via CI. Also it is not a right way to ship site/default/files/* to your production site. Please concern with your best developer regarding this. 

dbjpanda's picture
dbjpanda
Wed, 10/10/2018 - 21:55

Hi any update on it ? I don't understand why your team has no voice or not interested to solve it ? Do you guys want your module  limited to use by only small sites who doesn't use CI for deployent ? 

cindy's picture
cindy
Thu, 10/11/2018 - 22:39

Hello,

We have just released version md_megamenu_8.x-1.5.zip. Please check your email for the file cause it has not been uploaded and pulished to our forum yet

Please download, extract file and update to execute hook md_megamenu_update_8105. If it runs correctly, there will be a notice "update table md_megamenu_items 8105" in log

If not, open phpmyadmin, add field "rendered_style" to table "md_megamenu_items" like this http://prntscr.com/l4t943

After update, just re-save setting of megamenu so that it could render file custom css to folder "md_megamenu/assets/css/custom" in module megamenu and save stye in field "rendered_style" of table "md_megamenu_items".

Then, when you push your site online from localhost, you also have to push file css in folder custom online or clear drupal cache. This will make megamenu get style in "rendered_style" and auto create custom css file 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.