Jump to content
thirty bees forum
  • 0

Cannot regenarate any images in TB 1.6


Question

Posted (edited)

Hello!

 

Trying to migrate to 1,.6 and I cannot regenrate a single image in the new version.  I even tried two plugins to regenerate and they all do the same thing: stop right away or mention there is an error with the images.I tried jpg and webp, no success.

The only image I was able to regenerate with one ofthe plugin was a <scene< image.  All the others say error and the other module and the native TB interface just do nothing.  I tried reinstalling my theme, thinking it was the issue, but apparently not.

Edited by movieseals
addition

8 answers to this question

Recommended Posts

  • 0
Posted

Image entity table should be initialized during update by core updater. Did you use core updater to update to version 1.6?

Anyway, here what you could do:

  1. use core updater and check for database differences
  2. in core updater settings, enable Developer mode. Then open Developer tab, and run 'Initialize codebase' process.
  3. if nothing helps, you can manually add entries to db tables. Script:
INSERT INTO `tb_image_entity` (`id_image_entity`, `name`, `classname`) VALUES
(1, 'categories', 'Category'),
(2, 'categoriesthumb', 'Category'),
(3, 'manufacturers', 'Manufacturer'),
(4, 'products', 'Product'),
(5, 'scenes', 'Scene'),
(6, 'scenesthumb', 'Scene'),
(7, 'stores', 'Store'),
(8, 'suppliers', 'Supplier');

INSERT INTO `tb_image_entity_lang` (`id_image_entity`, `id_lang`, `display_name`) VALUES
(1, 1, 'Categories'),
(2, 1, 'Categories Thumbnails'),
(3, 1, 'Manufacturers'),
(4, 1, 'Products'),
(5, 1, 'Scenes'),
(6, 1, 'Scenes Thumbnails'),
(7, 1, 'Stores'),
(8, 1, 'Suppliers');

INSERT INTO `tb_image_entity_lang`(id_image_entity, id_lang, display_name)
SELECT iel.id_image_entity, l.id_lang, iel.display_name
FROM `tb_image_entity_lang` iel
JOIN `tb_lang` l 
WHERE l.id_lang != 1;

 

 

  • Like 1
  • 0
Posted

Don't use any PS plugins related to images on TB 1.6. This section was totally rewritten and the plugins are 99.9% not compatible.

In order to debug the issue - first check if there are any overrides remaining related to images when you remove the modules. Are there any errors, do you see any popup messages when regenerating? Do you have your Image Entities column configured (this is needed so the system know where to show what).

  • Like 1
  • 0
Posted

No overrides related to images.  No errors.  No popups.  Image Entities are not configured - they ahve a value of zero.  How do I do that?  I am using my own theme, not the TB theme, so it might be related to that?

  • 0
Posted

Here is my configuration that works for Warehouse theme. Your theme should be similar (sizes are dependent on your theme so no need to change them as they should be left as the theme configured them when you updated to 1.6, only fix the entities). But I can't remember if this will fix your issue - the entities are used to show the already generated images I think in front office. Nevertheless it should be configured so go ahead and test, hopefully datakick can join with master suggestion for this issue.

image.thumb.png.3aaf24d6a9c2abdb34943a77e56ad756.png

  • Like 1
  • 0
Posted (edited)

Those exist and they match the theme, but there are entities tables in the database that are empty.  Could permissions be an issue?  Since this is a migration...  I thought I had fixed them but there are so many images.

Screenshot 2025-01-14 at 21.52.48.png

Edited by movieseals
  • 0
Posted
4 hours ago, datakick said:

Image entity table should be initialized during update by core updater. Did you use core updater to update to version 1.6?

Anyway, here what you could do:

  1. use core updater and check for database differences
  2. in core updater settings, enable Developer mode. Then open Developer tab, and run 'Initialize codebase' process.
  3. if nothing helps, you can manually add entries to db tables. Script:
INSERT INTO `tb_image_entity` (`id_image_entity`, `name`, `classname`) VALUES
(1, 'categories', 'Category'),
(2, 'categoriesthumb', 'Category'),
(3, 'manufacturers', 'Manufacturer'),
(4, 'products', 'Product'),
(5, 'scenes', 'Scene'),
(6, 'scenesthumb', 'Scene'),
(7, 'stores', 'Store'),
(8, 'suppliers', 'Supplier');

INSERT INTO `tb_image_entity_lang` (`id_image_entity`, `id_lang`, `display_name`) VALUES
(1, 1, 'Categories'),
(2, 1, 'Categories Thumbnails'),
(3, 1, 'Manufacturers'),
(4, 1, 'Products'),
(5, 1, 'Scenes'),
(6, 1, 'Scenes Thumbnails'),
(7, 1, 'Stores'),
(8, 1, 'Suppliers');

INSERT INTO `tb_image_entity_lang`(id_image_entity, id_lang, display_name)
SELECT iel.id_image_entity, l.id_lang, iel.display_name
FROM `tb_image_entity_lang` iel
JOIN `tb_lang` l 
WHERE l.id_lang != 1;

 

 

Will this solve the issue with non regeneration of thumbnails?

  • Like 1
  • 0
Posted
1 hour ago, the.rampage.rado said:

Will this solve the issue with non regeneration of thumbnails?

Well, it's definitely a blocker. When system tries to generate thumbnails for products (or other entities), it look into db for any image types assigned to image entity. If image entity is missing in DB, no image type will be returned, and no thumbnail will be generated.

So, having image entity table populated, and having image types associated with image entities, is a prerequisite. 

  • Like 1
  • Thanks 1
  • 0
Posted
7 hours ago, datakick said:

Did you use core updater to update to version 1.6?

I used the installer that I downloaded from here for PHP 7.4.  I noticed the empty tables but figured tiwas because of my theme.  I installed another version of TB on another subdomain to see if I could copy the entity tables but they were empty too, despite not installing my theme and keeping the native theme Niara...

Anyhow, managed to make it work with your help guys.  Thankyou!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...