Can't get images and title to display

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
10 years 5 months ago #187109

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Firefox and Chrome

I'm migrating a site over from 2.5 to 3.3. Everything was manually moved as there aren't too many products.

Using the pictureblue theme for Hika.

I'm unable to get the product listings view to display images. It will show the image when "Image" is set in the settings but not when "Image and Title" is selected.

Things tried:

  • Checked old site settings and matched everything in the content menu settings to the old site that is working (That one is using HikaShop 2.2.1)
  • Reinstalled HikaShop
  • Changed the template to the Joomla Protostar and Beez



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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
10 years 5 months ago #187142

Hi,

I've checked the HTML of the page on your link and the HTML bits for the products image are missing.
So that means that the view file listing_img_title for the view "product" has been modified since it works for listing_img on your end.
If you have the same issue with the default templates then it might be that the original file has been changed, not a template override.
First make sure that the file templates/YOUR_TEMPLATE/html/com_hikashop/product/listing_img_title.php doesn't exist. If it does, rename it.
Then, get the install package of HikaShop and extract from it the file front/views/product/tmpl/listing_img_title.php and replace the file components/com_hikashop/views/product/tmpl/listing_img_title.php by the one you extracted and that should hopefully solve the problem.

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

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
10 years 4 months ago #187253

Hi Nicolas,

No luck. Looking in the template file, the only override file in templates/gk
_storebox/html/com_hikashop is category/listing_div.php which I've renamed with no change.

I replaced the listing_img.php (and the lisitng_div.php) as you suggested but that didn't make any difference.

None of the files were changed aside form adding the picutreblue theme. All CSS overrides were done in the templates custom.css, which I've also renamed and tested but it didn't make a difference.

I took a peek in the error_log and found these:
[17-Jan-2015 07:04:45 UTC] PHP Parse error: syntax error, unexpected '}' in /home/project/public_html/cf/components/com_hikashop/views/product/tmpl/listing.php on line 259
[17-Jan-2015 07:04:48 UTC] PHP Parse error: syntax error, unexpected '}' in /home/project/public_html/cf/components/com_hikashop/views/product/tmpl/listing.php on line 259
[17-Jan-2015 07:11:43 UTC] PHP Parse error: syntax error, unexpected end of file in /home/project/public_html/cf/components/com_hikashop/views/product/tmpl/listing_div.php on line 94
[17-Jan-2015 07:22:49 UTC] PHP Parse error: syntax error, unexpected '}' in /home/project/public_html/cf/components/com_hikashop/views/product/tmpl/listing.php on line 208
[17-Jan-2015 07:22:51 UTC] PHP Parse error: syntax error, unexpected '}' in /home/project/public_html/cf/components/com_hikashop/views/product/tmpl/listing.php on line 208

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

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
10 years 4 months ago #187337

Hi,

The error messages indicates a big issue in the listing.php and listing_div.php view files. That would completely crash the listing page. So I suppose that you were editing the files for some modifications at that time and doing some tests. I don't think that these errors are related to the fact that the images are not displaying.

In your message, you said that you replaced the files listing_img and listing_div with the ones from the package, but you didn't talk about listing_img_title which is the one I was talking about in my previous message. Maybe you didn't replace that one, and in that case, that would explain why it didn't change anything with your problem since you didn't change the correct file. So please double check on that.

The pictureblue theme won't change anything in the view files or remove the image HTML. The themes are just CSS and images for the styling so they are not capable of altering the HTML.

Honestly, besides having the file listing_img_title modified or a modification in the listing_div/listing view files, which could modify the behavior of the listing_img_title view file, I don't see anything else capable of causing the image HTML to not be there. Maybe a system plugin could remove that HTML, but I don't see why a plugin would do that and I've never heard of such plugin causing such effect.

The following user(s) said Thank You: natselection

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

  • Posts: 59
  • Thank you received: 2
  • Hikashop Business
10 years 4 months ago #187405

After replacing all of the files completely. Uninstalling/reinstalling countless times, it all came down to this setting here:



I must have looked though settings 50 times and missed it every time.

Last edit: 10 years 4 months ago by natselection.

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

  • Posts: 71
  • Thank you received: 0
  • Hikashop Business Hikashop Essential
8 years 3 months ago #265228

thanks, I had the same problem and this solved it.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum