Keyword

k2 rebuild image cache

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
1 month 8 hours ago #176801 by Leandro Nischida
k2 rebuild image cache was created by Leandro Nischida
I'm using the script to reconstruct the K2 images that were deleted, but when executing the script it reconstructs only 110 images, even using SSH.
I saw in the comments of the script that can be run in batch:
* - Add range option so you can work in batches. Set the $ from & $ to variables to the range you want converted.

// Set conversion range (set to 0 to disable - default action)
$ from = 0;
$ to = 0;

but I didn't understand how, what values I put in place of 0. Can you help me?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #176807 by Fotis
Replied by Fotis on topic k2 rebuild image cache
This range allows you to define e.g. the last 100 newest images to be re-created. So if you want all images re-created, you need to keep the default values of 0 and 0.

If after that you only see 110 images as you say, then your images may have been deleted along with items as well. In that case, you can't recover them if you don't have a backup...

The script works by checking if a "src" image exists already.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #176814 by Leandro Nischida
Replied by Leandro Nischida on topic k2 rebuild image cache
I have 5741 images in the src folder. Even changing the values 0, example 1 to 200, it stops at 110.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #176816 by Fotis
Replied by Fotis on topic k2 rebuild image cache
Perhaps the script is cut-off by some server limit. Can you double-check with your hosting company?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #176818 by Leandro Nischida
Replied by Leandro Nischida on topic k2 rebuild image cache
634/5000
I'm talking to the person in charge of the server and he said he has no restrictions. I just tried to do it again, see what appears.
...
Source file 103/5741: b438a68b469c31d6e2a1609d1c36634c.jpg [OK]
Source file 104/5741: 87c8808590e99744b8435e71fad8e5f0.jpg [OK]
Source file 105/5741: 0970212f290bcb02ee7e6907701224be.jpg [OK]
Source file 106/5741: ac4dbc5bf3793d268025746e30ceec34.jpg [OK]
Source file 107/5741: 9ab8fa7a6c7a3e1b502ee5721926ea31.jpg [OK]
Source file 108/5741: 814c5fa8cc246f42c53a91bddf076dee.jpg [OK]
Source file 109/5741: 1825f9332bc782d93c6d201cd1a002d9.jpg [OK]
[p2solucion @ lnxcpanel asbra] $

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #176820 by Fotis
Replied by Fotis on topic k2 rebuild image cache
The script may fail if the memory_limit is low. What's your current value for PHP CLI scripts?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #176822 by Leandro Nischida
Replied by Leandro Nischida on topic k2 rebuild image cache
Second hosting is 1GB

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

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #176823 by Leandro Nischida
Replied by Leandro Nischida on topic k2 rebuild image cache
PHPINFO
max_execution_time 3600 3600
max_file_uploads 100 100
max_input_nesting_level 64 64
max_input_time 3600 3600
max_input_vars 10000 10000
memory_limit 1024M 1024M

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #176824 by Fotis
Replied by Fotis on topic k2 rebuild image cache
Have a look at your error logs then.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Leandro Nischida
  • Leandro Nischida's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #176826 by Leandro Nischida
Replied by Leandro Nischida on topic k2 rebuild image cache
There's nothing in the logs, I'm on version 10 of K2, can that be?

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


Powered by Kunena Forum