WordPress.org

Ready to get started?Download WordPress

Forums

FG Joomla to WordPress
[resolved] Images: failed to open stream: Connection refused (26 posts)

  1. airmaxi
    Member
    Posted 1 year ago #

    Hi Kerfred,
    i also have the problem with images not being copied.
    ([fgj2wp] Can't copy http://localhost:888/LTC257/images/Presse-wettkampf/trilang-podersdorf08-1.jpg to /Applications/MAMP/htdocs/wordpress3.4.1/wp-content/uploads/2008/12/trilang-podersdorf08-1.jpg : copy(http://localhost:888/LTC257/images/Presse-wettkampf/trilang-podersdorf08-1.jpg): failed to open stream: Connection refused)

    i checked the other related posts:

    Local environment: Mamp, php safe mode is off
    Folder and files permissions: Joomla:755 WordPress/wp-includes:777
    http added in url.

    Any help or ideas would be highly appreciated!
    Thanks!

    http://wordpress.org/extend/plugins/fg-joomla-to-wordpress/

  2. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    All seems good.
    Do you have allow_url_fopen = on in your PHP.ini ?

  3. airmaxi
    Member
    Posted 1 year ago #

    sorry, forgot to post that: yes, allow_url_fopen = On is set in PHP.ini

  4. airmaxi
    Member
    Posted 1 year ago #

    does in help you, if i post the PHP.ini or other files?

  5. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    I have seen that you use the port 888 for your Joomla site. Can you try with the standard port 80?
    And is your WordPress site on the same server as your Joomla site (on localhost)?

  6. airmaxi
    Member
    Posted 1 year ago #

    both sites are on localhost, tried with port 80 in the url, same result.
    First i thought we had this in the bag, because the standard port i use to access the sites is 8888 (vs888), but with 8888 it´s a failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    with port 80 its the same as with 888....

  7. airmaxi
    Member
    Posted 1 year ago #

    ok, got this worked out!!

    MySQL
    Host 	localhost
    Port
    8889
    
    User 	root
    Password ****

    vs

    apache2handler
    Apache Version 	Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.4.4
    Apache API Version 	20051115
    Server Administrator 	you@example.com
    Hostname:Port 	localhost:
    8888

    tried with port 8889 and everything workt like a charm.
    Thanks for pointing in the right direction! hope this helps with further problem-requests!
    Thanks again!

  8. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Great.
    But can you explain what was the problem? I don't follow you.
    Which ports did you use for Apache and for MySQL ?

  9. airmaxi
    Member
    Posted 1 year ago #

    sorry, back again :-(
    pictures show as imported, the files were created in the "wp-content/uploads/year/month" folders, but they are all 0kb...

  10. airmaxi
    Member
    Posted 1 year ago #

    the port i use to call the sites in the browser is localhost:8888

    the port for connecting to the MySQL-Server is 8889

    To connect to the MySQL Server from your own scripts use the following connection parameters:
    Host localhost
    Port 8889
    User root
    Password ****

    (out of MAMP)

  11. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    If you type http://localhost:8888/LTC257/images/Presse-wettkampf/trilang-podersdorf08-1.jpg in your browser, do you get the image?

  12. airmaxi
    Member
    Posted 1 year ago #

    yes, i get the picture if i call it in the browser.
    just tried to delete the subfolders in "wp-content/uploads/" and run the importer again. they are rebuilt with the 0KB files in it again...
    i checked again the "joomla/images" permissions, they are at 755

  13. airmaxi
    Member
    Posted 1 year ago #

    did an all new wordpress installation and tried again, same outcome.
    image names are in "wp-content/upload/year/month" folders, but all are 0kb files.
    gonna leave it for tonight...
    at least i have the names there, so i can transfer the images manually a lot easier if it doesn´t work out.
    Anyway, thanks for your prompt help!

  14. airmaxi
    Member
    Posted 1 year ago #

    one more... do you think i should try an older version of WordPress?

  15. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    No it should work with WordPress 3.4.2.

  16. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Can you update to version 1.8.0 and tell me if your images are copied now?

  17. airmaxi
    Member
    Posted 1 year ago #

    still the same behaviour, with the difference that the image files all show now 110Bytes as filesize instead of 0 before...

  18. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Can you open one image with a text editor and see if there is an error message in it?

  19. airmaxi
    Member
    Posted 1 year ago #

    Can you open one image with a text editor and see if there is an error message in it?

    here´s what the images show up as when i changed there filetype to .txt and opened them in a text editor (2 files copied here):

    EDIT: i can´t copy and paste here, the error message always gets stripped when i post, even when i put it in as code...
    i´ll post them as dropbox links

  20. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    You can use http://pastebin.com/ to paste your code.

  21. airmaxi
    Member
    Posted 1 year ago #

    tried pastebin, does the same thing, strips the code after 5.5.25.
    tried a couple of commenting out and splitting things, but always strips the code...
    even had to convert the textfiles into pdf´s, cause the textfiles were running mad at dropbox. strange...

    https://www.dropbox.com/s/8y5ubl9uijtpkye/tonistrommer.pdf
    https://www.dropbox.com/s/xdlbo64bfhcqf1i/trikot.pdf

  22. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    Very strange this code. It seems that there are some network errors.
    Can you try to do the migration using the standard ports: 80 for http and 3306 for mysql?

  23. airmaxi
    Member
    Posted 1 year ago #

    i set the ports in MAMP to the standard ports and tried the migration with these, same result (the 110B files)

  24. Kerfred
    Member
    Plugin Author

    Posted 1 year ago #

    I have done some changes to improve the media files download compatibility. You can have a try to version 1.8.2.

  25. airmaxi
    Member
    Posted 1 year ago #

    You got it!
    tried both, standard ports (80/3306) and MAMP´s default ports (8888/8889), switching the ports in MAMP´s configuration.
    all images copied nicely!

    i tick this topic as resolved! Thanks again and good night!

  26. airmaxi
    Member
    Posted 1 year ago #

    ... and some beer money is on the way ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.