New User Having Image Problems

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Shirley Denton
Posts: 5
Joined: Tue 2. Nov 2004, 02:34
Location: USA

New User Having Image Problems

Post by Shirley Denton »

I am trying to include a random image in the header, but I'm having trouble getting it to appear .... 1.1-RC4

If I use {RANDOM:picture} and have the image in picture, it works. Likewise {IMAGE_LEFT:coreopsisleav.jpg} works and generates

<td colspan="4" style="height:200px;" ><img src="picture/coreopsisleav.jpg" width="800" height="200" border="0" alt="coreopsisleav.jpg" /></td>

However, if I create a subdirectory under picture and put the image there, neither
{RANDOM:picture/banner} nor {IMAGE_LEFT:banner/coreopsisleav.jpg} work. when I look at the generated code, there is nothing in my header.

<td colspan="4" style="height:200px;" ></td>

The examples given on the phpWCMS web site for replacement tags indicate that subdirectories can be used and give examples - why can't I use them? Permissions are 755 for pictures and 755 for the banner subdirectory, so it doesn't look like a permissions problem.

Any clues would be appreciated :roll:
Pappnase

Post by Pappnase »

hello

could you post a link!?
Shirley Denton
Posts: 5
Joined: Tue 2. Nov 2004, 02:34
Location: USA

Link

Post by Shirley Denton »

http://www.simple-grandeur.com/index.php

I've put the code into the main block so that I could put in both variants. Also added a third variant. It looks like the code gets generated it the image is in a directory/subdirectory that was created by Fanstasico during installation (picture or picture/upload) and that it does nothing if I created the subdirectory (picture/banner).

I created the subdirectory using the ftp program. Do I somehow have to have phpWCMS create it? If so, how? Do I somehow have to tell phpWCMS that the directory exists? Again, how?
Pappnase

Post by Pappnase »

hello shirley

when i look at the page i cant see any errers here it works fine!
wich version did you use!?
Shirley Denton
Posts: 5
Joined: Tue 2. Nov 2004, 02:34
Location: USA

Nope -- doesn't

Post by Shirley Denton »

If you look at the Text printed above each of the images in the main block, it tells you what the code was ---if it worked, you see the image

There are three printed lines
BANNER:picture
BANNER:picture/banner
BANNER:picture/upload

The result of the actual code follows each line.....You don't see an image after
BANNER:picture/banner

You'll see that NO code gets generated for it.

Banner:picture
and
Banner:picture/upload
work
Last edited by Shirley Denton on Thu 4. Nov 2004, 03:34, edited 1 time in total.
Neelix
Posts: 80
Joined: Wed 29. Sep 2004, 12:06
Location: España

Post by Neelix »

my Test with many sub-dirs is ok!

Code: Select all

  {RANDOM:picture}  [picture]<br>
  {RANDOM:picture/upload} [picture/upload]<br>
  {RANDOM:picture/sub} [picture/sub]<br>
  {RANDOM:picture/sub/sub2} [picture/sub/sub2]<br>
must be a permission problem :wink:
---part2:---
I see here 3images to...
---------
PS: I can't find to include an image as example - only as url :cry: - turn OFF?
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Shirley Denton
Posts: 5
Joined: Tue 2. Nov 2004, 02:34
Location: USA

Error Message Found -- Still No Clues

Post by Shirley Denton »

I found an error log -- the
{RANDOM:picture/banner}

results in the generation of this message:

[Wed Nov 3 19:51:45 2004] [error] [client 141.153.132.213] File does not exist: /usr/local/apache/htdocs/hcl/lh/image_request.php

This file ... /usr/local/apache/htdocs/hcl/lh/image_request.php ... (and this file path) are not in the space provided by my web host. Is this an Imagick file? A GD file? phpWCMS config is set for GD.

If it's fussing about "picture/banner" well I know the directory is there and that "banner" has permission 755

BTW - I have similar "no code generated" problem for
{IMAGE:banner/filename.jpg}
and get same error message posted. Similar to the RANDOM problem, if I put the image directly in picture, I don't get an error
{IMAGE:filename.jpg} works

I know "picture/banner/filename.jpg" exists and "filename.jpg" has permission 644 and is the same permission as picture/filename.jpg (the one that works)

:cry:
Neelix
Posts: 80
Joined: Wed 29. Sep 2004, 12:06
Location: España

Re: Error Message Found -- Still No Clues

Post by Neelix »

Shirley Denton wrote: ...
File does not exist: ...hcl/lh/image_request.php
...
:roll: It's looks like not phpwcms - I can't find this file in (my) whole phpwcms [Release 1.1-RC4 27-08-2004]
Erfahrung ist das, was man besitzt, kurz nach dem es gebraucht wurde.
Warning: I have no foggiest idea of English/German, but I do
-ha{p}{p}y day/night/dia/noche-
Post Reply