Hi,

When i try to create a new menu item and enter the url in "path" field.
I notice there is a limit of 128 characters.

I have read a lot of posts on this but none of them tell me how i can change this.

i understand that i need to modfy the database but what values?
And what file do i need to edit to remove the limit from the path field.

Comments

WillHall’s picture

are you trying to use the alias?

if so just use the node/## the alias will still be used.

kevintje’s picture

Hi,

I'm not sure what you mean with the alias, but i'm not trying to ling to an internal node.
I am trying to add an external link in the menu.

Regards

WillHall’s picture

ah well - that does matter then :-D

Did you try this patch?
http://drupal.org/node/288946 - near bottom.

kevintje’s picture

Hi i have checked this, but in order to apply this patch, do you needs access to a command line on the server?
I have no experience in applying patches.

WillHall’s picture

Well - you can apply it manually - which you may want to do if you are going to do it.

you would need ftp access - and the ability to modify your database tables (ex: phpmyadmin) because you are changing the varchar (character limit)

the files that need editing are listed and anywhere you see a - at the beginning of a line is one that is being removed + is one that is being added.

So for example

path.admin.inc

- '#maxlength' => 128,
+ '#maxlength' => 255,

means change 128 to 255 - do this for each file.

as for the database part - assuming you have phpmyadmin.... open up phpmyadmin and fin the row labeled "url_alias" click the icon with the title text of "Structure"

you should now see 4 rows two of which are in need of a quick edit
"src" and "dst"

click the edit icon next to each and change the value of varchar from 128 to 255 save and done.

kevintje’s picture

Hi ,

I have made all the changes as listed in the patch.
But still i can only enter 128 characters in the path field.

I already cleaned my cache from drupal just to make sure this wasn't causing an issue.

WillHall’s picture

run update.

kevintje’s picture

When i start the update i says updating 0 from 0 and finishes the update without errors
But no effect on the 128 character field

WillHall’s picture

I will apply the patch to a test site and let you know if there are any further steps.

kevintje’s picture

As i had some other issue with the site i decided to reinstall drupal all over.
Before doing this i changed all the files as listed in the patch and started installation, but still the url/path field is limited to 128 chars

WillHall’s picture

Yes, the patch didn't seem to work for my 6.x either - I will dig around some more - and If I spot something new I will post it here.

kevintje’s picture

Thank you for all the time you have put in this already, i will bookmark this page .

colan’s picture

There is a separate issue for menu paths. Take a look at #1237290: Menu path length is limited by the UI to 128 characters.