Recent Topics

1 Feb 24, 2006 15:59    

I started this in another string, but figured it was getting too diluted with the start subject matter.

Pictures.
I can upload them just fine. I can't see them in the blog. (no error message, no place holder, nothing) when I check the source code the correct url is there "img src=../blog/media/sample.jpg" in correct context and format.
the /media folder is set to 766
one of the files inside I set to 777

I have applied the changes recommended in
http://forums.b2evolution.net/viewtopic.php?t=1132&highlight=upload+permission
(editing the b2upload.php)
I have edited the b2upload.php to accept files up to 1500 KB and included the .bmp format.
I have changed permissions from 766 to 777 all the way down from the root directory of my blog to the media file themselves.

IE 6 gives me a place holder for the picture and the alt name (but no pic)
Mozilla gives me only the alt name (no pic, no frame, nuttin'!)

2 Feb 24, 2006 16:05

Can you give a link to your blog so I can see what's happening?

3 Feb 24, 2006 16:28

http://www.thepicvault.com/door/index.php/a

created a user and password
user: test
password: passtest

I have no blogs on the default page, so you have to go into the a blog.
(most of the posts are protected) so I gave a generic admin username and password.[/url]

4 Feb 24, 2006 16:36

First of all, there are spaces in some of the filenames. That may cause some problems. But here's a file with no spaces:

http://www.thepicvault.com/door/media/collaboration.gif

And it just gives me a forbidden error. Let's try this. Use an ftp program to upload a file to the media directory and we'll see if we can see that on the web. That will tell us if the problem is with the upload script or with the directory itself.

5 Feb 24, 2006 19:33

ftp server to media folder does not show picture

copied up a picture (coolinux.png) to the media folder via an ftp server (Smart FTP 1.5)
Then coded an img src to point to the file and display.
Same as before, no picture but did get "alt name"

So regardless of the b2upload it is not displaying the pic.

6 Feb 24, 2006 20:20

That should tell you that this is not a b2evolution problem. If you can upload a file to the directory and it's still not visible, then something's wrong at the server level. I would ask your web host for help with this.

7 Feb 24, 2006 21:53

It looks like you have directories untraversable, as I get a 403 on:
http://www.thepicvault.com/door/media/

Of course, I get the same error when looking at a picture:
http://www.thepicvault.com/door/media/coolinux.png

BUT I CAN look at a picture in the custom skins folder ;):
http://www.thepicvault.com/door/skins/custom/img/icon_minipost.gif

So this tells me that it's likely to be a permissions problem and that it appears to be related to the "media" folder. (As a test ... create a folder outside the b2evo tree ... or inside ... set permissions and upload a picture ... point to the new picture in the new folder and see if you can see it in an entry ... or by typing the path into the address bar).

I don't use the media folder or upload, but to me, that seems to be the problem. Check (1) there's not an .htaccess file in the media directory shutting things down; (2) that the image files in the media dir have world read access and (3) that the media directory has owner write/read and world read access. (That's all i can think of, unless your root level htaccess is slamming it down for some reason).

8 Feb 27, 2006 15:43

stk,

That was the ticket.
I created a new folder and the pic worked just fine.
Now I just need to edit the b2upload.php to point to that folder and I'll see if that still works out.
I appreciate the help and will let you know if it is all successful.

Oops, b2upload does not directly refer to the "media" folder. Closest I could find was $fileupload, $pathtofile and '.$fileupload_url.'
Whereabouts can I tell the upload to send to the new "photos" folder?

sorry for the edits, found the answer to that last question in the /conf/_admin.php
$fileupload_url = $baseurl.'/media';

9 Feb 27, 2006 16:30

Guys,
Thank you all for your help.

The solution that worked best was to stop using the "media" folder and created my own folder for pictures.
(Permissions on folder were chmodded to 777 (wide open)) So everyone could read, write and execute.
Then edit the _admin.php in the conf directory so that it uploaded to my new folder for photos (2 separate lines, just open the _admin.php in an editor (wordpad, etc) and do a "find" for "media")
Change "media" to the name of the new folder and voila!
I can now post the pics and even, dare I say, SEE them.

My thanks to stk, personman, and EdB. Your help led me in the appropriate directions and I thank ya' kindly *tips hat* (even if I'm not a cowboy)
Rest assured I'll get myself in trouble again, so for now thank you.

10 Feb 27, 2006 16:33

Glad to hear that you got it all sorted out. :D


Form is loading...