Forums

[resolved] Weird problem with image paths... (14 posts)

  1. Maggical
    Member
    Posted 2 years ago #

    Hi there,

    Following this thread:

    http://wordpress.org/support/topic/383491?replies=3

    I made the permanent links work, but the problem now is a big one, when I try to access any image on the site it goes to the archive.php instead of the image, for example:

    http://www.moonward.net/uploads/adidas-star-wars-1.jpg

    What's hapenning? Any ideas on how to solve it?

    Thanks,

    Javier

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    I can't find any problems with the images on your site. Can you post a link to a page or post where this is happening?

  3. Maggical
    Member
    Posted 2 years ago #

    The thing is that this link:

    http://www.moonward.net/uploads/adidas-star-wars-1.jpg

    Is a direct link to an image, and it's not working as such...

    So I had to use a "trick" for the images to display ok in the posts, and that is to call timthumb.php everytime I need to display an image, even when I want the users to just see the full image size...

    That's not convenient at all :S

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you checked your uploads path in Admin?settings/Miscellaneous? It should be set to wp-content/uploads

  5. Maggical
    Member
    Posted 2 years ago #

    It's all in default mode...

    Could it be a problem of the index.php that this blog posts as the fix?

    http://www.ryanyockey.com/146/wordpress-themes/magazeen-wp-theme-pagination-fix/

    Thanks for the help and sorry to keep asking :S

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Difficult to say. Do the images work if you use the default permalink settings?

  7. Maggical
    Member
    Posted 2 years ago #

    They worked perfectly until I used this "fix"...

    It seems as it gets every link as a post link and does not care about wheter it is one or not... :S

    I'm really lost right now with this...

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Do the images work if you use the default permalink settings?

  9. Maggical
    Member
    Posted 2 years ago #

    Nope, with the default settings (links like ?p= if you go to this link:

    http://www.moonward.net/uploads/adidas-star-wars-1.jpg/

    It just goes to the homepage...

    Any ideas now? :( Is it a problem in the index.php?

  10. Maggical
    Member
    Posted 2 years ago #

    Any ideas?

  11. Maggical
    Member
    Posted 2 years ago #

    Let's see if this helps. The code for my index.php is as follows:

    $paged = get_query_var('paged');
    if(isset($paged) && !empty($paged)){
    	/* here's the archive.php code */
    }else{
    	/* normal home page look. */
    }

    It seems that if you want to access any file in the ftp, it takes you inside the first "if" and displays the archive.php page...

    Any ideas now?

    Thanks,

    Javier

  12. Mark / t31os
    Moderator
    Posted 2 years ago #

    Why are you missing /wp-content/ from your upload path each time you refer to it..

    Apparently you have an upload folder, but there are no images in any of the folders.
    http://www.moonward.net/wp-content/uploads/

  13. Maggical
    Member
    Posted 2 years ago #

    I'm uploading all images to http://www.moonward.net/uploads/ instead of inside wp-content. That's not ok? :S

  14. Maggical
    Member
    Posted 2 years ago #

    Ou... This works!

    http://www.moonward.net/wp-content/uploads/adidas-star-wars-1.jpg

    :S Was I just missing the simplest thing or what? :S

Topic Closed

This topic has been closed to new replies.

About this Topic