Compare after a filter show "Product not found"

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #266740

Hello,

It's my first time on a forum.

When I do a product comparison after filtering products, I have the error "poduit not found". Of course, when I do the comparison without having done any filtering before, it works perfectly.

Do you have an idea where is the problem ?

Best regards.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #266743

Hi,

Can you provide a link to your products listing so that we can look at the problem ?

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #266807

Thank you for your answer.

Here is the link : equifirst.fr/en/products2

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #266838

Hi,

I don't see why you get that. It seems that you have the new HikaShop 3 comparison system for each product, but you're still using the old system for the main compare products button and that's why it doesn't work.
I suspect that you have some view overrides of the file "listing" of the view "product". And that's the cause of the error.
Try renaming the folder templates/YOUR_TEMPLATE/html/com_hikashop/product in order to deactivate all the view overrides on your product views and see if it works.

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #266882

Hi,

It's done but The problem is always there.
You can try.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #266931

Hello,

When you are using the filter ; you are not in the same menu :
equifirst.fr/en/products2/feed2/product/listing
And because the menu is different with a different configuration ; the "compare" button is not the same than in the other page, because the context is different.

I created a patch and Nicolas is currently uploading new packages that you can download in order to get the new compare button even in the "product listing - group by category" context.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267043

Thank you very much.

Can you tell me how/where I can download the patch ?

Best regards.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #267053

Hi,

Download the install package of your HikaShop on our website via the menu My account>My subscriptions and install it on your website via the Joomla installer and that will apply the patch.

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267156

Hi,


Thank you.
But now I have another prblem. The pictures fo the products no longer appear.
I have verify and the are on the server at the same place as before.

Do you have an idea ?
www.equifirst.fr/en/products2


Best regards.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #267158

Hi,

If I try to open the images, I get that error:
monosnap.com/file/gOx49sPuhjh6IvAtwlNIFtPbI9MbPI
As you can see, the problem is that there is this /en/ part at the beginning of the URL of the image, which doesn't exist and shouldn't be added.
And if you try to remove it from the URL, it is added back automatically. This indicates that you have customized the htaccess of your website to do some language redirection. The problem is that it wasn't done properly as it should only affect php and html files, not images.
So it's not linked to the update of your HikaShop as far as I can see.

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267223

Hi,

It's a little bit special because when I do the same with a pictures who's not use d by Hikashop, I can see the pictures without 404 Error.
And I didn't modify the htaccess file.
The problem is only with Hikashop and the pictures use by Hikashop and appear just after the installation of the new package.

Here is the content of the htaccess file :

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that disallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##

## No directory listings
IndexIgnore *

## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.


Best regards

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #267230

Hi,

The htaccess you provided looks like the default one.
Then maybe it comes from the system languages plugin of Joomla. Try to unpublish it and see if that helps.

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267309

Thank you, but nothing change with unpublish the plugin and all other plugin for language (Falang).

Perhaps I can take a backup of my site (before the installation of the patch) and reinstal the backup.
But I have to know wich files you have modify in the patch.

Best regards

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267313

Sorry,

It's done. I found a .htaccess in the folder "images/com_hikashop/upload".
I never put that htaccess in this folder.

And in this .htaccess I have only "deny from all".

I have found a function "createUploadFolders" that create a .htaccess with "deny from all" in the the new package I have install 3 days ago.

Well It's done.

Thankyou very very much for all your help.


Best regards.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
7 years 7 months ago #267315

Hi,

If you look at the section "Files" of the HikaShop configuration, you'll find two settings: "upload path" and "upload secure path"
By default the upload path is set to images/com_hikashop/upload and the upload secure path is set to media/com_hikashop/upload/secure.
HikaShop automatically adds a htaccess to deny the access to the upload secure path. That way, when you sell files and upload them in HikaShop, they cannot be accessed directly and the download requests for the files have to go through HikaShop, which checks that the customer has the right (that he purchased the product corresponding to the file) to download the file.
If you say that HikaShop added a htaccess to images/com_hikashop/upload, then it means that you changed the upload secure path to images/com_hikashop/upload which you shouldn't do. You should use another path. For example images/com_hikashop/upload/secure

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

  • Posts: 34
  • Thank you received: 2
7 years 7 months ago #267361

Hi Nicolas,


Thank you very much for all your time and for all your explanations.

You are the best.


And sorry for my very bad english.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum