Catatoger images are shown randomly in the frontend.

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Catatoger images are shown randomly in the frontend.

Post by amarant »

CMSMS 2.1.5
Cataloger 1.0.1
ContentAliases 2.0
GD version 2

Images are assigned to every category and every item in the tree structure of the catalog.
In the frontend all the links for the categories and items come up, but the images with it almost every time randomly at every level.
Sometimes some images are shown and some are not and sometimes all are shown.
When all the images show up the catalog looks realy nice, but the way it works now I can't publish it.
Does anyone know what causes this and how it can be resolved.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Catatoger images are shown randomly in the frontend.

Post by Jo Morg »

I need much more info than that to be able to reproduce and troubleshoot. As far as I have tested it works for me.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Re: Catatoger images are shown randomly in the frontend.

Post by amarant »

I tested, tested and tested more and sometimes when i go through the levels of the catalog all the images come up, but most times some images do not load.
This loading and not loading of images appears to be at random.
Clearing the cache makes no difference.

I have the following setup:
8 Item attributes and 1 category attribute.
Item Image Settings:
Maximum number of views for each Item: 1
Category Page Settings:
Maximum number of Banner images for each Category Page: 1
Default number of items per page: 12

Page setup:
A top category page with:
Display Behavior: Include all Categories immediately within this category, but not categories in sub-categories
Items Per Page: 12
3 child category pages with:
Display Behavior: Include all Items immediately within this category, but not items in sub-categories
Items Per Page: 12
2 item pages under the first category page
2 item pages under the second category page
no item pages under the third category page

I tested with both the templates that come with the module as wel as with my own templates; all gave with the same results.

The DOM Inspector of Firefox gives the following results:

For the top category when the image is not loaded:
<img src="http://localhost/cmsmadesimple/index.ph ... g&ac=11121" title="Groenten uit eigen tuin" alt="Groenten uit eigen tuin">
::before
</img>

For the category under the top category when the image is not loaded:
<a href="http://localhost/cmsmadesimple/index.ph ... _1_2"><img src="http://localhost/cmsmadesimple/index.ph ... g&ac=68160" title="Fruit uit eigen tuin" alt="Fruit uit eigen tuin">
::before
</img>
</a>

For the item under a category when the image is not loaded:
<a href="http://localhost/cmsmadesimple/index.ph ... _1_2"><img src="http://localhost/cmsmadesimple/index.ph ... g&ac=68812" title="Recept voor courgettesoep" alt="Recept voor courgettesoep">
::before
</img>
</a>

For the Item page when the image is not loaded:
<img id="item_image" name="item_image" src="http://localhost/cmsmadesimple/index.ph ... g&ac=62840" title="Recept voor courgettesoep" alt="Recept voor courgettesoep">
::before
</img>

::before and </img> are not there when the image is loaded
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Catatoger images are shown randomly in the frontend.

Post by Jo Morg »

Ok and I have also been able to replicate it... I've been playing with this and don't know yet where the problem lies, although I've been able to exclude some of the possible sources of the problem. I'm trying to find a solution but may have to roll back to the previous method.
Trying to release a fix next weekend...
Thanks for your efforts, appreciated.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Re: Catatoger images are shown randomly in the frontend.

Post by amarant »

Hi Jo,

I would like to relaese the septup I made with the Cataloger module for food recipes.
Can you tell me when you expect to release the fix you mentioned in your last post.

Thank you
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Catatoger images are shown randomly in the frontend.

Post by Jo Morg »

A few other things came up that I had to handle first. Will try to release a fix during this week. Most likely in the next couple if days.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Catatoger images are shown randomly in the frontend.

Post by Jo Morg »

Fixed in SVN already, a new version should be out tomorrow, thanks.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “The Lounge”