forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: Josan on March 16, 2011, 03:21:15 pm

Title: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 03:21:15 pm
Hello. I am receiving emails from my visitors that they cannot access my media coppermine. Some can still browse and only get the 'Critical Error' once they click on the file they want to open. Others get it immediately after they login and try to browse. I myself and many others aren't getting errors, so I cannot reproduce it but I noticed that it is increasing by the emails I am receiving this week. I have updated the coppermine version succesfully. I've put the gallery on debug mode so hopefully one of you pro's would have a look if you can please? Http://www.simplybrad.com/bpmedia is the url. It only contains zips. I also noticed that even tho I enabled all the options available, still a lot of bots are registrating. Perhaps that is also part of the error? Just fyi.

Also, I already asked the visitors to try accessing without firewall/virusprogram or from a different browser or pc, it all didn't fix it for them. I have another coppermine with just images and that one isn't giving problems.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 03:22:38 pm
www.simplybrad.com/bpmedia would be the url.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Nibbler on March 16, 2011, 03:27:50 pm
Enable logs in config - that will record the errors as they happen.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 03:37:57 pm
Ok, done.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 03:43:42 pm
One of my visitors just emailed me the error, a database query I do not know if that is safe to post here. Let me know :)
Title: Re: Critical errors for some visitors, unknown cause
Post by: Αndré on March 16, 2011, 04:55:42 pm
Please post that error here. Have upgraded your gallery from cpg1.4.x (or earlier)?
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 04:58:09 pm
No I upgraded it from your last patch, I'm quite secure about that :) so that was 1.5.8 i think.

Code: [Select]
<span>While
 executing query 'INSERT INTO cpg_hit_stats SET pid = 938, search_phrase
 = '', Ip   = '117.199.59.138', sdate = '1300285780',
referer='<a target="_blank" href="http://www.bradpittmedia.com/">http://www.bradpittmedia.com/</a>', browser = 'Firefox', os =
'Windows Vista', uid ='8605'' in include/functions.inc.php on line 2765

mySQL error: Table './josan_copp1/cpg_hit_stats' is marked as crashed
and should be repaired
</span>
Title: Re: Critical errors for some visitors, unknown cause
Post by: Αndré on March 16, 2011, 05:06:06 pm
Quote
mySQL error: Table './josan_copp1/cpg_hit_stats' is marked as crashed and should be repaired
Please repair that table.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 05:07:41 pm
No idea how to do that  ???
Title: Re: Critical errors for some visitors, unknown cause
Post by: Αndré on March 16, 2011, 05:09:13 pm
http://lmgtfy.com/?q=repair+mysql+table
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 05:56:54 pm
Looks risky, I'll ask my host for support in this.

But, is this what is causing my before mentioned problems?
Title: Re: Critical errors for some visitors, unknown cause
Post by: Αndré on March 16, 2011, 06:14:15 pm
Looks risky, I'll ask my host for support in this.
Quote
REPAIR TABLE cpg_hit_stats;
doesn't look risky imo, but okay :)


But, is this what is causing my before mentioned problems?
Probably. Maybe other tables also crashed and need to be repaired.
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 06:20:33 pm
Cause you're a pro. Once googled it says I could lose stuff and all. But have asked my host and they fixed it they said. Thanks for the support :)
Title: Re: Critical errors for some visitors, unknown cause
Post by: Josan on March 16, 2011, 10:22:54 pm
Now I get these errors:

# Notice line 4310: Undefined variable: result
# Warning line 6348: mb_strlen() [function.mb-strlen]: Unknown encoding "language file"
# Warning line 6297: mb_strlen() [function.mb-strlen]: Unknown encoding "language file"

Title: Re: Critical errors for some visitors, unknown cause
Post by: Αndré on March 17, 2011, 08:48:13 am
http://documentation.coppermine-gallery.net/en/configuration.htm#admin_misc_debug_notices