Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Warning: Invalid argument supplied for foreach() i
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Warning: Invalid argument supplied for foreach() i

Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28810

Hi,

I just purchased and installed JoomSEF 4.2.5 and cannot seem to get the SEF URLs to work.

On entering the old index.php URL, followed by my desired URL, I get this error:

Warning: Invalid argument supplied for foreach() in /home/wwwspas/public_html/2012/administrator/components/com_sef/models/sefurls.php on line 366

Can anyone assist? My site is using K2, and this article is a K2 item.
Last Edit: 12 years, 8 months ago by gazza777. Reason: spelling correction
The topic has been locked.

Re: Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28812

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
Do you have JoomFish installed on your website? This error is generated by a left-over code from JoomSEf 3 related to JoomFish, but JoomSEF 4 is not compatible with JoomFish (also there's currently no official release of JoomFish for Joomla 2.5).

Anyway, thank you for your report, we'll fix this error in next version of JoomSEF.

However, this warning shouldn't cause the SEF URLs not to be working. What exactly is the problem with your SEF URLs? Are they not created at all? Or do they display 404 page when clicked? Do you use K2 extension for JoomSEF?
ARTIO Support Team
The topic has been locked.

Re: Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28813

Hi thanx for the quick reply, I didn't know Joomfish is a problem.

I started installing Joomfish but it conflicted with another module I had so I didn't use it, or uninstall (since it had errors) I guess it must have left code behind.

The problem with my SEF URL is that it is not working. Not sure if I am doing something wrong, let me describe how I did it:

1.) I added Real Url as "index.php?option=com_k2&view=item&layout=item&id=7&Itemid=7"

This is a link to an article I want to neaten up.

2.) I called this SEF URL "soulstice-pretoria"

3.) I assigned the K2 itemid which in this case was "7"

4.) Set ticks in all remaining boxes.

5.) I entered the new SEF URL as "www.domainname.co.za/soulstice-pretoria" in my browser and the page that opens is not a 404 or an error, but rather it looks eaxctly like my home page, minus the sliding banner - clearly not the page I was hoping to see!

Thanx again
The topic has been locked.

Re: Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28820

  • dajo
  • OFFLINE
  • Posts: 5069
Well, why are you setting the SEF URL manually? If you have it present in your menu or it is accessible on your website, it should be generated automatically by JoomSEF when someone browse through your website.

Also the variables in Real URL field must have a special order, option being first and another variables being in alphabetical order. Also the Itemid shouldn't be in the Real URL field but in its own field instead.

So your URL should look like this:
New SEF URL: soulstice-pretoria
Old Non-SEF Url: index.php?option=com_k2&id=7&layout=item&view=item
Itemid: 7
ARTIO Support Team
The topic has been locked.

Re: Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28831

Ok I am now reading the install manual and it helps! Apologies, after getting that initial error I came straight here looking for answers. Now that I know that error is not going to affect the whole setup I have followed the instructions and all is well!
The topic has been locked.

Re: Warning: Invalid argument supplied for foreach() i 12 years, 8 months ago #28835

So I've got it working mostly, however a few issues now:

1.) Home page flash silder does not work since enabling Search Engine Friendly URLs
2.) Articles sitting in K2 on the main menu are being automatically renamed - great! But articles linked to the Joomla system Articles Manager are not being automatically converted. Added to this, when I click the articles now, I see the blank flash slider module above the article, when showing an article, this module is not supposed to show.

When I take the Search Engine Friendly URLs off again all seems to work fine.

Any ideas?
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný