Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:21:38 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [SOLVED] a little problem with media directoy creation  (Read 1606 times)
gila

Offline Offline

Posts: 49


« on: March 25, 2008, 10:52:18 AM »

i use 2.7 rc2

hi, as usually locally all works fine tongue,

on line i got a problem in the media directory, if i create a new directory "test" it works but when i try to upload a file in the new directory it do not works because in the select box wb sets the path "mediatest" instead "media/test"

what can i do?

thanks
« Last Edit: March 31, 2008, 02:05:13 PM by gila » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: March 25, 2008, 12:25:57 PM »

Hello,

think you simply created the folder "mediatest" instead of "test".

Matthias
Logged
gila

Offline Offline

Posts: 49


« Reply #2 on: March 25, 2008, 02:12:54 PM »

i try few times, locally i create some new folders: test, png, etc..
and chosing the folder when upload i can chose media/test,  media/png etc..
on line i created the same folders but when i want to upload, choising the folder destination there are mediatest,  mediapng etc... 

so it is impossible to upload in the new directory.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: March 25, 2008, 06:38:07 PM »

Creating a new folder ... just leave the path away ... then it will work. If you want a folder called "test", just call it this way and not "media/test". The slashes are being filtered out. I think this is your problem, but also i might be wrong smiley

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

gila

Offline Offline

Posts: 49


« Reply #4 on: March 26, 2008, 08:40:55 AM »

i used this admin area few time, i know how it works, but now i ha ve thi sproblem, i hope the image explain better than my words grin

Logged
spawnferkel

Offline Offline

Posts: 96



« Reply #5 on: March 26, 2008, 11:35:25 AM »

Hahaha.
Sorry. Your problem is not very funny but your image is ingenius!
Please create an additional folder in "aaa".
Do you see any seperating trailing slash in the dir list after that?



Bye

Alexander
Logged
gila

Offline Offline

Posts: 49


« Reply #6 on: March 26, 2008, 11:52:25 AM »

i cannot create a new folder in aaa because also in the dir list creation i have the same error...

after ceating a bbb folder into the aaa folder, by ftp, in the wb upload panel i have the same error: mediaaaabbb

 cry

« Last Edit: March 26, 2008, 11:56:11 AM by gila » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #7 on: March 26, 2008, 12:38:45 PM »

Hello,

as it seems to work lokal and not on the server it looks like a server missconfiguration. Also please have a look if all files from WB 2.7RC2 are uploaded correct. If this is ok, please ask your hoster.

Matthias
Logged
doc
Guest
« Reply #8 on: March 26, 2008, 12:44:06 PM »

Hello Gilla,

can you please check if the error also occurs on your server with WB 2.6.7? Can you provide some more details on the server configuration you are using?

Regards Christian
Logged
spawnferkel

Offline Offline

Posts: 96



« Reply #9 on: March 26, 2008, 12:50:12 PM »

ah ok.

I have found something in the code.

Please make sure that your homefolder is not "/".
Please clear any value in this field and try it again.

Bye

Alexander
Logged
spawnferkel

Offline Offline

Posts: 96



« Reply #10 on: March 26, 2008, 12:59:19 PM »

Ah no.
It is because your WB_PATH is only a slash.
It seems like a bug of the RC1 version
@ruebenwurzel
please have a look to the line 46 in the file admin/media/index.php
« Last Edit: March 26, 2008, 01:01:17 PM by spawnferkel » Logged
gila

Offline Offline

Posts: 49


« Reply #11 on: March 31, 2008, 02:04:25 PM »

hi everybody, i solved

i add a substring into the line 46 in the file admin/media/index.php

$template->set_var('NAME', str_replace(WB_PATH, '/', substr($name, 1))); echo WB_PATH."-".$name;

thank you.
Logged
thorn

Offline Offline

Posts: 980


WWW
« Reply #12 on: April 04, 2008, 06:24:48 PM »

Hello,

echo WB_PATH."-".$name;

What's the output of this line - what's the contents of WB_PATH?

Did you install in a kind of chroot-environment (and WB_PATH becomes '/')?

thorn.
Logged

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!