Error 404 in category display

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #138519

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2
Hi.
I have error with URL only in one case - when I try to going on second or other pages with products.




Hika add internal path where located my website to URL.


Attachments:
Last edit: 11 years 7 months ago by moneymr.

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #138637

Hi,

That's probably because the "live_site" URL of your configuration.php file of joomla is not correct.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #138661

Hi.
No it is not:
public $live_site = '';

Last edit: 11 years 7 months ago by moneymr.

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #138681

How about you enter your website URL in there ?
Also, make sure you clear your website cache if any activated after the modification.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #138697

I sent private message with web-site to you Nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #138780

Hi. Nicolas, did you look to website?

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #138818

I looked but the catalog nlink is working fine as well as its sub categories links.
For example, I'm getting: cnpr.ru/catalog/kartiny-na-shelke.html
So I don't see where you have a problem.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #138846

Great. Click on 2 page. I show it on first image. And you will see error.

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #138971

It looks like your server is not providing the correct URL in the $_SERVER variable of PHP.
A simple fix will be to edit the file "listing" of the view "product" of the frontend template and to change the code:

hikashop_currentURL()
to:
str_replace('http://cnpr.ru/pl/cnpr/','http://cnpr.ru/',hikashop_currentURL())
(two places in the code)

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #139012

Hi.

It looks like your server is not providing the correct URL in the $_SERVER variable of PHP.
Maybe some error not in server. Because whole web-site working well.

I made changes like you wrote. But nothing changed. Still have error

Also, this error happens when trying to send comments to the product. P.S. Why empty comments is accepted?

Last edit: 11 years 7 months ago by moneymr.

Please Log in or Create an account to join the conversation.

  • Posts: 84242
  • Thank you received: 13686
  • MODERATOR
11 years 7 months ago #139118

Then it probably means that either you didn't edit the file for your frontend template but for another one, or that you didn't change all the places in the code where hikashop_currentURL() is to be fine in that file.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #139171

Look at the images. Now you believe me?



Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139423

Hi,

The code given by Nicolas should work.
Are you sure that you have edited the view in the correct template ?

If it is, thanks to give us a backend access to your website in order to find the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #139484

2Xavier I sent privete message for you

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139491

Problem solved, the pagination used was the one in the view "product / listing_div". So I edited that view.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 1
11 years 7 months ago #139493

Ok. Thanks, Xavier
Please give this task for Hikashop developers. Myabe this can be fixed in other version of Hikashop.

Last edit: 11 years 7 months ago by moneymr.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #139583

Hi,

It's the first time I encounter this problem. But we will see if we can improve that part.

Please Log in or Create an account to join the conversation.

Time to create page: 0.136 seconds
Powered by Kunena Forum