Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
v4bJournal - display of uploaded graphics glitch
  • Posted: 10.04.2004, 06:07
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    Have been playing with v4bJournal.
    No problem uploading graphics to my users folder - after doing this using the module, I can find the graphics files via ftp, right where they belong, in
    modules/v4bJournal/img/users/(me)
    so that's slick.

    But the images don't display in my blog entry when called. I get the little red X "image not available" graphic instead.
    A right-click -> Properties check on this displays the URL where the graphic really actually is -

    http://(mysite)/modules/v4bJournal/img/users/(me)/(filename).jpg

    I have the img/users and img/users/(me) folders CHMOD'd to 775 (even briefly tried 777 with the same result, tho I'm not sure why I bothered with that).

    Other functions seem to be working fine, am anxious to fix this & get to using this little item.

    Any ideas here for me?

    - thanks, Will
  • Posted: 21.04.2004, 05:56
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    Hmm, if the file is there and the correct path is shown, then everything should work OK. Are you sure the graphics files themselves on the server are OK?

    Also, you should be able to request the graphic directly by pasting the URL in the browser. Do you get an error (ie: 404) or does that URL resolve OK. Can you check your web server logs to see what's going on?

    Greetings
    --> R
  • Posted: 22.04.2004, 06:44
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    Thanks, I've looked into this further.
    The graphics files are uploaded into
    img/users/(me) with a CHMOD of 600
    when I upload them using the v4bJournal module
    If I go into the folder manually and change this to 644 for each file using my FTP program, they work fine.

    (the same files, uploaded using my FTP program rather than using the v4bJournal upload function, show up as 644)

    The folders, right down to
    img/users/(me)
    are CHMOD'd 755.

    How do I assure that the module uploads the graphics files with permissions for viewing?

    - Will
  • Posted: 25.04.2004, 21:34
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    Haven't heard back on this yet - am I overlooking something obvious?
  • Posted: 19.05.2004, 14:02
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    Sorry for my silence, your post slipped through my (virtual) cracks.

    After thinking about this for a while, I believe that the problem might be the way PHP handles uploaded files in conjunction with your system's umask. I'll see if I can add some code to reset the permissions to a saner way.

    This will hopefully be in the new version (0.97) I'm working on. Look for it within a week or two ...

    Greetings
    --> R
  • Posted: 14.09.2004, 14:20
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    wonder if I can renew this topic -
    I've upgraded to the most recent version (0.97), and am having the same problem. My work-around, which is not at all satisfactory, is to assure my users that their image file really is there, and every few days to access my journal images folder via FTP & batch CHMOD all the files in the folder from 600 to 666 - at which point their files magically appear.

    I encounter this same problem with ewFileManager, which I no longer use for graphics files for this reason.

    Other image uploading modules are working fine - no problem with ContentExpress, Photoshare, MultiImage.

    any ideas here?
  • Posted: 14.09.2004, 20:23
     
    rixride
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.04.08
    Posts:
    796
    I guess another way to test is to create a whole new instance of the Journal and see if that fixes it. Call it Blogs or something. So basically you are starting from a fresh copy.

    Good luck

    --
    -=Rixride=-
    PbxInfo.com
    Postnuke Directory
    PbxJobs.com
    http://www.allrowlett.com
  • Posted: 14.09.2004, 20:29
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568

    Quote

    Other image uploading modules are working fine - no problem with ContentExpress, Photoshare, MultiImage.


    Good tip, let me see if I can figure out what those modules are doing ... I'll get back to you ...

    Greetings
    --> R
  • Posted: 13.10.2004, 19:55
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    Any progress on this?
    (uploaded graphics thru v4bJournal end up with CHMOD 600 & so are not visible)
    I like this module a lot, but it sure would be nice to have the graphics upload feature working with it.

    [I removed my old version, and re-installed the latest version - 0.98 - just downloaded this morning - and I still have this same difficulty]

    - will
  • Posted: 15.10.2004, 17:26
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    Actually, not yet. However, the timing of your reminder is excellent as I'm hoping to release version 0.98 soon (0.98-Beta4 looks really solid, so it's almost good to go).

    Please send me a private email (email, not PostNuke PM) remiding me of this. Hopefully I'll figure out a fix for you. Would you be willing to test such a new Beta-version for me?

    Greetings/Thanks
    --> R
  • Posted: 16.10.2004, 03:29
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    OK, please try the following in the 0.98-Beta4 code. In the file functions.php, on line 471, there's the following 2 comment lines:

    Code

    // Bad idea ...
    //@chmod ($uploaddest, 655);


    After this simply add the following line

    Code

    chmod ($uploaddest, 0777);


    (keep the leading 0) and then tell me what happens. This is what photoshare does and I would hope it would also work for you (I think the problem with the old code was that it dropped the leading 0).

    Greetings/Thanks
    --> R
  • Posted: 17.10.2004, 07:56
     
    wtaylor
    rank:
    Helper Helper
    registered:
     December 2003
    Status:
    offline
    last visit:
    15.04.06
    Posts:
    357
    Hurray !!!!!
    Such a fine result for such a tiny bit of code!
    - will
  • Posted: 17.10.2004, 14:26
     
    rgasch
    rank:
    Professional Professional
    registered:
     January 2003
    Status:
    offline
    last visit:
    26.11.08
    Posts:
    568
    Cool, I'll put this into the code for version 0.98 ...

    Greetings/Thanks
    --> R

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula