Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K2 sites with Enable advanced SEF for K2 URLs get Notice message after update to 2.10.3 #522

Open
jameswadsworth opened this issue May 15, 2020 · 2 comments

Comments

@jameswadsworth
Copy link

We begin updating websites to K2 2.10.3. Those with "Enable advanced SEF for K2 URLs" (now know as Enable custom SEF settings for K2 URLs) set to Yes (most of our sites have this set to yes) - you get a notice in the frontend when viewing items that don't have direct menut items linking to the K2 item but you navigate through the category to arrive at the item (on our websites this is normal)

Selection_044

We have tried a clean install of K2 2.10.3 and Joomla 3.9.18 to see if were an issue with upgrades. It didn't change anythinig. On the clean install the setup is very basic. 1 K2 category with 2 K2 items inside. We have Enable custom SEF settings for K2 URLs set to yes and in Joomla config SEO settings, Search Engine Friendly Urls to to yes, use URL rewriting set to yes and Add Suffix to URL set to yes.
Selection_043

To get rid of the notice warning (beside supressing warnings in php), we can set Enable custom SEF settings for K2 URLs to NO, but this changes all URLs because /item/ is inserted into the URL. The other options is to disable SEF URLS in Joomla. Neither of these solutions is feasible.

Could you look at this urgently because this stopping us from upgrading from K2. 2.10.2. Thanks

@fevangelou
Copy link
Member

I recommend that you use the /components/com_k2/router.php file from K2 v2.10.2 for now (get it from https://getk2.org/downloads/?f=K2_v2.10.2.zip).

There is an incompatibility with previous URLs under certain configuration combinations.

K2 v2.10.4 will be out in a few days and it will offer the option to use the v1 router (what existed up to version 2.10.3 in K2) and the v2 router (which is what was introduced in 2.10.3).

@cre8gr
Copy link

cre8gr commented May 25, 2020

We're also having problems with SEF URLs returning a 404 error having Custom SEF URLs enabled and try to access an item (not having a menu assigned directly to it) from a category.

Here's our settings:

k2-sef

Returning to 2.10.2 router.php is solving the issue. So there's definitely a problem here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants