HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Skip navigation

Weird FTP error messages

Login / Search

[ Join | More ]
Posted 12 February 2009, 12:16 PM
#48406
Avatar

ocStaff (admin)

It is possible those using the quick installer, or other aspects of ocPortal that use FTP connections may receive strange error messages relating to FTP commands that don't look like real error messages.

One example is:
ftp_put() [function.ftp-put]: Connecting to port 34031

This illustrates ocPortal failed to upload a file ('ftp_put') but the attached error message makes no sense at all.

How did this happen?

The reason for this is PHP's FTP support is rather poor on occasions, unable to generate accurate error messages. In this example 'Connecting to port 34031' is actually a status message for the FTP connection, routinely put out, and PHP misinterprets it and relays it as the error message that caused the failure.

How do I fix it?

There is no clear fix as PHP was not able to relay an appropriate error message.

Here are some potential solutions…

  1. You should try refreshing to see if it works a second time around (it could have been a random anomaly).
  2. Consider whether the FTP connection settings you entered were corrected. In the example above it is likely there is actually no FTP server running where it was specified, as the last status message (which PHP considered 'the error') was one prior to any connection being confirmed as established.
  3. If you get this when installing, consider using the manual installer.
  4. If you have a SuEXEC configuration or Windows server then you have no need at all for an FTP server to be running.
  5. … otherwise you can avoid the need for an FTP server by setting extra permissions. Try saying you don't need FTP, noting the error message you see, setting extra 777 directory permissions (full write permissions) accordingly, and refreshing.
  6. Contact your web host saying your server PHP cannot connect to the FTP server (and say what FTP details you used). Ask them to give you the correct FTP details, fix the FTP server, or fix PHP FTP support.


Last edit: by Chris Graham



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter


If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
1 guests and 0 members have just viewed this: None