Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Search Module not working
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Search Module not working

Search Module not working 15 years, 4 months ago #7678

I Had Artio Joom SEF 3.3.0 installed and an AJAX search module from Yoo Tools.

When I search for something I get the error below , pointing me to joomsef

Fatal error: Call to undefined function: array_diff_key() in /home/sites/lovemypub.co.uk/public_html/components/com_sef/joomsef.php on line 616


I get the same error with the AJAX search module disabled and the Joomla search module in place.

If I disable the Joomsef plugin, The search module works fine, but i do actually want the Joomsef module to work.

I have now upgraded to Joomsef 3.3.3 via the upgrade manager in my admin panel and am using Joomla 1.5.10

It wouldnt be a problem to uninstall and reinstall joomsef at the moment as the site is still under construction.

Could anybody offer any advice? The site is here www.lovemypub.co.uk

Re:Search Module not working 15 years, 4 months ago #7679

  • jaku
Hello,

yes, the problem is, that your server is still using PHP4.
Function array_diff_key is not available in PHP4, it has been added in PHP5. That is why you are getting this error.
One way to solve this is to upgrade PHP on your server. The other is to do some a coding hack so the function array_diff_key will not be used and will be replaced by other procedures.

Re:Search Module not working 15 years, 4 months ago #7680

Thats Great, Thanks!

I Have just installed sh404 which works perfect, but will now uninstall and try again after ive upgraded to php5.

Thanks again!

Re:Search Module not working 14 years, 9 months ago #11426

  • jaku
You could also rewrite the function array_diff_key using other 2 functions. However, you will need to chage the code on each upgrade. Anyway, the rewriting can be made as (in general):

array_diff_key($a, $b);

equals to
array_diff(array_keys($a), array_keys($b));
  • Page:
  • 1
User Login Empty