• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Awaiting feedback Manage images

Status
Not open for further replies.

Gunz

Chevereto Member
Hello guys,

I have a problem with the admin panel. This is what happened, i hope you understand.

1 - I test the new update 2.1.1 on my subdomain (same machine where i have my main website)
2 - all worked fine so i decides to update the main website.
3 - Main website all ok.
4 - i load the sub domain where i was testing the website www.s4.exemple.com/admin and i saw that on top of the panel i see the number of ALL images (i think because it uses the same DB).
5 - Every time i load the website s4, i saw that the number decrased. So i closed all.

So now i noticed that on DB the first 160 images are deleted, the the IMGID start from 160. On the directory old/ the images are OK.

So now the Manage script don't work well, 90% of the time the images are not loaded. For example if a click sort by "dimention", nothing appear. While if i use for example the search function with "a" the images are loaded.

I wrote it very fast because i must go afk, in case i will correct when i come back.

Cheers
 
Every time Chevereto list images it tries to detect errors like missing thumbs and things like that. But also, if it doesn't find the image on the disk it syncs the database and delete the database record.

You should try to ask me before doing this kind of.. em... weird stuff. Is totally safe to update from 2.1 to 2.1.1 because there is no dB changes at all, just small fixes on the files.

Btw, this is not a tech support issue, moving to other place.
 
Rodolfo said:
Every time Chevereto list images it tries to detect errors like missing thumbs and things like that. But also, if it doesn't find the image on the disk it syncs the database and delete the database record.

No, is the opposite. The images are on disk but not on Data base.

I updated from 2.0 to 2.1.1. Sorry but... where are this "kind of weired stuff"?

I didn't do nothing strange, only updated normally. There was a problem only because i loaded the site from s4 and maybe there was a conflict with DB images cause of definition, i don't know.
 
For the script the images doesn't exits because you are testing on another site. It tries to fetch the image but doesn't find it and then DELETE it. The script doesn't have the instruction to tell that he need to seek on a different folder insdie your home dir whatsoever.

Conclusion, when you do the s4 thing the script got the dB records, doesn't find the images, then delete the record.

And the weird stuff is that you do a s4 subdomain and run the thing from there. The PHP systems are pretty sensitive and you should only try this things only if you know the scripts backwards. Since I do know the script backwards I can tell what happened here.
 
Rodolfo said:
For the script the images doesn't exits because you are testing on another site. It tries to fetch the image but doesn't find it and then DELETE it. The script doesn't have the instruction to tell that he need to seek on a different folder insdie your home dir whatsoever.

Conclusion, when you do the s4 thing the script got the dB records, doesn't find the images, then delete the record.

And the weird stuff is that you do a s4 subdomain and run the thing from there. The PHP systems are pretty sensitive and you should only try this things only if you know the scripts backwards. Since I do know the script backwards I can tell what happened here.

Understood. So that's a big problem :/
 
Yep, the db records are being deleted.. But the images still exists on the other dir (because the script in s4 is touching just s4 not the other path).

Hope you got a db backup.
 
Rodolfo said:
Yep, the db records are being deleted.. But the images still exists on the other dir (because the script in s4 is touching just s4 not the other path).

Hope you got a db backup.

I haven't the backup because after i updated from 2.0 to 2.1.1 i opened the page s4, i don't know why, and i realoded the page losing some field on DB.

But i haven't problem with the script, all the system work fine. But i don't udnerstand why the script (Manage file) don't show nothing the 90% of the time. Maybe because he tries to access to image that miss on DB and don't show nothing.

My wrong it was using the same DB for test and main site. I didn't think about this delete function.

Thank you for your time...
 
So my questions now are two.

1 - Is it possible re-add the images on DB?

2 - Is it possible ignore the miss images and don't block the show of all images on Admin panel? I mean now if the search there are images that miss on DB, then the pannel don't show nothing, also the correct images are not showed.
 
1. Not automatic
2. No, the script need to update the records whe something happens.

You should make a entire copy of your site and then try and test things, always, in any script.
 
Rodolfo said:
1. Not automatic
2. No, the script need to update the records whe something happens.

You should make a entire copy of your site and then try and test things, always, in any script.

And if i try to "bypass" the script? I saw that i miss first 161 IDs, my images start from 162. So i can try to add:

INSERT INTO `chv_images` VALUES ('1', 'a0Z2', 'png', '847', '1', '1', '2012-05-23 19:59:52', '173.245.53.169', null);

Chanhing the id from 1 to 161. So in case on Admin panel the images from 1 to 161 will show the same image "a0Z2".

What do you think?
 
Gunz said:
Rodolfo said:
1. Not automatic
2. No, the script need to update the records whe something happens.

You should make a entire copy of your site and then try and test things, always, in any script.

And if i try to "bypass" the script? I saw that i miss first 161 IDs, my images start from 162. So i can try to add:

INSERT INTO `chv_images` VALUES ('1', 'a0Z2', 'png', '847', '1', '1', '2012-05-23 19:59:52', '173.245.53.169', null);

Chanhing the id from 1 to 161. So in case on Admin panel the images from 1 to 161 will show the same image "a0Z2".

What do you think?

Okay... now Admin panel seems to work fine. Only function that not show noting (i see the loading image but nothing appear) is the sort by "dimention (BIGEST)".

Is there a debug about admin panel?

Cheers
 
Another news, enabling only JPG and GIF (and not the PNG) the Admin panel works perfect! Now i'm checking why the PNG files are giving problem.

:)
 
Problem solved!

I found that on DB i had two files called (i checked and the images are real)
temp_rbnyGdf910B7QSglmFvZkWwIY6x4jMNUX8iqaoDuCOPLKEzpeJtTH5Vc3h2sA

I changed their name with another real image and now the Admin panel works fine.

However thank you for help :)
 
Status
Not open for further replies.
Back
Top