Album/Gallery Sort Order Serialization Issue
-
tl;dr I am trying to get the deserialized value of the sortorder for a single album, so: the order that the galleries in that album would be in. Used to be able to retrieve a valid serialized value from the database, but am no longer getting a valid string after upgrade to 2.0.33.
Hey, I have always used NextGEN as gallery media manager, and then manually make my own WP database calls to work with the data in a custom way. All aspects of how I retrieve albums, galleries, and photos is working fine, except for the album order.
I don’t know what version I was using before the issue, but after upgrading to 2.0.33 (also tried the latest beta 2.0.39), I am no longer receiving a valid serialized value from the sortorder field of the album. I am instead receiving a string, that when unserialized, returns false. Something like “WyI0IiwiMyIsIjEiLCI2Il0=” is being stored instead of something like “a:2:{s:3:’bar’;i:42;…”.
It is of course fine if you guys changed the way you store the sortorder, just wanted to see if I could get some help on reversing it from the database field. Looked through the source, but couldn’t find what I was looking for.
If this needs any more clarification, let me know. Thanks!
- The topic ‘Album/Gallery Sort Order Serialization Issue’ is closed to new replies.