Results 1 to 9 of 9

Thread: Error with uploading images, 2.9.1

  1. #1
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Error with uploading images, 2.9.1

    Hi, this appears at the top of my site after I try to post an ad with an image:

    [edited]

    Please let me know how to fix this. I don't think the image is being uploaded anywhere. I also haven't been able to upload a profile image.

    I'm using classipress 2.9.1 and wordpress 2.7.1. Site is at [edited]

    I have directories "upload" and "classipress" and both are CHMOD to 777:
    wp-content/uploads/classipress

    Thanks

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Error with uploading images, 2.9.1

    Apparently the permissions that were set didn't stick. If you look at the error message, you'll see that it says "Permission denied".

    Try setting them again and check it afterwards.

  3. #3
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Error with uploading images, 2.9.1

    Thanks for the help David.

    I've done the 777 CHMOD many times on the "classipress" and "uploads" directories (maybe only the "classipress" directory needs this), and just did it a couple more times. FileZilla tells me these files are correctly set to 777. I tried another ad-listing with a photo just now and got the same results as posted above.

    I don't wanna toss you a time-winder as I'm fairly set on trying another product. But if you have some more ideas then I will gladly experiment further. I'm hosting with nearlyfreespeech, if that makes any difference.

    Another thing is my site isn't showing a login form in the header, even though I have this option enabled.

  4. #4
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Error with uploading images, 2.9.1

    Do you know if your hosting provider is on Windows or Linux?

  5. #5
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Error with uploading images, 2.9.1

    The host uses FreeBSD.

    The only thing I can think might be related is that I was using simplemachines forum (SMF) software a while back (with same host as now), and one of the hiccups I had with that script was that when I copied a theme from within the SMF admin interface, the copy theme was not correctly "owned" by me as the account and admin owner, thus it was then unable to be CHMODed or even deleted using my FTP client until I got my host to assign me privileges to this script-generated file. I had found that the problem stemmed from the image files in the copied theme not being correctly "owned" by me.

    Maybe that's related somehow.

    I can CHMOD my "uploads" and "classipress" directories and delete them at will just fine.

    EDIT: actually they use FreeBSD and not linux

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Error with uploading images, 2.9.1

    So I found a WordPress thread of some others having a similar problem. It appears that some host providers can't handle a certain WordPress function called wp_upload_dir()

    They way to fix it is to hard code your paths into the /classifiedform/classifiedform.class.php file.

    So replace line 177
    Code:
    $dir_to_make = $upload_arr['basedir'] . "/classipress";
    with this code:
    Code:
    $dir_to_make = "wp-content/uploads/classipress";
    See if that solves the problem. If not, you might also have to replace line 187
    Code:
    $image_baseurl = $upload_arr['baseurl'] . "/classipress";
    with this code:
    Code:
    $image_baseurl = get_option('home')."/";
    Let me know how that works out for you.

  7. #7
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: Error with uploading images, 2.9.1

    Thanks, after swapping that first line of code you gave, I can now upload an image with a new ad.

    But there doesn't appear to be a way to change or delete the image via the dashboard page or the edit-ad page.

  8. #8
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Error with uploading images, 2.9.1

    Great so it fixed your image upload issue. Currently you can't edit images via the edit-ad page but hope to have that in a future release. You can go into WordPress and add/remove images via the custom field if you wanted to go that route.

  9. #9
    Newbie
    Not a Verified Customer
    gholem's Avatar
    Join Date
    Nov 2009
    Location
    Romania
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Error with uploading images, 2.9.1

    Hello there,

    For the guys that got into this not knowing what's to be done next and:
    - CHMOD was done right but images couldn't be uploaded;
    - The php lines to be modified @dcowgill was saying about were modified and still no luck

    --------------------

    Try CHMOD 0777 the Cache directory, from the theme directory.


    I know it's been said before and I'm not bringing anything new here but when I tried fixing this problem for one of my clients - I've google for this and this page showed up. But it didn't say anything about this. Could be that I wasn't paying enough attention, but still...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)