problem with displaying custom field images after update to 3.9 and hikashop 4.4

  • Posts: 490
  • Thank you received: 2
4 years 4 months ago #325223

-- HikaShop version -- : 4.4
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.2.34
-- Error-message(debug-mod must be tuned on) -- : 404 - Category not found

hi

first my site is working ok, no problems considering my customisations

i updated my joomla to 3.9 and hikashop to 4.4

like i said, ii have customised my product pages with custom fields. i display custom field using this code

<div class="hika_ueser_image_cus">
<?php echo '<img src=".../images/profile-photo/'. $this->product->bannerimage. '" height="471px" width="900px">'; ?>
?>
</div>


my problems is that the photos from the custom field ajax image upload is not being displayed in the front end.

if you check using file manager, the files it is present. The front end only display a ? icon.

note i don't get any errors on the front end even on debug mode max reporting of errors

but when i try to open the image on new tab joomla says,( i right click then open image in new tab ) i get the error

404 - Category not found
You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages: Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below..

Category not found


please advise thanks

Last edit: 4 years 4 months ago by ronron.

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 4 months ago #325228

Hi,

It's potentially linked to the fact that custom fields of the type "ajax file" and "ajax image" now have an extra option to be able to upload several files in the same custom field.
Or it could be that the folder where the images are uploaded is not /images/profile-photo/
What is the URL of the image ? You can see it in the address bar of your browser when you open the image in a new tab.

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

  • Posts: 490
  • Thank you received: 2
4 years 4 months ago #325286

thanks for the reply

1. i have verified the file and it is in the correct folder with correct permission

2. url is https://.../investor-buyer-dashboard. please register to view this. registration need NO approval

3. i tried to change it with image field type but it is still the same

to be sure i have attached another view, user / cpanel.php, that i have customized where in the image is not appearing. in my example i used a direct link but it is still being blocked

[Moderator :] Please, do not edit a long time after have posted it, that mess up our service ticket, thanks for your attention.

please help

thanks

Attachments:
Last edit: 4 years 4 months ago by Philip.

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 4 months ago #325311

Hi,

If the file mayari-default-profile.jpg is in the folder images/profile-photo/ of your website but when you access it, you get a joomla 404 error ( monosnap.com/file/QHI1cJkO9Wa3kVJqk5ABzr5Whp2bF4 ), this means that the problem is not in HikaShop. Joomla should not be involved when an image is accessed directly by the browser.
The web server should directly reply back with the image.
And if the image is not found, it should display the 404 error of your web server, and not a 404 error of com_content with the message "category not found".
So that indicates a problem with either the configuration of the web server, or with the htaccess you have on your website.

The following user(s) said Thank You: ronron

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

Time to create page: 0.049 seconds
Powered by Kunena Forum