coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: blablabla on June 13, 2006, 10:28:55 PM

Title: Problems with gallery or host
Post by: blablabla on June 13, 2006, 10:28:55 PM
It's a long story but I'll try to make it short, I keep getting MySQL connection errors and this is what my host said about it :

QuoteWe have checked your issue, the problem is that you have huge number of mysql connections to database xxxxx_gallery and your VPS machine is
unable to handle such load. We have restricted your max mysql connection to 100. This would limit the load going high.

this didn't help and their next reply was this :

QuoteThe problem is not about the number of connection, but the connections are creating large number of mysql queries and many of them do not close after executing it goes to sleep state. This queries are causing trouble. Could you please get a programmer to check this.

QuoteNormally, the Coppermine installation do not consume much resources as such. Either the installation would be an obsolete one or some of the core files are corrupt. We cannot provide support for third party scripts and programs.

Can someone please help me on this. I don't know what's the problem here, did something in Coppermine went wrong or is there a problem with my host ?

Title: Re: Problems with gallery or host
Post by: Nibbler on June 13, 2006, 10:38:36 PM
Post a link to your gallery, with debug mode enabled if possible.
Title: Re: Problems with gallery or host
Post by: blablabla on June 13, 2006, 10:42:16 PM
it's still down and i can't access gallery admin (so i can't put it in debug mode) or cpanel/phpmyadmin :( :

http://www.allaboutmadonna.com/photos/index.php

I can only give you ftp/ssh login if that could help ?
Title: Re: Problems with gallery or host
Post by: blablabla on June 14, 2006, 06:47:48 AM
Ok, it's back online now, this is debug info from main page :

USER:
------------------
Array
(
    [ID] => 13f86e7ed5917dbba91e4e3238b74245
    [am] => 1
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Pera
    [groups] => Array
        (
           
Title: Re: Problems with gallery or host
Post by: blablabla on June 14, 2006, 07:16:22 AM
notices i found so far :

/include/themes.inc.php

    * Notice line 2174: Undefined index: uid
    * Notice line 1877: Undefined index: uid

/displayimage.php

    * Notice line 319: Undefined variable: meta_keywords

- appeares when viewing image


/upload.php

    * Notice line 269: Undefined offset: 2
    * Notice line 275: Undefined offset: 3
    * Notice line 275: Undefined offset: 4

- appears on upload page
Title: Re: Problems with gallery or host
Post by: blablabla on June 14, 2006, 03:34:26 PM
Anyone ?
Title: Re: Problems with gallery or host
Post by: Nibbler on June 14, 2006, 04:57:31 PM
The reason I asked for a link is to see your gallery. If you have it set to registered users only and don't post a test account then we can't see anything.
Title: Re: Problems with gallery or host
Post by: blablabla on June 14, 2006, 05:48:17 PM
ok

login : test1
password : test1
Title: Re: Problems with gallery or host
Post by: Nibbler on June 14, 2006, 06:26:07 PM
I'd suggest removing some content from your main page and removing the gallery statistics. Search the board for details. Also use pagination for your album view. Make sure you have the mysql query cache enabled.
Title: Re: Problems with gallery or host
Post by: blablabla on June 14, 2006, 06:34:13 PM
Quote from: Nibbler on June 14, 2006, 06:26:07 PM
Make sure you have the mysql query cache enabled.

How can I check that ?
Title: Re: Problems with gallery or host
Post by: Nibbler on June 14, 2006, 06:40:06 PM
You have ssh access so you can login to that, type mysql, and at the prompt type

show status like '%qc%';

If the cache is not enabled then either read the mysql manual and set it up yourself or contact your host.