Skip to Content Skip to Menu

Can't get autocomplete to work?

  • adm_ally
  • adm_ally
  • OFFLINE
  • Posts: 8
  • Thanks: 1
  • Karma: 0
8 years 3 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 or Create an account to join the conversation.

  • ak2107
  • ak2107
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
8 years 3 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 or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
8 years 3 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 or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
8 years 3 months ago #284196 by slabbi
Replied by slabbi on topic Can't get autocomplete to work?

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

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
8 years 3 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 or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum