logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Error messages when upgrading

Version: 4.1.26
Example URL: http://www.homeandgardenworld.co.uk/


Error messages when upgrading
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/17/08 - 08:32 AM:
quote post
#1
I did a manual upgrade to this version from (I think) 4.1.23 to 4.1.25 - Go to do an auto upgrade to 4.1.26 but get error messages. This is a sample:

Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/homeandg/public_html/includes/filefunctions.php on line 106

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/homeandg/public_html/includes/filefunctions.php on line 107

Warning: ftp_chdir() expects parameter 1 to be resource, boolean given in /home/homeandg/public_html/includes/filefunctions.php on line 108

All errors (more of similar) in attached file.



As far as I can see all the directories and files are correctly chmod, but would be grateful if you could confirm which directories should be 777 for this version, and which files 666.

Attached Files:
errors on upgrade.txt
(155 KB, 10 downloads)
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/17/08 - 09:09 AM:
quote post
#2
It says it couldn't connect to the specified FTP server listed at Admin -> Settings -> System.

CHMOD values haven't changed.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/17/08 - 09:15 AM:
quote post
#3
Paul wrote:
It says it couldn't connect to the specified FTP server listed at Admin -> Settings -> System.

CHMOD values haven't changed.




That was the first thing I checked and it is all correct!
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/17/08 - 09:27 PM:
quote post
#4
"Name or service not known" could mean a temporary DNS problem. Or is it possible your FTP uses a different port?

I thought you ran PHP as CGI anyhow. If so, you don't need FTP info.

Edited by Paul on 01/17/08 - 09:31 PM
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/17/08 - 09:45 PM:
quote post
#5
Paul wrote:
"Name or service not known" could mean a temporary DNS problem.


It's not temporary as it's happened before, but then I just did a manual upgrade.

Paul wrote:
Or is it possible your FTP uses a different port?


All my sites are on same server using same settings - no probs with other sites upgrading.

Paul wrote:
I thought you ran PHP as CGI anyhow. If so, you don't need FTP info.


No - I moved to Liquid Web and now have the same set up as you.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/18/08 - 05:38 PM:
quote post
#6
Save this as test.php:
<?php
$server = "ftp.yourdomain.com";
$c = ftp_connect ($server) or die("Cannot connect to $server");
?>


Changing yourdomain.com to your domain name. Visit test.php. Does it still show the warning? If so, show it to liquidweb.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/18/08 - 08:15 PM:
quote post
#7
Additional note: I made the change to phpSuExec tonight (so I no longer need FTP info) and wrote up some details at http://scripts.webmastersite.net/wsnlinks/wsnmanu...
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 12:09 AM:
quote post
#8
Paul wrote:
Save this as test.php:

<?php
$server = "ftp.yourdomain.com";
$c = ftp_connect ($server) or die("Cannot connect to $server");
?>


Changing yourdomain.com to your domain name. Visit test.php. Does it still show the warning? If so, show it to liquidweb.



Yes, it did still show the warning: Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/homeandg/public_html/test.php on line 3
Cannot connect to ftp.homeandgardenworld.co.uk


Paul wrote:
Additional note: I made the change to phpSuExec tonight (so I no longer need FTP info) and wrote up some details at http://scripts.webmastersite.net/wsnlinks/wsnmanu...


OK - I shall pass this info on to LW and ask them to do it. Thanks Paul
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/19/08 - 05:40 PM:
quote post
#9
getaddrinfo failing might also affect host name resolution, so best to report the warning to them even if you're making the switch.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 09:57 PM:
quote post
#10
Paul wrote:
getaddrinfo failing might also affect host name resolution, so best to report the warning to them even if you're making the switch.


Thanks Paul, will open a ticket
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 10:02 PM:
quote post
#11
Paul wrote:
Additional note: I made the change to phpSuExec tonight (so I no longer need FTP info) and wrote up some details at http://scripts.webmastersite.net/wsnlinks/wsnmanu...


They have now installed suPHP for me, so now I follow your instructions and run those commands under ssh, which will be interesting as I have never used ssh before <G>

[EDIT] Just on the very first line command I get Operation not permitted ! sad


Edited by babrees on 01/19/08 - 10:33 PM
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/19/08 - 11:55 PM:
quote post
#12
OK, I found the problem and have to admit it was me! When moving the sites over for some reason I didn't do the dns correctly on this domain. After doing about 40 sites I suppose I was punch drunk!
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 01/20/08 - 08:26 PM:
quote post
#13
40 sites? I find it hard enough to keep track of a half dozen.

Operation not permitted means you're not logged in as root. Only root can change the ownership of others' files. Check if things are working first though, they may have done this for you.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 01/20/08 - 09:43 PM:
quote post
#14
Paul wrote:
40 sites? I find it hard enough to keep track of a half dozen.

Operation not permitted means you're not logged in as root. Only root can change the ownership of others' files. Check if things are working first though, they may have done this for you.


Actually I have 47 accounts on my server at the moment <G> Moving them all over to LW was a nightmare, especially as there were problems because they hadn't set things up correctly and then I had hackers trying to get in and cause probs! But all is great now.

I changed the nameservers on homeandgarden and once propagated it worked ok and upgraded. They have put suPHP on my server now and I shall go over to that way of upgrading (will try it out when I get a minute!) as I use ftp for my templates and language. Plus I have to admit I have not liked having my domain password etc in the admin.

Thanks Paul
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.