Free Web Hosting Forum
(#11 (permalink))
Old
Ikuto's Avatar
Member
Ikuto is on a distinguished road
 
Posts: 50
Join Date: Oct 2008
Location: 127.0.0.1 tbh
Send a message via ICQ to Ikuto Send a message via MSN to Ikuto Send a message via Yahoo to Ikuto
Default 10-26-2008, 04:13 PM

Whatever, you saw it's not die but print, so i didnt saw the 500 header in ethereal.
You (2 auth) should check sequences and everything that could cause error in main.php and related scripts.
Reply With Quote
(#12 (permalink))
Old
Junior Member
sook is on a distinguished road
 
Posts: 7
Join Date: Oct 2008
Default 10-26-2008, 11:52 PM

Thanks

How can i see what the problem is ? :P
Reply With Quote
(#13 (permalink))
Old
Ikuto's Avatar
Member
Ikuto is on a distinguished road
 
Posts: 50
Join Date: Oct 2008
Location: 127.0.0.1 tbh
Send a message via ICQ to Ikuto Send a message via MSN to Ikuto Send a message via Yahoo to Ikuto
Default 10-27-2008, 12:38 AM

That would require additional data. Try modifying error's script so it gives the data then i'll dig into problem.

In file \gallery2\modules\core\ErrorPage.inc

if ($failsafe) {
/* A catastrophic failure has occurred so just dump the error out to the browser */
print '<h2>Error</h2>';
list ($ret, $isAdmin) = GalleryCoreApi::isUserInSiteAdminGroup();
if ($gallery->getDebug() || (!$ret && $isAdmin)) {
print $error->getAsHtml();
}
if ($gallery->getDebug() == 'buffered') {
print '<h3>Debug Output</h3><pre>' . $gallery->getDebugBuffer() . '</pre>';
}
}

replace it with:

if ($failsafe) {
/* A catastrophic failure has occurred so just dump the error out to the browser */
print '<h2>Error</h2>';
list ($ret, $isAdmin) = GalleryCoreApi::isUserInSiteAdminGroup();
print $error->getAsHtml();
print '<h3>Debug Output</h3><pre>' . $gallery->getDebugBuffer() . '</pre>';
}

Dont forget to backup files first, as this is just for research purposes.
Reply With Quote
(#14 (permalink))
Old
Junior Member
sook is on a distinguished road
 
Posts: 7
Join Date: Oct 2008
Default 10-27-2008, 01:26 AM

Like that ?
http://silvergallery.net76.net/main.php
Reply With Quote
(#15 (permalink))
Old
Junior Member
sook is on a distinguished road
 
Posts: 7
Join Date: Oct 2008
Default 10-27-2008, 01:58 AM

I try what the FAQ says about ERROR_PLATFORM_FAILURE:
http://codex.gallery2.org/Gallery2:F...should_I_do.3F


The G2data directory is the right place, and it have 777 permissions. So thats not the problem.
Reply With Quote
(#16 (permalink))
Old
Ikuto's Avatar
Member
Ikuto is on a distinguished road
 
Posts: 50
Join Date: Oct 2008
Location: 127.0.0.1 tbh
Send a message via ICQ to Ikuto Send a message via MSN to Ikuto Send a message via Yahoo to Ikuto
Default 10-27-2008, 08:55 AM

No debug output... very wierd..
and its not
ERROR_PLATFORM_FAILURE
its
ERROR_STORAGE_FAILURE.
Should look into traceback.

Last edited by Ikuto : 10-27-2008 at 09:08 AM.
Reply With Quote
(#17 (permalink))
Old
Ikuto's Avatar
Member
Ikuto is on a distinguished road
 
Posts: 50
Join Date: Oct 2008
Location: 127.0.0.1 tbh
Send a message via ICQ to Ikuto Send a message via MSN to Ikuto Send a message via Yahoo to Ikuto
Default 10-27-2008, 09:10 AM

Quote:
I get ERROR_STORAGE_FAILURE when adding new photos or creating albums, what should I do?

In a mysql database this could be a problem with the g2_SequenceId table. To fix this in phpMyAdmin, find the g2_SequenceId table and click "Browse" to see the rows. If there are multiple rows click "Delete" for each row except the one with the largest value. If there is a single row then click the "SQL" button in the very upper left.. in the popup window type:
select max(g_id) from g2_Entity

and click Go. Find the largest id in the query results. Now go back to "Browse" for g2_SequenceId and click "Edit" for the one row there. Change the value to be one larger than the maximum id reported in the query. Note that the errors received previously may have left directories and files inside your g2data/albums directory that are not displayed by Gallery. To complete the cleanup from this problem the items not shown when browsing the gallery as a site admin should be removed (backup first!).

The error can also occur if your mySQL is configured to only allow a certain amount of updates each given interval. The actual mySQL-error is 1226: User 'xxx' has exceeded the 'max_updates' resource (current value: xxxxx), but it's this ERROR_STORAGE_FAILURE that is shown in Gallery2. See: I seem to be running into some sort of MySQL query limit

The only thing you can do is to clean up (like it's explained above) and wait untill you can send update to your mySQL-server again.

If the error occur while displaying the gallery, check if you don't have any dead mysql process by stoping mysql and looking with ps -ef. If yes, simply kill the processes with kill -9 and start mysql.
Only useful thing i found.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com