coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: jamar190 on November 04, 2004, 07:31:12 PM

Title: doesnt let me upload
Post by: jamar190 on November 04, 2004, 07:31:12 PM
somethings wrong i got this
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/www/meygan.freelinuxhost.com/coppermine/upload.php on line 1355

also this...
File Name/URL Error Message
1. Cat_expands.gif Not a GD extension.

what is it and how do i fix it??

thanks(for future help)
Title: Re: doesnt let me upload
Post by: kegobeer on November 05, 2004, 02:51:24 AM
First error:  A search for that error on Google turned up a useful post on the Official XOOPS Website Support Forums:

QuoteIf you're having problems with fopen("url...") but you can run 'host url' in a shell window and get the correct lookup, here's why...

This has had me banging my head against it all day - finally I found the answer buried in the bug reports, but figured it should really be more prominent!

The problem happens when you're on an ADSL line with DHCP (like our office)... When the ADSL modem renews the DHCP lease, you can also switch DNS servers, which confuses apache (and hence PHP) - meaning that you can't look up hosts from within PHP, even though you *can* from the commandline.... The short-term solution is to restart apache.

You'll get "php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in ..." messages as symptoms. Restart apache, and they're gone.

Simon

So it sounds like you or your webhost needs to restart Apache.

Second error:  A quick read of the documentation explains Coppermine doesn't support GIFs when using GD.