My Gallery is screwing up its URLs (and doesn't properly upload files anymore).
JB2448
Joined: 2010-10-02
Posts: 26 |
Posted: Thu, 2014-04-03 01:19 |
I upgraded to Gallery version 3.0.9 to see if it would possibly correct itself, but the problem persists. Random filepaths of my Gallery are starting to mangle themselves (http://jb2448.info/Pokemon_Special_v38_c413/Pokemon_Adventures_38/Pokemon_Special_v38_c413_004-005-neuquant should be http://jb2448.info/Pokemon_Adventures_38/Pokemon_Special_v38_c413/Pokemon_Special_v38_c413_004-005-neuquant, for example), and I don't know and can't seem to find out what exactly is causing this problem or how to fix it. Additionally, any files I attempt to upload go to strange filepaths as well (I just tried to upload a file, and instead of being properly listed at http://jb2448.info/Covers/Viz_2nd_Edition_Covers/Pokemon_Adventures_v21_cover, it's listed at http://jb2448.info/Covers/Viz_2nd_Edition_Covers/Javier/01/02/Pokemon_Adventures_v21_cover). Let me know if there's any information that I can possibly provide that's pertinent to this problem. My Gallery has operated for three years now, and I've accumulated 45256 images and 14062 albums. |
|
Posts: 27300
We have seen the multi path name before and there is a fix in the maint section that might help.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Thanks for the response, Floridave, but you overestimate my ability to find said fix. Are you referring to the maintenance section on my own Gallery instillation or on the Gallery Project website? If it's the former, I've already done every maintenance operation I can on that front, and if it's the latter, I just can't seem to find it. Sorry for the stupidity on my part.
Posts: 27300
Admin -> maintenance -> Fix your Gallery (run)
If you have 3.0.9
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
It keeps resetting to 0 operations complete after it reaches around operation 51150/192127. Is there something I can fix manually, or is it just resetting after each individual operation done at this particular count?
Posts: 27300
Does the count go down on each try?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Not always, no. It resets in the range of 51100-51250. I kept it going overnight, and the count didn't increase beyond that range at all when I woke up.
Posts: 2
Having a similar issue. Could it be because of too many photos?
Posts: 27300
I'm not sure why. It never happens to me.
https://github.com/gallery/gallery3/commit/2cf51983535ffa498c38b02328e30fe307ec6827
See if truncating the relative_path_cache and relative_url_cache tables in the DB helps.
http://sourceforge.net/apps/trac/gallery/ticket/1260 is a ticket that created the fix task and it should work unless the BD is hosed.
I guess if that does not work a recent back restore should be the next step.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
That suggestion, along with deleting a spam directory that had managed to pop up, disabling anonymous image uploading for a certain section, running the fix task, and disabling hotlink protection (which wasn't ever enabled until now, for some reason) fixed it all. Thank you very, very much for your constant replies and support.
Posts: 26
All right, so, even though it was working for two weeks, at some time last week, I tried uploading a photo, and it did not upload properly (the image, resize, and thumbnail were not made, even though the URL path and Gallery entry for the image existed). So I tried running the maintenance section fix routine, and it broke every single image on my site, though none of the URLs. I restored the SQL tables from a nightly backup, and things went back to how they were before. A few hours ago, I attempted to edit the description of my front page, and it came back with a message saying that the album (in this case, my entire site) was "not writable." I tried running the fix routine again, and it broke everything again just as before (should have kind of expected that). So now I've restored my SQL tables again, and I'm at a loss as to what I need to do.
Posts: 27300
Sounds like a file system permissions issue or resource (size?).
Ther eis only 3 places that "not witable" is used in the code and all are file system related.
I don't know what else to guess at. Perhaps some other community members do.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Here are the logs when I try to upload a file, in case this helps at all:
Posts: 26
All right, now I'm getting this error:
Posts: 26
Unless I want to delete and reupload my entire gallery, my only hope to save this installation is to know what goes in between those values according to the above post. I know this is a triple post and a bump, but I'm at my wit's end here. Whatever the response may be, and whenever someone gets the chance, I'd really appreciate at least a "go and delete your current gallery" or something.
Posts: 27300
Perhaps the hidden items module is the culprit.
I have never used it so disable it and then you might have to use a DB admin tool that your host recoments and see if any tables in the DB need repair.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
I disabled the module, and tried to add a photo again. I got a completely different error:
Posts: 27300
change photo.php in gallery3/modules/helpers
from
to
then post the error again.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
Posts: 27300
So I don't think you have an album called n-Adventures-v11---163createdASC with a sub album called Covers do you?
similar error when trying to add items to a different album?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 26
You are correct in that assumption. In a completely different album, I get the same error, even with a different image. In fact, when I look in /var/albums/, /var/resizes/, and /var/thumbs/, I can't find an album with the name "n-Adventures-v11---163createdASC," nor was it ever created by me.
Posts: 1857
Lots going on here.
Deactivate all "extras"--including all "extra" modules--and switch to the default "Wind" theme (if you're not already using it).
Try again and see what happens when (1) You try to upload a new image to the same gallery, and (2) When you try to upload a new image to a different gallery.
If you have any special characters in the name of the image and/or the gallery, remove them and see if that helps.
I'm trying to eliminate a lot of potential issues before spending tons of time on this looking in the wrong places.
I'm guessing that the name of the album is "n-Adventures-v11"; correct?
Posts: 26
There's no album with that name (the closest would be http://jb2448.info/Pokemon_Adventures_11, and really, I believe it's getting the URL from http://jb2448.info/Pokemon_Adventures_11/Pokemon-Adventures-v11---163 specifically for who knows what reason.
Changing to the default theme didn't seem to work, and I have no special characters in any of my URLs.