Menu Content

Support

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

First visit 404 error
(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: First visit 404 error

First visit 404 error 14 years, 8 months ago #11053

I just took over an existing site with JoomSEF installed. We noticed a problem today after I updated from the older version. The site home page comes up fine when the URL is entered. Click any menu item, and the "Fatal Error, Call to Undefined Function" error appears. Return to the previous page, and now everything works fine. All links function, including the one that was broken a moment before.

I will continue trying to find a solution in the documentation, but any help would be greatly appreciated.

Re:First visit 404 error 14 years, 8 months ago #11066

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

Could you post the exact error message reported?
Thank you.

EDIT: Also please post which version of Joomla and JoomSEF do you use.

Best regards,
ARTIO Support Team
ARTIO Support Team
Last Edit: 14 years, 8 months ago by dajo.

Re:First visit 404 error 14 years, 8 months ago #11069

Fatal error: Call to undefined function: array_diff_key() in /hsphere/local/home/irides/intermarkridegroup.com/components/com_sef/joomsef.php on line 703

It's actually not a 404. Joomla version is 1.5.15. JoomSEF version is 3.5.5. Site is intermarkridegroup.com.

As I mentioned, I just took over the site. There are modifications made by a previous admin to discourage hackers, so I'm seeing a few configuration oddities that are unfamiliar.

Re:First visit 404 error 14 years, 8 months ago #11071

  • dajo
  • OFFLINE
  • Posts: 5069
The array_diff_key() function needs PHP version 5.1.0 or higher, so this may be the problem. The recommended version of PHP for JoomSEF is 5.2.x. You can find some implementation of array_diff_key() for older PHP versions here in the comments: http://www.php.net/manual/en/function.array-diff-key.php

Hope this helps.

Best regards,
ARTIO Support Team
ARTIO Support Team

Re:First visit 404 error 14 years, 8 months ago #11072

Thanks. I suspected it might be the PHP 4, since I get an error on another component indicating a conflict with that version of PHP.

I will recommend that the site owner buy the paid version of your component, assuming everything is working when the PHP upgrade is in place.

Re:First visit 404 error 14 years, 8 months ago #11423

  • jaku
You can 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));
Last Edit: 14 years, 8 months ago by .
  • Page:
  • 1
User Login Empty