Author Topic: HELP with: "An unexpected error occured. Please try again later."  (Read 9476 times)

0 Members and 1 Guest are viewing this topic.

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile

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:

Code: [Select]
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!

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« Reply #1 on: January 27, 2009, 07:29:23 PM »
doest show any error messages when you browse your site as admin?
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.

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: HELP with: "An unexpected error occured. Please try again later."
« 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.
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)

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« 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:

Code: [Select]
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:

Code: [Select]
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,

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
HELP with ERROR msg: An unexpected error occured. Please try again later.
« 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:

Code: [Select]
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:

Code: [Select]
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,

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
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)

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« Reply #7 on: February 16, 2009, 12:24:21 AM »
Hi V@no!!! Thanks for your help!! I did it and the result is:

Code: [Select]
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!!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: HELP with: "An unexpected error occured. Please try again later."
« 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...:(
« Last Edit: February 16, 2009, 03:00:49 AM by V@no »
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)

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« Reply #9 on: February 16, 2009, 07:30:27 AM »

Hi V@ano,

You're my Hero. Thanks a lot.   :)

Sometime ago, I did modify session timeout, setting it to 999  :oops:  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,


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: HELP with: "An unexpected error occured. Please try again later."
« 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.
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)

Offline VonHerzen

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: HELP with: "An unexpected error occured. Please try again later."
« Reply #11 on: February 16, 2009, 05:09:19 PM »

Thank you so much!!   :)