Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4229
Latest: Ghost
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43074
Total Topics: 7493
Most Online Today: 108
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 41
Total: 41

Author Topic: Image Import  (Read 15794 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: 16353
    • 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: 16353
    • 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: 16353
    • 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: 16353
    • 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: 16353
    • 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: 16353
    • 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
6332 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
1 Replies
4926 Views
Last post February 16, 2008, 11:53:55 am
by SMFHacks
1 Replies
3787 Views
Last post July 30, 2008, 07:28:47 pm
by SMFHacks
9 Replies
4430 Views
Last post November 30, 2010, 09:19:56 pm
by SMFHacks
5 Replies
6718 Views
Last post April 04, 2012, 12:39:56 pm
by spcx

+- Recent Topics

Version 6.1.6 issues by davejo
Today at 02:21:44 pm

Follow / Follower Mod? by SMFHacks
September 23, 2023, 08:44:44 am

Looking for a good video player by replayuk
September 23, 2023, 12:17:39 am

[Mod]Discord Web Hooks by SMFHacks
September 22, 2023, 03:57:28 pm

SMF 2.1.4 Search by Anmer
September 22, 2023, 01:55:15 pm

Error in thise mode by Ghost
September 15, 2023, 08:42:24 am

Gallery Selection List Order by mickjav
September 07, 2023, 12:46:31 pm

[Mod]Tidy Child Boards 2.0 by Norwinjose
September 02, 2023, 11:42:54 am

PrettyUrls SEO Pro: Unable to submit sitemap to google search conmsole by SMFHacks
August 31, 2023, 10:55:22 am

PrettyURL - SEO4SMF Rewrites? by SMFHacks
August 28, 2023, 06:35:33 pm

Powered by EzPortal