Keyword

can't display image in front end

More
10 years 8 months ago #124033 by T L
In joomla back end, I added a image from my joomla image folder to K2 article. the path of the image is in images/BaiYun/. I can see the image in the k2 item editor, but when I browsed the article in front end, the image was not able to be displayed. it looked like the joomla was not able to find the image file. can you help?

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 8 months ago #124034 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: can't display image in front end
Can you share the link to your site?

K2 Rocks \m/

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

More
10 years 8 months ago #124035 by T L
Replied by T L on topic Re: can't display image in front end
www.wow-life.net/index.php/news/china-news/item/13442-2014-01-29-09-05-56

the second picture 14012408.jpg can't be displayed. I check the source code, it is in:

www.wow-life.net/index.php/news/china-news/item/images/BaiYun/14012408.jpg

but I think it should be in www.wow-life.net/images/BaiYun/14012408.jpg

thanks a lot Kannan!

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

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
10 years 8 months ago #124036 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: can't display image in front end
It's somehow missing a forward slash in the src url. It should be src="/images and not src="images



K2 Rocks \m/

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124037 by Yiota
Replied by Yiota on topic Re: can't display image in front end
It seems that the path to the image is incorrect.

Try to put an absolute path for the image instead of a relative one or correct the relative path by adding ../../../../images/....

You can also check your media manager's settings for the image paths.

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

More
10 years 8 months ago #124038 by T L
Replied by T L on topic Re: can't display image in front end
Thanks for all your guys reply!

The source code is dynamically created. I don't know why the "/" omitted. I have checked the image path settings, it is always the default: images. The thing is: before, images were able to display.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124039 by Yiota
Replied by Yiota on topic Re: can't display image in front end
Do you remember if you have added another extension or editor or even made a change to either your site's configuration or server that could case this issue?

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

More
10 years 8 months ago #124040 by T L
Replied by T L on topic Re: can't display image in front end
I can't remember the changes. Maybe this one is related:

getk2.org/community/New-to-K2-Ask-here-first/185311-After-update-k2-in-joomla-25-user-cant-register

"Since you have upgraded from version 2.5.4 your overrides might be old.
You need to compare the file register.php between the component (components/com_k2/templates/) and your overrides (templates/your_template/html/com_k2/) and update with the latest one's changes. "

I did above.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 8 months ago #124041 by Yiota
Replied by Yiota on topic Re: can't display image in front end
This has only to do with the register.php file, so I don't think is related with the wrong path your images have.

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

More
10 years 8 months ago #124042 by T L
Replied by T L on topic Re: can't display image in front end
After installing k2, I installed a lot plugins, modules, really don't know which one is the culprit. Can you tell me which php program is responsible for creating the dynamic webpage, so that I can compare with the right one to find the problem. thanks.

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


Powered by Kunena Forum