Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I would make a report about a possible bug for automplete function in URL field.
This is the pop-up text shown when I'm filling the URL field:
<sitename>
An error occurred.
http://sitename/it/advanced_link/autocomplete/contains
<br />
<b>Fatal error</b>: func_get_args(): Can't be used as a function parameter in <b>/var/wwwroot/sitename/sites/all/modules/advanced_link/advanced_link.module</b> on line <b>50</b><br />
Thanks, Bye!
Comments
Comment #1
Eugene Fidelin CreditAttribution: Eugene Fidelin commentedSeems this problem related to PHP version that you are using.
On PHP 5.3.6 i can't replicate this bug.
Can you please provide info about your PHP version?
Comment #2
Eugene Fidelin CreditAttribution: Eugene Fidelin commentedTry the latest 6.x-1.4 release - this bug must be fixed there
Comment #3
Eugene Fidelin CreditAttribution: Eugene Fidelin commentedComment #4
Dret CreditAttribution: Dret commentedMy PHP version is: 5.2.6-1+lenny8
Thanks!
Comment #5
Dret CreditAttribution: Dret commentedOk the problem is solved in 6.x-1.4, no more error BUT the URL filter seems not working.
Setting only two internal link to choose from (adding the path one per line), the autocomplete field shows all nodes available.
Example, I set as available only URL with path "node1" and "node2", but, on typing, it shows me:
node1
node2
node3
node4
... and so on
I hope this could be usefull!
Bye!
Comment #6
Eugene Fidelin CreditAttribution: Eugene Fidelin commentedFor now URL filter works only during saving node - it not affects auto-complete suggestions.
So in your case you could select node3 as url but during validation you will get an error message that you can't use this url.
I have added your request as a separate issue http://drupal.org/node/1780264 - we will implement in nearest release.
Comment #7.0
(not verified) CreditAttribution: commentedSyntax error!