4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 24, 2018, 08:24:03 PM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  HELP with: "An unexpected error occured. Please try again later."
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: HELP with: "An unexpected error occured. Please try again later."  (Read 6572 times)
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« on: January 27, 2009, 04:00:34 PM »


Hi there!

My gallery has been working correctly till today. I haven't made any change neither my hosting provider. When somebody get into the website, an error message says: "An unexpected error occured. Please try again later.", but everything seems to be working ok.

When I try to log in to the ACP, an error message says:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
An unexpected error occured. Please try again later.

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 149

Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 150

After login to the ACP, once again everything seems to be working ok, EXCEPT the "who's online" list. It says nobody is visiting the website, but it is not true.

Somebody could help me?

Thanks in advance. Best regards from Spain!
Logged
V@nо
Addicted member
******
Offline Offline

Posts: 1223

Thank You
-Given: 11
-Receive: 17


View Profile
« Reply #1 on: January 27, 2009, 07:29:23 PM »

doest show any error messages when you browse your site as admin?
Logged

Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: January 27, 2009, 08:09:10 PM »


Hi V@no!
Oddly, my website is working fine again and I haven't done anything to solve it.
Thanks anyway!
Best regards
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 576

mmm PHP...


View Profile WWW
« Reply #3 on: January 28, 2009, 01:19:10 AM »

Good to hear that, though when something breaks and fixes itself it's not a good sign, especially when cause wasn't revealed...
Any way, if it happens again, make sure you check if more details about the error shows when you browse as admin.
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #4 on: February 14, 2009, 08:06:42 PM »


Hi all,

It's happening again. But on a different way:

When I visit my gallery, it says: An unexpected error occured. Please try again later.

If I try to log in, it says:

1
2
3
4
An unexpected error occured. Please try again later.
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/functions.php on line 92

Then, I refresh my browser (F5) I get into my gallery website logged in without any error message and everything seems to be working ok.

Trying to get into the ACP, it says:

1
2
3
4
5
6
An unexpected error occured. Please try again later.
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 146
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 147
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 148
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 149
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 150

Then I try lo log in, and the ACP works properly also (but the error message sometimes appears), with the exception of the "who's online" list. It says that I am only visitting the website, but it is not true.

What I can do?

Thanks in advance.
Best regards,
Logged
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #5 on: February 15, 2009, 03:32:22 PM »


Hi everybody!

My gallery has been working correctly till today. I haven't made any change neither my hosting provider.

When somebody visits my gallery, it says: An unexpected error occured. Please try again later.

If I try to log in, it says:

1
2
3
4
An unexpected error occured. Please try again later.
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/sessions.php on line 81
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/includes/functions.php on line 92

Then, I refresh my browser (F5) I get into my gallery website logged in without any error message and everything seems to be working ok.

Trying to get into the ACP, it says:

1
2
3
4
5
6
An unexpected error occured. Please try again later.
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 146
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 147
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 148
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 149
Warning: Cannot modify header information - headers already sent by (output started at /home/galeria/includes/db_mysql.php:171) in /home/galeria/admin/admin_functions.php on line 150

Then I try lo log in, and the ACP works properly also (but the error message sometimes appears), with the exception of the "who's online" list. It says that I am only visitting the website, but it is not true.

What I can do?

Thanks in advance.
Best regards,
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 576

mmm PHP...


View Profile WWW
« Reply #6 on: February 15, 2009, 08:14:46 PM »

An unexpected error occured. Please try again later
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #7 on: February 16, 2009, 12:24:21 AM »

Hi V@no!!! Thanks for your help!! I did it and the result is:

1
2
3
4
5
Bad SQL Query: REPLACE INTO 4images_sessions
           (session_id, session_user_id, session_lastaction, session_location, session_ip)
           VALUES
           ('14fea311f86048cdc7525eeceac496ac', -1, 1234732503, 'index.php', '87.217.145.158')
The table '4images_sessions' is full

Please, could you explain me what is happening? Ok, I understand that the table 4images_sessions is full, but how is it possible? Should I erase it? Should I talk to my hsoting provider?

Thanks once again!!!
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 576

mmm PHP...


View Profile WWW
« Reply #8 on: February 16, 2009, 01:54:47 AM »

1) try lower session timeout in 4images settings
2) Did you modify includes/sessions.php ? if you did, try use unmodified version
3) if that didn't help, you can temporary fix the problem by emptying that table, doing that will logout everyone on your gallery.
4) in phpmyadmin look in "Show MySQL system variables" for "max heap table size". By default it should be 16,xxx,xxx (16mb)
5) try ask your provider increase that setting.

P.S.  I just checked, 3000 entries takes only about 1mb of memory, so theoretically with default settings it would need almost 1/2 million visitors in 15 minutes to fill up that table....
However when entries deleted the freed memory will not be showed as "available", on MyISAM table types you could run "optimize table" but HEAP type doesn't support optimization, so emptying the table is the only solution I know about...Sad
« Last Edit: February 16, 2009, 03:00:49 AM by V@no » Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #9 on: February 16, 2009, 07:30:27 AM »


Hi V@ano,

You're my Hero. Thanks a lot.   Smile

Sometime ago, I did modify session timeout, setting it to 999  Embarassed  I cannot remember why I did it, but I did it.

Anyway, my "max heap table size" variable is 16,777,216 and now, I am afraid that one day I will not able to insert more images because the corresponding table becomes full, is that correct? How much images do you think is the max allowed by this size?

How could I reward you?

Best regards,

Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 576

mmm PHP...


View Profile WWW
« Reply #10 on: February 16, 2009, 07:45:57 AM »

Don't worry, session table is "unique", it uses server's memory, that's why it's so limited in size. the rest of the tables are only affected by the total database size limit set for your account by your host administrator.
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
VonHerzen
Newbie
*
Offline Offline

Posts: 42

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #11 on: February 16, 2009, 05:09:19 PM »


Thank you so much!!   Smile
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.074 seconds with 19 queries.