Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-25 21:54:34

boptom
New Member
Registered: 2007-02-07
Posts: 4

Images directory not pointing txp to the right place

Hello! I need help with image uploads.

To start with I have this in the advanced preferences:

Image Directory: img

In the images tab:

Warning: cannot write to image directory
/hsphere/local/home/boptom/kdsplace.com/img/.
Please change file permissions to 777.

In daignostics I get:

Image directory is not writable: /hsphere/local/home/boptom/kdsplace.com/img ?
TTextpattern version: 4.0.4 (r1956)
Last Update: 2007-02-05 05:49:47/2007-02-05 05:31:21
Document root: /hsphere/local/home/boptom/kdsplace.com
$path_to_site: /hsphere/local/home/boptom/kdsplace.com
Textpattern path: /hsphere/local/home/boptom/kdsplace.com/textpattern
Permanent link mode: section_id_title
Temporary directory path: /tmp
Site URL: kdsplace.com
PHP version: 4.3.11
Register globals: 1
Server Local Time: 2007-02-25 15:48:18
MySQL: 4.1.20-max-log
Locale: en_GB.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers: 
Server OS: Linux 2.6.14.7
Active plugins: rss_admin_db_manager-4.3, wow_gallery_lib-0.6, wow_gallery-0.6, Gallery-1.2m
Pre-flight check: 
------------------------
Image directory is not writable: /hsphere/local/home/boptom/kdsplace.com/img
/hsphere/local/home/boptom/kdsplace.com/textpattern/setup/ still exists
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
------------------------

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

If i make a directory called ‘img’ at /hsphere/local/home/boptom/kdsplace.com/img and set permissions to 777 it seems to work however I thought the above settings should put images under /textpattern/img (which is where I want it).

Any ideas what is happening?

Thanks in advance.

Offline

#2 2007-02-25 21:57:47

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Images directory not pointing txp to the right place

Textpattern is doing what it’s told. If you want the image directory to be textpattern/img, set it to textpattern/img.


Alex

Offline

#3 2007-02-25 22:03:55

boptom
New Member
Registered: 2007-02-07
Posts: 4

Re: Images directory not pointing txp to the right place

Thanks for the quick reply!

When I initially installed textpattern, in the advanced prefs->image directory was

images

without any /. That didn’t work so I tried changing it to img with the same issue (didn’t think it would work but tried anyways).

However, the images directory is in /hsphere/local/home/boptom/kdsplace.com/textpattern/images on initial install rather than

/hsphere/local/home/boptom/kdsplace.com/images

Is that correct?

The real reason I ask is because when I put textpattern/img as the image directory, a lot of plugins seem to think the images are in

/hsphere/local/home/boptom/kdsplace.com/textpattern/textpattern/img

Am I doing something wrong?

Last edited by boptom (2007-02-25 22:12:14)

Offline

#4 2007-02-25 22:13:26

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Images directory not pointing txp to the right place

In a fresh install, the image dir preference will be images, which corresponds to the images directory in your public Textpattern root (path_to_site, in your case /hsphere/local/home/boptom/kdsplace.com/).

What exactly do you mean by “that didn’t work”?

What exactly do you mean by “the images directory is in /hsphere/local/home/boptom/kdsplace.com/textpattern/images on initial install”?

The “Image directory is not writable” message in diagnostics shows you where Textpattern expects to find the image directory.

Last edited by zem (2007-02-25 22:17:48)


Alex

Offline

#5 2007-02-25 22:25:24

boptom
New Member
Registered: 2007-02-07
Posts: 4

Re: Images directory not pointing txp to the right place

What I mean is on a fresh install, the image dir preference will be images. I thought this would correspond to /hsphere/local/home/boptom/kdsplace.com/textpattern/images

Anyways, if I change the images dir pref from Images to textpattern/images then all the images work and go to the /hsphere/local/home/boptom/kdsplace.com/textpattern/images directory.

However, all plugins which I have tried (to make a gallery) now think that the images directory is /hsphere/local/home/boptom/kdsplace.com/textpattern/textpattern/images.

Any ideas why? Are they just dodgy plugins?

Offline

#6 2007-02-26 00:20:58

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Images directory not pointing txp to the right place

boptom wrote:

What I mean is on a fresh install, the image dir preference will be images. I thought this would correspond to /hsphere/local/home/boptom/kdsplace.com/textpattern/images

No, it’s one level up from there.

Anyways, if I change the images dir pref from Images to textpattern/images then all the images work and go to the /hsphere/local/home/boptom/kdsplace.com/textpattern/images directory.

If a tag like <txp:image name="myimage.jpg" /> displays myimage.jpg as expected, then Textpattern is working correctly.

However, all plugins which I have tried (to make a gallery) now think that the images directory is /hsphere/local/home/boptom/kdsplace.com/textpattern/textpattern/images.

Any ideas why? Are they just dodgy plugins?

Most likely. The Troubleshooting area is for problems with Textpattern, you’ll need to contact the plugin authors for help with those.


Alex

Offline

#7 2007-02-26 07:12:58

boptom
New Member
Registered: 2007-02-07
Posts: 4

Re: Images directory not pointing txp to the right place

Ok, I will. Thanks for all your help.

Offline

Board footer

Powered by FluxBB