How do I set a highlight image through phpMyAdmin?

WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Thu, 2012-03-29 06:11


Gallery version (not just "2"): 2.3.1 core 1.3.0.1
PHP version (e.g. 5.1.6):5.2.17 cgi-fcgi
PHPInfo Link (see FAQ): http://gallery2.opalcat.com/gallery2/phpinfo.php
Webserver (e.g. Apache 1.3.33): Apache
Database (e.g. MySql 5.0.32):mysqli 5.1.62-community-log, lock.system=flock
Activated toolkits (e.g. NetPbm, GD): ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, NetPBM, Thumbnail, Gd
Operating system (e.g. Linux):Linux host180.hostmonster.com 2.6.32-46.1.BHsmp #1 SMP Tue Sep 6 12:18:02 MDT 2011 x86_64
Browser (e.g. Firefox 2.0): Google Chrome 17.0.963.79 m

As I've been lamenting in this thread over here: http://gallery.menalto.com/node/105831, I can't login except through the manual way (with all the login stuff in the url) and nothing I do while logged in (even though I can get into all the admin functions just fine) ever "sticks"... like changing the description on a photo, or changing a setting, or making a different image the album highlight. This last one is the one that's really bothering me right now. Where are highlights "stored" in the database? I'm sure if I could get to the right table via phpMyAdmin I could manually change the image that is the highlight, right? Anyone care to point me in the right direction?

--
WebKat, Gallery2 holdover extraordinaire.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-03-29 12:13

Check the last line of gallery2/config.php has either the correct value, or a blank value.
$gallery->setConfig('baseUri', 'http://gallery2.opalcat.com/gallery2/main.php');
or
$gallery->setConfig('baseUri', '');

did you move it to a sub-domain when you switched servers?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-03-29 14:26

Webkat,

You have been reporting a lot of issues since your server move. I belive the error msg about the user not having permission to access the database on the feed issue you had earlier points to a possible root cause. You therefore need to verify the permissions your main database user has on your new server.

Basically, when you say changes you make do not "take" it suggests the database user does not have some permissions needed to edit the database as changes to G2 simply mean changes to database entries.

This needs to be solved instead of hacking around symptoms if you get what I mean.

I'll suggest opening a support ticket with your host or creating a new db user on the new server and changing your config.php accordingly.

--
dakanji.com

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Thu, 2012-03-29 21:58

Yeah I have talked to tech support a number of times, and today I opened an extensively descriptive support ticket about these problems. I worry that they are going to turn around and say "we don't support this software, go to the software developers for support." We shall see, though.

By the way, every time I try to type a capital I into the Comment box here, it enters it as a closing italics bbcode followed by an I. Weird. I have to copy/paste a capital I from elsewhere every time I use one.

--
WebKat, Gallery2 holdover extraordinaire.

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Fri, 2012-03-30 02:22

As I suspected... their response was:

Quote:
The type of support which you are requesting is more in depth with designing and developing your site than we are able to provide. Hostmonster provides support for server related issues and basic installation and uninstallation of scripts. We do not support scripting, tutorials on third party installations, or designing of websites.

Our recommendation is to first see if there are any tutorials that can help on http://tutorials.hostmonster.com, in http://helpdesk.hostmonster.com, or at http://hostmonsterforum.com. If you cannot find any information there, we suggest contacting a web developer or web designer who can give you personalized support, as this will be the most effective way to accomplish what you are asking.

--
WebKat, Gallery2 holdover extraordinaire.

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Fri, 2012-03-30 03:35

Consolidating all of my problems into one thread (since I'm SURE they're all tied together) here: http://gallery.menalto.com/node/105890
Please respond there, and let this thread die.

--
WebKat, Gallery2 holdover extraordinaire.

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Fri, 2012-03-30 03:42

I wish I had seen this little post tucked away in between the others earlier!

My last line was

Quote:
$gallery->setConfig('baseUri', 'http://gallery2.opalcat.com/gallery2/');

So I changed it to add main.php to the end and you know what? IT WORKS NOW! That was the problem! The weird thing is, I didn't change that part of the config file when I moved the site... the old setting is what it was before, and it worked before. I wonder what made the difference?

Well anyway, THANK YOU so much. I hope that clears up everything, but it at least cleared up the login issue and the highlights issues!

--
WebKat, Gallery2 holdover extraordinaire.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-03-30 06:49

Actually, with a standard G2 installation on a standard server setup, skipping the "main.php" part should not make a difference. Such URLs will normally default to index.php which, in G2, will load main.php.

Anyway, glad it is sorted.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-03-30 12:10