Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43323
Total Topics: 7527
Most Online Today: 262
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 267
Total: 267

Author Topic: Image Import  (Read 16980 times)

0 Members and 1 Guest are viewing this topic.

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Image Import
« on: January 31, 2007, 11:35:13 am »
When I try to do a bulk import, I get this error message. Tried it from different directories including the import directory. Suggestions?

Thanks

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, advancedsupport@doteasy.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.51 (Fedora) Server at www.aplanding.com Port 80

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #1 on: January 31, 2007, 11:55:36 am »
Is it able to import any pictures? Is the directory readable? Try to delete the import folder and recreate it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #2 on: January 31, 2007, 07:48:32 pm »
I can't do any imports or bulk. If I use add a picture it works fine. Any import or bulk ends up with that error. The directory is readable and writable. Tried deleting and recreating. Tried different directories. The mod was a clean install with no errors and everything else looks ok so far.
« Last Edit: January 31, 2007, 07:52:08 pm by dklassen »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #3 on: January 31, 2007, 07:59:38 pm »
Bulk adding you get an error as well using bulk uploads?
No errors in error log?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #4 on: January 31, 2007, 08:05:06 pm »
From server error log

[Wed Jan 31 17:43:52 2007] [error] [client 68.111.241.244] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /var/www/html/smf/Sources/Subs-Graphics.php on line 1130, referer: http://aplanding.com/smf/index.php?action=gallery;sa=bulk;cat=2

[Wed Jan 31 17:40:11 2007] [error] [client 68.111.241.244] Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes), referer: http://aplanding.com/smf/index.php?action=gallery;sa=import;cat=2

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #5 on: January 31, 2007, 08:16:42 pm »
Seems that your host has some memory limits on scripts which is causing the server error.

http://www.tech-recipes.com/php_programming_tips777.html

I am not sure if your host allows you to change memory limits for scripts:
You can try this and see what happens
Open Sources/Gallery.php
Find twice
Code: [Select]
@ini_set('max_execution_time', '300');
Add after each one
Code: [Select]
@ini_set("memory_limit","15M");
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #6 on: January 31, 2007, 08:40:00 pm »
Not working. I can't even add one picture now without the server error. I tried increasing from 15 to 20m for each. Still the same error. I've had other gallery scripts such as photoplog, coppermine, etc running on this host with no memory issues.
« Last Edit: January 31, 2007, 08:55:43 pm by dklassen »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #7 on: January 31, 2007, 09:07:00 pm »
What does the error say in the log?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #8 on: January 31, 2007, 09:13:49 pm »
Tracked down the error your host does not have imagecreatefromgif support in their GD version. which will cause SMF's function to timeout when using gif files.
They need to upgrade to GD version 2.0.28 or greater
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #9 on: January 31, 2007, 09:14:55 pm »
[Wed Jan 31 19:01:13 2007] [error] [client 68.111.241.244] Premature end of script headers: php-script, referer: http://aplanding.com/smf/index.php?action=gallery;sa=add;cat=1
[Wed Jan 31 19:04:23 2007] [error] [client 68.111.241.244] Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes), referer: http://aplanding.com/smf/index.php?action=gallery;sa=add;cat=3
[Wed Jan 31 19:04:23 2007] [error] [client 68.111.241.244] Premature end of script headers: php-script, referer: http://aplanding.com/smf/index.php?action=gallery;sa=add;cat=3
[Wed Jan 31 19:08:49 2007] [error] [client 68.111.241.244] Allowed memory size of 8388608 bytes exhausted (tried to allocate 16 bytes), referer: http://aplanding.com/smf/index.php?action=gallery;sa=add;cat=3
[Wed Jan 31 19:08:49 2007] [error] [client 68.111.241.244] Premature end of script headers: php-script, referer: http://aplanding.com/smf/index.php?action=gallery;sa=add;cat=3

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #10 on: January 31, 2007, 09:56:33 pm »
Not sure I understand. I'm not using gif files, they are all jpg. Are you refering to the thumbs it creates?

What if they won't or can't upgrade. Am I stuck??

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #11 on: January 31, 2007, 10:00:20 pm »
Also, how come it worked for a while but not now? I can't get any pics into the gallery now.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16464
    • View Profile
Re: Image Import
« Reply #12 on: January 31, 2007, 10:01:59 pm »
I think it is the host issue with the memory limit and I think a bad gif file is causing it to hold up.

I mainly said gif files since this error relates to GIF file handling and will only use that function if older version of GD is used.
Code: [Select]
[Wed Jan 31 17:43:52 2007] [error] [client 68.111.241.244] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /var/www/html/smf/Sources/Subs-Graphics.php on line 1130, referer: http://aplanding.com/smf/index.php?action=gallery;sa=bulk;cat=2
Two things I would ask for is to upgrade the GD version firstly and increase the default memory limit from 8m.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #13 on: January 31, 2007, 10:25:02 pm »
Thanks, I have in a request. <fingers crossed>

Offline dklassen

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Image Import
« Reply #14 on: February 01, 2007, 07:45:10 pm »
Here's the latest and the response from my host.

"This email is to let you know the memory limit was increased (16k) and the servers already have GD 2.0.28 installed."

Now I can upload single files but when I try to do bulk (even one or two files) it doesn't give any errors and completes but there are no images that end up in the gallery. Same with import.

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
7543 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
1 Replies
6132 Views
Last post February 16, 2008, 11:53:55 am
by SMFHacks
1 Replies
4649 Views
Last post July 30, 2008, 07:28:47 pm
by SMFHacks
9 Replies
6039 Views
Last post November 30, 2010, 09:19:56 pm
by SMFHacks
5 Replies
8343 Views
Last post April 04, 2012, 12:39:56 pm
by spcx

+- Recent Topics

Failed to open stream: File name too long by Randem
June 21, 2024, 10:40:41 am

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Powered by EzPortal