Weird URL Structure And Lot Of "0" Errors - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Weird URL Structure And Lot Of "0" Errors

C

Catherine

Template 2 years ago

Hi, I have a very strange issue with Barber theme. It I set direct link to articles (not menu links), URL structure is very weird (eg. /en/component/content/article/1st-prologue-of-the-authors?catid=17:the-show&Itemid=222) and leads to 404 error. By the way, category ID is OK, but item ID is 43 and not 222. If I preview the article with the excellent Better Preview plugin from Regular Labs, URL is /en/?option=com_content&view=article&id=43&catid=17&lang=en-GB and it can be seen.

Let's do another test. I created 2 articles, one "Test EN" in English and another one, "Test FR" in French. They are associated as translations of each other. If I have a look at "Test EN" with URL /en/test?view=article&id=109&catid=2 and have a look on the head code, there is

<link rel="canonical" href="/en/test?view=article&id=109:test-en&catid=2">
<link href="/fr/component/content/article/test-fr?catid=20&Itemid=223" rel="alternate" hreflang="fr-FR">
<link href="/en/component/content/article/test-en?catid=2&Itemid=222" rel="alternate" hreflang="en-GB">

and of course, switch from EN to FR causes a 404 error.

Let's go now to create menu items for "Test EN" and "Test FR". URLs are now like /en/test-en and links for languages are OK. But of course, it's not an option to set menu items for every article. So, let's try to set up a category menu link. Error, even with /en/category-test or with preview link /en/?option=com_content&view=category&id=2&Itemid=325. Error message is "0 Attempt to modify property "params" on null" and in console, error 500. Is it a global error or a template error? Let's assign this menu item to default Protostar, and that's it, everything is OK, all URL of articles in articles links are clean, so it's definitely an issue caused by Barber template (or more probably by Helix).

So, I found a way around the problem, but it's not very satisfiying because the issue is still there. Furthermore, if I set link within a page before doing this trick (with JCE and choosing "content" links), link URL is system URL and not clean URL. If I set link after that, URLs are clean. Now, I have to re-edit all links :-(

Do you have an explanation to this? And and idea to how solve it?

Best regards.

PS : Joomla! 3.10.11 and all extensions and templates up to date.

0
3 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #112086

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Create a category blog menu and assign your category inside this menu. I hope your problem will be solve.

Don't forget to create two menu for English & France. Also, you need English & France categories.

-Thanks

0
C
Catherine
Accepted Answer
2 years ago #112160

Hi Toufiq. That's what I've done, but with category list. It solved url issue, but these menu items goes to error page.

Erreur: 0 Attempt to modify property "params" on null

For example http://harihara-themusical.com/fr/livret. Not a big deal, as these pages are not supposed to be seen, but it shows that something goes wrong.

Best regards.

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #112245

Will you please provide me the Joomla administrator access to check the issue?

0