SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

Dragooon

What is max_execution time? It shouldn't exceed.

NEMINI

30 seconds it said in the error message
signatures are boring.

Nao 尚

Quote from: LinK187 on January 09, 2009, 06:39:07 PM
Quote
****   Today at 07:36:53 PM 
99.253.150.120     8dabda64878c0bdc80cd792b01719d11 
http://****/forumtest/index.php?action=viewErrorLog;desc;start=0 
Unable to load the 'MGallery.english-utf8' language file.
We don't provide a UTF8 copy of the language files by default. (I do it for Aeva because Karl did it, and I chose to keep his habits...)
When you choose to use UTF8 for your board, you need to take into account the fact that you're basically changing your language, so you'll have to keep track of all languages files and rename them accordingly.
I realize this is something that should/might be done by SMF (i.e. load the non-UTF8 file if the UTF8 file can't be found), at least for the English language, because basically it only has a 0.1% chance of having contents that differ from the classic English language files.
Actually, this *will* be done starting from SMF2 RC1, thanks to a bug report of mine eheh. (This is when I'm very happy with my current position.  8))
http://dev.simplemachines.org/mantis/view.php?id=2743
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Nao 尚

(Something to be added to the potential FAQ, maybe?)

Quote from: NEMINI on January 10, 2009, 01:55:34 AM
30 seconds it said in the error message
Max execution time is something that Dragooon worked A LOT on -- he didn't have to, really! And it still failed on my board at one point (I don't remember why), it generated a 500 internal server error, so we worked together on this and we implemented various solutions (variable fine-tuning + on-the-fly recovery) that makes it work for everyone.

Now, solution 1: simply edit your mgconverter_sgp.php file and spot these lines at the very beginning of the file:

$context['max_exec'] = 5;
$context['wait_time'] = 1;

Change the max_exec value to something like 2 (which will make sure only one item is done at a time), and wait_time to something like 3 or 5 (which will give more time to your server to recover -- usually not needed).

Solution 2: if you simply get a 500 Internal error, it didn't exactly fail -- sometimes servers are unstable and will simply not accept the conversion at one specific point in time. Really, what you need to do is simply hit the Refresh button! It will resume conversion exactly where it failed. It might take some time if your server isn't cooperative, but it will eventually work.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

NEMINI

The conversion has been halted to avoid overloading your server. So far, 250 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
The conversion has been halted to avoid overloading your server. So far, 500 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
<refresh>
<refresh>
<refresh>
<refresh>
The conversion has been halted to avoid overloading your server. So far, 486 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
The conversion has been halted to avoid overloading your server. So far, 250 items out of 986 have been converted. The script will automatically resume in 3 second(s).
<refresh>
<refresh>
<refresh>
<refresh>
<refresh>
The conversion has been halted to avoid overloading your server. So far, 486 items out of 986 have been converted. The script will automatically resume in 3 second(s)

and there is sits refreshing and making no progress.  I've tried several different values and whilst the numbers change a bit it always gets to a certain point before completion and starts going backwards
signatures are boring.

Nao 尚

It actually goes *backwards* in the list?!

Also, <refresh> -- is it an automatic or manual refresh?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

NEMINI

auto refresh sorry.  and yes it gets to a certain point and goes backwards
signatures are boring.

smurfyforum


"Smurfs, Smurfs, and More Smurfs!"

Dragooon


Nao 尚

Quote from: NEMINI on January 10, 2009, 05:19:31 AM
auto refresh sorry.  and yes it gets to a certain point and goes backwards
Is it really doing ~250 items at a time...? Are you putting a high max_exec time? Or are your items, like, 16x16 pixels or something?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Nao 尚

I really don't get it...
SELECT MAX(id_media) FROM {db_prefix}mgallery_media
This query allows the script to resume work from the last successful import.
I have no idea how it could go backwards. Are you sure you're using the latest version of the script, along with the latest version of SMG?
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

MonoTiz

Hi.
deleteItems() function create conflit with the same function of Blog Community mod (it's the same function name).

I have fix change to smg_deleteItems, but I suggest to dragoon to change the function name for the next realease. Thanks.

Nao 尚

Interestingly, the issue was already brought up here last week:
http://smf-media.com/community/index.php?topic=456.0
I thought Dragooon had dealt with it, but he hasn't worked on SMG since December 31, so I'll do it myself.

...

Done. Revision 684. Will be in v1.5.3. FYI, I also renamed deleteComments(), just for the sake of consistency.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

ryozo

just one quick question, i had a problem with the gallery album's icon before. (user can upload a high dimension image as icon)

Is it already remedied? thanks

NEMINI

Quote from: Nao 尚 on January 10, 2009, 10:09:54 AM
I really don't get it...
SELECT MAX(id_media) FROM {db_prefix}mgallery_media
This query allows the script to resume work from the last successful import.
I have no idea how it could go backwards. Are you sure you're using the latest version of the script, along with the latest version of SMG?

yes and yes.  I did finally get the script to complete changing the sql limit to 1000 instead of 250, however no albums were actually created but the statistics showed the correct number of photos.  Checking the files showed no files actually added to the mgal_data folder.
signatures are boring.

Nao 尚

@ryozo> Yes... I fixed that long ago ;)

Quote from: NEMINI on January 10, 2009, 11:54:49 PM
yes and yes.  I did finally get the script to complete changing the sql limit to 1000 instead of 250, however no albums were actually created but the statistics showed the correct number of photos.  Checking the files showed no files actually added to the mgal_data folder.
Can't help further without any FTP+admin account access...
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Bugpac ™

I can not pull images from my gallery via bbc code Img , Is there something that blocks that in permissions, Have no problems with img unless trying to pull from the gallery.....   2.04

Nao 尚

I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Bugpac ™

Posting the bbc code below...




Should show ^^^

Bugpac ™


Advertisement: