When I use "Manage sidebar" to drag and drop sidebar items, any changes I make don't stick. All the available blocks are always active, and I can't control their order.
Could this be a problem with file or folder permissions? Any other suggestions?
I'm using the Gallery Wind theme with a clean installation of Gallery3, and pretty much everything else seems to be working OK (though I have had some issues with both Tag Faces and Photo Annotations).
I don't have access to server logs, unfortunately.
Posts: 25968
I don't there is anything in the logs that would be of help.
Does the "Updated sidebar blocks" info box appear ofter you move some stuff about?
I don't think it would be a folder permissions thing as the DB table for sidebar order gets changed.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
Thanks Dave. No, I get no feedback after I have moved the blocks around.
As you can see in the attached screenshot, I can move unwanted blocks to the left-hand column, but there's no "Update" button as in the other admin screens where changes need to be committed -- should there be? When I move away from that page and return, all the blocks are back in the right-hand column.
I looked into the database with phpMyAdmin but couldn't immediately identify a table where the sidebar info might be stored (
see list). Maybe it's not created until the order is changed from the default?I am a newcomer to Gallery but everything else seems to be working fine.
Chas
Posts: 15
Just tried altering the contents of 'blocks_site_sidebar' in the Advanced settings. Didn't understand the syntax, so not surprisingly it broke and the sidebar complained that it had nothing to display. Rearranging the blocks had no effect, as before, but replacing the original contents of 'blocks_site_sidebar' restored everything. I suppose this is progress of a sort ;-)
Posts: 25968
No it gets saved automatically on each change/move.
PM me login info so I can see the behavior.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 643
I moved my site to a new host some months ago, and I initially had some problems caused by incorrect permissions and ownership. I've got a vague recollection that this was one symptom of them, but I can't be sure this far after the fact.
Posts: 15
I tried moving all the blocks to the left-hand column. This triggered the "Updated" message, and indeed everything disappeared from the sidebar. So far so good.
But now I can't move anything back -- neither individual blocks nor all the blocks together. And unlike before, pasting the original code back into 'blocks_dashboard_center' didn't work either.
Thanks. I have recursively 777'd the whole Gallery directory, but am not convinced anything has changed. Since I have only FTP access, I don't have any control over ownership.
Posts: 25968
Got you PM with login info, thanks.
It seems to be a JSON permissions issue. Using firebug and the web console I was able to see the requests go out when moving the sidebar items but the response is a permissions issue.
Notice the '403 Forbidden' response. I am no JSON/AJAX expert so I will see if one of the team members can have a look. unless somebody else has a suggestion.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8194
floridave and I have poked around, but haven't found anything promising yet.
I ruled out that Gallery is not accepting the CSRF token, because 1) other similar actions that use the CSRF work OK, and 2) because we're logged in as an administrator, we'd get a "
Something went wrong" message, not a generic 403 page.
Some web servers are known to throw 403 Forbidden errors when really something internally went wrong (500 Internal Server Error would be more appropriate). I think that's what going on here.
To debug further, we need to take a look at the server's error logs. I'd be happy to poke around if you PM me your host's control page URL, username, and password.
--Andy Lindeman
Consider giving back to Gallery
http://www.andylindeman.com
Posts: 15
Thank you both. I've sent Andy my login details.
Charles
Posts: 8194
chazzo--
I logged in and uncommented the mod_rewrite portion of .htaccess, which allows URL to route without index.php.
This, somewhat surprisingly, is making the requests return successfully for me. Can you try it out as well?
I'm unfortunately a bit stumped as to why this worked
--Andy Lindeman
Consider giving back to Gallery
http://www.andylindeman.com
Posts: 25968
Perhaps a Apache1 thing?
Interesting that it works in one section but not others.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 15
That certainly works for me -- and neater URLs too. Thank you very much.
Charles
Posts: 8194
floridave-- Agree that it's bizarre that it's only this one action. I bet you're right about an older version of Apache or a server {weird,mis}configuration.
Glad it's sorted out anyway!
--Andy Lindeman
Consider giving back to Gallery
http://www.andylindeman.com
Posts: 15
Well many thanks again to both of you.
My (UK) hosting company is Freezone Internet, in case anyone should be searching here for information about the way they set up their servers.