Can't get autocomplete to work?

7 years 7 months ago #284179 by adm_ally
Replied by adm_ally on topic Can't get autocomplete to work?
Here is a solution that work for us.

First check in the logs error if there something like this:
PHP Fatal error: Using $this when not in object context in libraries/joomla/filter/input.php on line 233, referer: http://yoursite/uddeim?task=new

In this case,
you have to edit the file /components/com_uddeim/uddeim.php

It use a class native of Joomla call JFilterInput Here is the problem. In the version of Joomla 3.5 you have to iniciate the class with the object, it isn´t static class. In this case use a method call clean(). So in the file uddeim.php you edit and force that dont use this method, is not necessary.

So you edit /components/com_uddeim/uddeim.php
Replace this in line 2668
if (class_exists('JFilterInput'))
$input = JFilterInput::clean($input, 'username');
else
$input = (string) preg_replace( '/[\x00-\x1F\x7F<>"\'%&]/', '', $input );

to:
// if (class_exists('JFilterInput')) {
if (false) {
// $input = JFilterInput::clean($input, 'username');
$input = new JFilterInput;
$input->clean($input, 'username');
}
else {
$input = (string) preg_replace( '/[\x00-\x1F\x7F<>"\'%&]/', '', $input );
}

let it commented the above code because of a change of version may be able to put it back as it was originally

And in the line 2835 approximately repeat the same.


good luck
The following user(s) said Thank You: ak2107

Please Log in to join the conversation.

7 years 7 months ago #284187 by ak2107
Replied by ak2107 on topic Can't get autocomplete to work?
THIS WORKED FOR ME, THANK YOU SO MUCH!!! :woohoo:

Please Log in to join the conversation.

7 years 7 months ago #284191 by slabbi
Replied by slabbi on topic Can't get autocomplete to work?
Great, thanks. Was searching for the problem but was blind to the obvious.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

7 years 7 months ago #284196 by slabbi

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

7 years 7 months ago #284198 by fribse2011
Replied by fribse2011 on topic Can't get autocomplete to work?
Hi Slabbi

Thankyou for the quick fix, the error is now gone, though I still don't see the list appear, and I think that is the previous problem with z-index or something like that...

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.881 seconds

Facebook Twitter LinkedIn