In TB megamenu WHEN click save button to make changes the process bar going but changes not save.kindly help

Comments

khadijamajid’s picture

In TB megamenu WHEN click save button to make changes the process bar going but changes not save.kindly help

hai nguyen’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.0-alpha4

Unsavable problem happens because using $.ajax.done and done doesn't work in jQuery 1.4 (default of Drupal). It've just been updated to use $.ajax.complete to fix this bug. Please update version 7.x-1.0-alpha4.

justluvgod’s picture

Installed the most recent version. Issue still exists on my system. I have cleared all caches and run cron.

The menu will save configuration to group menus but doesn't save the changes to hide the submenu under each group.

- Drupal 7.22
- Omega theme (using context and Delta)( I have disable both context and Delta modules to see if that was the issue and the problem still exists.
- TB Megamenu - 7.x-1.0-alpha4

hungrymind.bb’s picture

Assigned: khadijamajid » Unassigned

I'm using

- Drupal 7.22
- TB Megamenu - 7.x-1.0-alpha4
- Theme- Zircon 7.x-1.0
- jQuery Update jQuery 1.7.1 and jQuery UI 1.8.7
- Browser Chrome 28.0.1500.72 m

Still I couldn't able to save configurations.
When I am selecting a block from the dropdown progress bar appear on the top of the page.
meanwhile Chrome Javascript console dumping following error messages

POST http://localhost/admin/structure/tb-megamenu/request 404 (Not Found) jquery-1.7.1.min.js:4
Uncaught SyntaxError: Unexpected token < jquery-1.7.1.min.js:2

Please help me to overcome this problem as soon as possible.

hungrymind.bb’s picture

I found the solution.
It is the problem with clean URL. If your server doesn't support for clean URL, this module getting failed.
So if anyone really want to use this module, please check whether your server is supporting for clean URL(https://drupal.org/node/15365).

scotwith1t’s picture

i updated from alpha3 to alpha4 and have clean urls and still getting this error. all the work i did setting up this menu is gone now...would like to continue to be happy i chose this module, cuz it was really perfect for a while...don't know what went wrong other than upgrading to the latest version as it was working fine until then.
Uncaught SyntaxError: Unexpected token < , except mine is in main-menu:1

so i disabled, uninstalled, reinstalled and got back to my base menu without the tb megamenu, then i still can't add a sub-menu to one of the links, now i get the same thing, but it's looking at confi?destination=home:1

check out this snapshot of the console in chrome...does this help? http://note.io/13IHP1e

..help!? need my mega menu for this site! this module is awesome and was so stoked how easy it was to configure...

responsiveconsulting’s picture

Same here...installed everything today with ZEN theme and when I hit Save I see my changes within TB Config, but not on frontpage. When I open TB Config again, changes are gone...I must say I really like this Menu...by far the best I've seen...good job

Using up to date Drupal 7, JQuery 1.7...pretty much everything your tutorial video talked about...it's working, but saving does not work right now

justluvgod’s picture

Version: 7.x-1.0-alpha4 » 7.x-1.0-beta2
Component: User interface » Code
Status: Needs review » Needs work
StatusFileSize
new210.45 KB
new574.61 KB

Tried the new beta 2 version.

Seems a little better. The submenus still do not hide when selected but at least the submenu items seem to align better(submenus sliding too far to the right previously). Any chance of hiding the submenus? If I could get it to hide the submenus in the menus, I would be happy and use this right away.

Also, I wasn't sure what the purpose of the hide when collapsed option? Any ideas or suggestion would be helpful.

Current config
- Drupal 7.22
- Omega theme 3.x
- TB Megamenu - 7.x-1.0-beta2

I included image to describe my issue.

scotwith1t’s picture

I still can't get a block to get added to the sub-menu. Getting "Uncaught SyntaxError: Unexpected token <" each time, doesn't matter what block I try and add...

petr illek’s picture

Same for me. Disabling the submenu from second level can't be saved.
Using TB MegaMenu 7.x-1.0-beta2.

RyanX’s picture

Subscribe

scotwith1t’s picture

this is really bumming me out, cuz i love this module...any help on this would be appreciated...i'm forced to revert to a much more tedious to theme superfish version of megamenus (basically only provides the markup, doesn't do any base css for you)...would much rather incorporate tb mega menus in this project!

justluvgod’s picture

Finally a patch was posted that resolved this issue for me.

https://drupal.org/node/2024333#comment-7897923

Try it out...

yuriy.sychenko’s picture

StatusFileSize
new177.42 KB
new199.78 KB

I have not saved the changes Grids (width) of the column, and the delay is not working
I changed the column by 3 grid:
1
after saving and reloading the page column was again 12 grid:
2

bombo’s picture

I second that. Grid of submenu won't be saved, which makes it impossible to add a block aside it. Nice Module though, with grid saving even more flexible. I'm using the development release on drupal 7.24.

ShaunB’s picture

I tried the patch mentioned in post #13 which didn't work so im still having the same problem with changes not being saved when I click the save button - specifically not having a submenu on secondary nav.

I'm running Drupal 7.22, a subtheme of ZEN 7.x-5.1 and TB Mega Menu 7.x-1.0-beta2.

I have tried using jQuery versions 1.5, 1.7 & 1.8 and running through all the necessary steps when trying to disable submenus on secondary navigation items but the changes never save no matter what version of jQuery I use.

Anybody tried anything else to get this working? Its a key feature that I need to get working otherwise I will have to look elsewhere for another module.

faustof’s picture

I had the same problem. I was able to fix it by changing the menu_config value from TEXT to MEDIUMTEXT.
Excellent module, thanks for it.

dawid_nawrot’s picture

this change in db doesn't work, guys, c'mon it's known bug and because of this it makes this module unusable

wranvaud’s picture

Issue summary: View changes

I've solved it installing jquery update module. Jquery version 1.5 was enough already so just activate the module and be happy https://drupal.org/project/jquery_update

joyv’s picture

Any resolution? I REALLY need this menu to work!!!

minneapolisdan’s picture

Seems like this is still an outstanding issue? I can't get the module to save changes either. I get the changes to show in preview, under admin/structure/tb-megamenu/main-menu/, but upon page refresh, everything reverts to the old setup. I've tried jquery version 1.5 and 1.7.

minneapolisdan’s picture

Confirming that the fix in #17 worked for us

minneapolisdan’s picture

It seems to require fix in #17 plus jQuery 1.5 (not 1.7)

paramnida’s picture

Comment #17 references changing the menu_config value. Where is this? Sorry if it is obvious. I'm new to Drupal. :-)

minneapolisdan’s picture

paramnida, what they are recommending is changing the value of that field within the database (MySQL, MariaDB, or whatever you use). So you'd have to do it outside of any Drupal admin.

paramnida’s picture

Thanks!

GreenMohanraj’s picture

Hello guys i'm using TB mega menu. its sub menus can not drop down probably help me guys

roragok’s picture

#17 worked for me.

Thanks. Does anyone know why that worked?

junixy’s picture

Hello everyone, please help me, I encountered this problem again today, i get the error with firefox control console like this below:

POST http://xxxx.com/admin/structure/tb-megamenu/request [HTTP/1.1 500 Service unavailable (with message) 11976ms]

it seems that it post data failed, any idea with this every body?

junixy’s picture

I have a large amount of menu items, there are 358 menu items.

I have done a large amount of test and found that if I enabled more than 300 menu items, it will threw this error and can not save it.

If the number of menu items is less than 300, it will be saved successfully.

I have modified the max_execution_time=120, max_input_time=120,post_max_size = 32M in PHP.ini and mysql.connect_timeout =120, but it error still, how do i continue?

I have take much many days with this problem, crying........

jmuzz’s picture

I had the same problem. Making the change to tb-megamenu-object.js described at #2024333-13: Problem with removing submenus from main navigation menu [patch] worked for me.

logii’s picture

I managed to solve this issue by going to Devel module settings page /admin/config/development/devel
and unchecked:
- Display page timer
- Display memory usage

What caused this bug?
It was cause by Devel was generating additional markup at the end of the ajax call.

satvision83’s picture

I have the same problem with the saving. It's very frustrating.

Some of you has fixed that with #17, but please can you explain where I can edit that "TEXT" and rename to "MEDIUMTEXT"?

P.S. I've also tried with the patch, but it didn't work.

mesho’s picture

I have same problem as #14 and all solutions presented here do not work for me. I try normal module also devel, various jquery versions, etc. The "DB type" solution may help with big menus only (TEXT = 65,535 (216−1) bytes = 64 KiB and MEDIUMTEXT =16,777,215 (224−1) bytes = 16 MiB; anyway it should be implemented in new version). There must be problem in parsing actually edited menu structure on client side. I like to use this awesome module, but with this bug, this module is useless.

cyperion’s picture

I have confirmed that this issue still exists in version 7.x-1.0-beta5 and is easy to reproduce. I instrumented the code and verified that the menu column configuration is both saved to and loaded from the database correctly. I do not see how changing the database schema would correct the issue.

After debugging the code, I found the problem on line 295 of tb_megamenu.functions.inc (in version 7.x-1.0-beta5), which reads as follows:

$item_config['rows_content'][$row][$col]['col_config'] = array();

This statement appears after a while() loop and blanks out the configuration data ('col_config') for the last column of the menu by setting it to an empty array. It is not clear to me under which conditions this line of code is problematic, but commenting out that line of code fixed the problem for us.

bellyh’s picture

Commenting out $item_config['rows_content'][$row][$col]['col_config'] = array(); works for me but the columns are not in order.

vids’s picture

#32 works perfectly fine for me.
I was trying to solve this issue since 1 week.

I realize I lately install Devel Module. And this issue occurs after I installed Devel module.

So, I just unchecked my Display memory usage in /admin/config/development/devel module.

Thanks!

vids’s picture

I again encountered with this problem after I installed Omega in Drupal 7 and solved this problem with:

Problem:
I was looking into top menu and I noticed that column's grid was automatically changed from 4 to 12. I changed and saved it so many times but still menu grid was changed from 4 to 12. Because of change in grid some of the item from menu column were pushes down.
I solved it with three steps.


Solution:

Step 1:
I unchecked my Display memory usage in /admin/config/development/devel module as per #32 in this link https://www.drupal.org/node/2040471.

Step 2:

I also changed line as per #13 in this link https://www.drupal.org/node/2024333#comment-7897923

from
if (liitem.find('ul.level'+liitem.attr('data-level')).length > 0) {
to:
if (liitem.find('ul.level-'+liitem.attr('data-level')).length > 0) {

(Note: change was just adding a hyphen after level)

Step 3:

As per #35 in this link https://www.drupal.org/node/2040471

I commented line 289 in tb_megamenu.functions.inc.
$item_config['rows_content'][$row][$col]['col_config'] = array();

And now, my menu grid saved perfectly fine.

Thanks everyone!

michaelngodh’s picture

Please update to the latest dev verison to check this problem. Because we fixed and tested on that version. Please reviews it. If you have any issues, please post. We will fix it. Thanks for your ideas.

michaelngodh’s picture

Status: Needs work » Needs review
michaelngodh’s picture

Status: Needs review » Closed (fixed)
Mzambrana’s picture

Version 7.x-1.0-beta5
My problem was that I could not save, edit the text type to mediumtext in the field menu_config and now everything works.

yaach’s picture

I also was able to solve this issue by:

  1. Go to the tb mega menu table
  2. Select the menu_config column
  3. Change its type from TYPE to MEDIUMTEXT

Drupal 7.34
TB Mega Menu 7.x-1.0-beta5
Jquery Update 7.x-2.4 using 1.7

Xrobak’s picture

This bug still exist. There is no data (empty table) in table tb_megamenu after I save menu settings, only fake message "Saved config sucessfully!"

I'd tried 7.x-1.0-beta5, 7.x-1.0-rc1, 7.x-1.x-dev and nothing. Also tried to change type from TEXT to MEDIUMTEXT for the field menu_config but this is not help me.

PS: Drupal 7.38, jQuery Update 1.7, PHP 5.4.13, MySql 5.5.42.

mariusm’s picture

#38 it's work for me

at step 3 line is 333 ( with last dev)

Xrobak’s picture

It seems like this bug cause some hosting settings or environment. I uploaded my site to other hosting with PHP 5.5.14, MySql 5.0.11 and menu settings saved normally. So, may be goal in MySql version?

doxigo’s picture

Status: Closed (fixed) » Active

I also have this issue with PHP 5.6.11, MySql 5.0.11-dev on my local environment against the latest dev or rc version.

toby wild’s picture

I changed the menu_config to "blob" rather than "mediumtext" and it started working for me.

That was on the latest Dev version.
It was infuriating me, I was close to just writing the JSON manually and inserting it in the DB.

doxigo’s picture

for those who are looking for a quick fix, you can try this version of megamenus

Xrobak’s picture

doxigo, nice module and menu works correct in few languages as it must be. But, that module has other bugs like all submenus opened. And if you have sub menus level 3 or more you would see menu subitems are overlapping each other.

azinck’s picture

tuccio’s picture

#32 fixed the issue I was getting with an "uncaught exception: Invalid JSON" error.

jonnycarter’s picture

Check that node is published. I thought it wasnt saving - but it just wasnt displaying the unpublished nodes.

akalata’s picture

kevintnguyens’s picture

this solved for me due to the site having a huge menu (over 300 items), it tried to write to the menu_config column and there was not enough room. So I set the the property to large_text

mariem’s picture

The solution in #17 also worked for me - I'm using the current dev version (7.x-1.x-dev), and have hundreds of menu items.