Development log
変更ログ

Development 1/2

  • Local server is down, so having various site-wide issues. Trying to squash as they appear.
  • Added handling for empty values/arrays in certain user profile stats.
  • Fixed gender selection on user profiles.
  • Added style for super-wide/super-tall images in release image galleries.
  • Fixed several bugs in artist/release/musician access scripts that were causing missing data around the site.
  • Optimized some code in artist access script. Need to watch for potential issues.

Worked extensively on image scripts today, due to recent and recurring errors.

  • Completely reworked core image function as class. This should increase speed a tiny bit and bring it line more with the other classes.
  • Realized that all this time, watermarked images have been re-rendered each time... oops. The class now checks if the watermarked image exists and serves that instead if possible.

(This does open up the edge case of a user changing their username and all watermarked images displaying the old username--should be able to handle that by wiping all watermarked images by that user on username change, but that might be bit intensive.)

  • Updated code in a few places to reflect the change to class instead of function. Some places call a 'not_vip' variable, but this shouldn't be necessary as those calls are anonymous anyway. Seems to be working correctly now, but will continue to monitor.
  • Fixed a long-running bug where deleting images required three clicks of the delete button instead of two.

Again, this was mainly in response to image calls occasionally filling the error log, and due to recent user complaints about image uploads hanging up/causing the site to freeze for minutes a time. The first issue should be better now that watermarked images aren't re-generated every time, but I've been unable to sniff out the root cause for image uploads failing so spectacularly.

According to users, it seems to happen randomly, but especially with small, jpg images. I was unable to reproduce with either custom small jpgs or ones saved from vkgy. I did update the script slightly anyway, upgrading the image resize library to a newer version (tho I suspect that wasn't the issue).

Error checking within the upload function seems ok. I wonder if it's hanging up on image compression service? Might try to set a time limit, but I'm at a loss otherwise. At least now the error log will hopefully be a bit cleaner so I can more easily spot upload issues. Will continue to monitor and ask users for input.

(Might be related to ongoing issues with DB disappearing, which I still haven't figured out, and I'm not sure is related to my code at all. ...It probably is.)

Want to support future updates?

vkgy runs on a custom platform developed by a very small team. If you appreciate what we do and want to help us grow, please consider becoming a VIP member!

Support vkgy
top