I can't save a megamenu

haelmx's picture
haelmx
Tue, 03/05/2013 - 11:38
#1
I can't save a megamenu

Hello. I have created a Mega menu, but when I try to save it, I get the message:

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'http:' for column 'mid' at row 1: INSERT INTO {md_megamenu_tabs} (mid, position, settings, items) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => http: [:db_insert_placeholder_1] => 0 [:db_insert_placeholder_2] => a:2:{s:7:"general";a:7:{s:16:"is_dropdown_menu";b:0;s:12:"title_enable";b:1;s:5:"title";s:6:"Inicio";s:4:"path";s:7:"<front>";s:11:"description";s:0:"";s:4:"icon";s:0:"";s:9:"css_class";s:0:"";}s:6:"layout";a:4:{s:8:"col_grid";i:12;s:12:"rows_setting";a:0:{}s:13:"is_full_width";b:0;s:13:"submenu_width";s:0:"";}} [:db_insert_placeholder_3] => a:0:{} ) en MDMegaTab->save() (line 358 from /var/www/drupal/sites/all/modules/md_megamenu/includes/md_megamenu.class.inc).

 

Can you help me?

haelmx's picture
haelmx
Tue, 03/05/2013 - 15:06

Hello, I have solved the issue. 

It only happens  when enter in "path" filed an url without "http"

 

Neo's picture
Neo
Tue, 03/05/2013 - 22:43

Can you tell me how to get the message (from creating menu, add link...)? Because I tested with and without http every where and the message did not appear. I need to know to fix it.

Thank you

haelmx's picture
haelmx
Thu, 03/14/2013 - 14:13

Hello, thanks for your quick reply.

 

I couldn't get the message again, I don't know why happend the first time, but it look everythig is fine with that issue.

 

Nevertheless, I have others issues with this module.

  1. Whe I add an HTML component, if I use no English characters, like á,é,í,ó,ú or even using html coding like &aacute, &eacute, the first time I seve the changes everything works fine, but if I save again those characters are coded in utf8
  2. When I have many HTML components in my menú, every time I need to save changes, I have to make a little change en every html component, otherwise I got the message: "Warning: Invalid argument supplied for foreach() en md_megamenu_edit_links_form_submit() (línea 1070 de c:\path\to\my\site\sites\all\modules\md_megamenu\includes\md_megamenu.admin.inc)."  and nothig is saved
  3. Is there a way to use another wysiwyg editor, for example ckeditor?
haelmx's picture
haelmx
Fri, 03/15/2013 - 14:17

hello,

 

I have figured out that the issue with html component was that I used html view to add a table with 100% width, the problem was the "%" character in the code.

 

I need help to solve the issue with no english character in html componet, can you help me with that?

Neo's picture
Neo
Sat, 03/16/2013 - 08:21

Hi,

For your questions:

  1. I think it's because of database encoding, I'll check and fix this soon, please wait for 2-3 days.
  2. I'm working on % error
  3. There is no option to use another editor now. I'll check and put this to update list.
Neo's picture
Neo
Wed, 03/20/2013 - 04:40

Hi,

please replace attached files to md_megamenu module folder. I fixed % and non English charactor error.

haelmx's picture
haelmx
Wed, 03/20/2013 - 11:06

Great.

 

Thank you very much

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.