user warning: Table 'mydrupaldatabase.menu_links' doesn't exist query: UPDATE menu_links SET link_path=CONCAT(CONCAT(link_path,'/'),mlid) WHERE (link_path='nolink' OR link_path='separator') AND hidden!=-1 in /homepages/24/myuser/htdocs/phdrupal/sites/all/modules/special_menu_items/special_menu_items.module on line 228.

I have no idea but after installing this module, I get this warning message all the time. I can visit the settings page of the module but I see no options when going to a menu and wanting to change settings or create a new menu item. If I disable the module, the message dissapears (no wonder, I guess).

Did I miss something?

Thanks!

psc

Comments

metabits’s picture

I forgot to add that my provider stores data bases in different servers than the rest of data. Could this be the reason?

I really would like to use this module so I hope you figure out what's wrong.

Thanks again

psc

fishfilet’s picture

I get this exact same error. I do not have a table called munu_links in my database all of my tables are prefixed with drup_ so in my database the table is drup_menu_links so I changed line 228 to reflect this and the error went away. However I still get an error when trying to create a "nolink" menu item or a "separator" menu item. The error says "The path '"nolink"' is either invalid or you do not have access to it". So I still cannot use this module. I really need this functionality so please post any thoughts.

I am curious to know weather this is just an oversight or is that the default name of the table and for some reason all of my tables are prefixed but this is not normal. I only ask because there have been other modules and instructions online for things like manually turning off a module through an SOL query that have not matched up and I have had to add this prefix to make things work. I installed Drupal on my site via simple-scripts which was provided by my host and perhaps this is something they added.

fishfilet’s picture

I would still like to know how to fix this because this seems like it could be a great module. For now I have stumbled upon DHTML Menus module which works great. Just enable it and and your done, it just works! While the end result is just what I want and it has some great added benefits to it you still have to have a landing page for the link. It just does not do anything but expand the menu. It does this great but I am not thrilled about still having to create either a blank page or what I do is just point it to the first child.

Anyway psc give it a try at least you will have something till this module can be fixed.

osman’s picture

Unfortunately it doesn't support table name prefixes.

Here is my solution, until the patch releases, update special_menu_items.module
From:

 // line 228
db_query("UPDATE menu_links SET link_path=CONCAT(CONCAT(link_path,'/'),mlid) WHERE (link_path='nolink' OR link_path='separator') AND hidden!=-1");

To:

db_query("UPDATE {menu_links} SET link_path=CONCAT(CONCAT(link_path,'/'),mlid) WHERE (link_path='nolink' OR link_path='separator') AND hidden!=-1");
metabits’s picture

Well, the thing is that I installed version 1.3 and worked! unless for primary ans secondary links (that I am not really using), but at least I do not get this error message any longer and I do get my nolink / separator.

Is maybe version 1.3 table prefixes more "friendly" than v1.4? any way, something new in version 1.4 make it not working for me.

psc

Servit’s picture

Status: Active » Fixed

Hi all,

Yes, somehow I missed adding the curly braces in that SQL statment. The new version is out now (with the curlies included!).

Khaled Zaidan

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dbolser’s picture

Issue summary: View changes

I'm seeing the same error on version 7.x-2.0