IMPORTANT MESSAGE REGARDING THE FORUM

As you may already know, the JoomlaWorks Forum is powered by Kunena (the only decent forum component for Joomla).

Unfortunately, the latest update for Kunena has seemingly broken all code snippets (old and new) in the forum.

Until this message is removed, please paste any code as regular text - in other words, don't use the [code]...[/code] tags in Kunena's post editor.

Keyword

item images disappeared after update to 2.10.1

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 year 7 months ago #173830 by Franz Heine
after the update from 2.10.0 to 2.10.1 my item images disappeared.
The category setting are the same. The images still are in the folder: media/k2/items/cache/

But ive to confess. I compressed the cached images (regarding image size) with photoshop and because i just needed one size of the pictures (L), i erased the other 5 sizes.

Could this be the issue?

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

More
1 year 7 months ago #173831 by Fotis
Yes, because unlike previous versions, we check for the existence of the "generic" size and based on that construct the URLs for the other sizes. That's 5 less disk I/O operations per image, which may be considerable on large sites.

I recommend not tampering with K2 files.

Use this to regenerate your images: github.com/getk2/rebuildK2imageCache

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 year 7 months ago #173833 by Franz Heine
Replied by Franz Heine on topic item images disappeared after update to 2.10.1
Damn Fotis. Why did you do that :-)

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

More
1 year 7 months ago #173834 by Fotis
"That's 5 less disk I/O operations per image, which may be considerable on large sites."

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 year 7 months ago #173835 by Franz Heine
Replied by Franz Heine on topic item images disappeared after update to 2.10.1
what does it mean:

Execute via Terminal?

Does he mean curl?

How can i execute the rebuild.php?

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

More
1 year 7 months ago - 1 year 7 months ago #173838 by Fotis
You need SSH (terminal) access to your server. If you have that, you simply execute the script with "php /path/to/script".

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 1 year 7 months ago by Fotis.

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 year 7 months ago #173841 by Franz Heine
Replied by Franz Heine on topic item images disappeared after update to 2.10.1
unfortunately i dont have SSH access. Is there another option to run the script?

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 year 7 months ago #173843 by Franz Heine
Replied by Franz Heine on topic item images disappeared after update to 2.10.1
Solved it!

If you dont have SSH, just copy rebuild.php to the root and call it over the browser. For ex:

yourdomain.com/rebuild.php

After success the result is displayed in the browser.

Important: Erase after the rebuild the rebuild.php from your server

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

More
1 year 7 months ago #173866 by Fotis
Sure, it works, but you need to disable any timeouts. Plus, you won't get any progress feedback...

In any case, issue resolved :)

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • mahendra
  • mahendra's Avatar
  • User
More
1 week 6 days ago #179254 by mahendra
Replied by mahendra on topic item images disappeared after update to 2.10.1
Hi Fotis,

I have updated k2 from 2.8.0 to 2.10.3 and my images are also disappeared. I have tried to run rebuild.php from browser but nothing happen also I have notice one thing that in the rebuild.php file all the image extensions are jpg but my all the item images are in the png so I have to change in rebuild file to replace jpg with png? or need to do something else? please help

thanks

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


Powered by Kunena Forum