Not at all sure if I’m posting this in the correct forum, so if not please forgive as I don’t know what version I have.
I had a problem on my site about a week ago which has been straightened out. Seems as though it was hacked, but evidently no damage was incurred. However, I just noticed that I, nor anyone for that matter, can access the “Gallery” section. It simply comes up with a page saying:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'bonsaic1_bonsai'@'localhost' (using password: YES) in [path]/gallery/pp-inc.php on line 185
I cannot connect to the PhotoPost database. [$php_errormsg]
Any idea what this means, or what I can do? Obviously I can’t access the control panel as I’m not able to access the “Gallery” section where access to the control panel is. I don’t have any idea what version I have, but it was installed by PhotoPost back in November of 2007.
That error suggests to me your database connect info in your config-inc.php file is incorrect. Please edit that file and put the correct info and you would be fine then.
Thanks Chuck, but I'm afraid I'm at a total loss here.
As I mentioned, I had PhotoPost do the installation, and I also had vBulletin installed by them. Bottom line, I'm technically inept and I have no idea how to do what you instructed.
In your galleries directory you have a file called config-inc.php
This file has the database info for both our application and vbulletin. If you have changed this information recently you would need to update that file with the new information.
Thanks again Chuck, and that might very well solve the issue, but again I must point out that I did not install PhotoPost. I'm not in any way shape or form trying to be flippant, but if I were able to follow your instructions I would have been able to install PhotoPost in the first place. So, with that said I'm still dead in the water here. Would it be possible to submit a support ticket for this?
No I understand completely so no harm there. So let me try to explain as there is a limit to what support entails. I can tell you how to correct an issue with your server install or config if you should have an issue but I am prevented from personally accessing anyone's server to install software. That is why the company has an install service to install or reinstall a licensed copy of the software. The install service is a one time paid service one purchases just like you may have purchased originally from us.
In a support manner the only way I am permitted to access a person's server is to correct a bug in our released code if I need assistance in trying to recreate the bug mainly.
I can not perform install services without placing an install service with the company.
You should be able to correct your issue as only you would know your database connection routines. If you recently changed mysql passwords etc this is a common cause. You need to check in your web hosting control panel your current mysql database info to connect to your photopost database.
You then ftp to your server and go into your photopost directory. Find the file config-inc.php and in that file when you edit it you will see the mysql connection information. Make sure the proper mysql database host, username password and database name are all filled out. Save that file and reupload to your photopost directory.
That should solve your issue. Me telling you to rerun install.php is merely a web based way for you to bring up the first step of install the config and for you to make sure the correct database info is there and you hit save. You could then view your gallery and see if it views fine.
Whether you edit the file directly or choose to just run the initial first step of install the config portion and save only is up to you.