Loading...
 
Skip to main content

Architecture / Installation


Images not shown

Hello,

When I upload an image file through the edition window, TW inserts a suggested tag like {img src="img/wiki_up/filename.ext"}.

Later on, the tag of some images (don't know which ones, why nor when) change to {img src=show_image.php?id=nn} without human intervention.

- Why and when this change happens? Who decides it and actually makes the change?
- Does it mean that the image has been copied or moved to somewhere in the db?
- How can I prevent it? Should I?

In addition, a problem has arised: some users (not all) are not able to see some of the images tagged {img src=show_image.php?id=nn}. There is no mispelled name (the image actually is there), no "little crossed square" on the browser and the other images (the wiki_up... tagged ones) in the page are correctly shown.

The users have been instructed to try different browsers and the result is always the same, as if the image wasn't referenced in the page.

IMO, these symptomps point to the image and tag management, maybe also related to the db; it is not a file system matter since the image is shown to other users. Is it any way to debug it?

Thanks in advance.

P.S.: Oops, I'm talking about a TW 1.9.5 version.

> Hello,
>
> When I upload an image file through the edition window, TW inserts a suggested tag like {img src="img/wiki_up/filename.ext"}.
>
> Later on, the tag of some images (don't know which ones, why nor when) change to {img src=show_image.php?id=nn} without human intervention.
>
> - Why and when this change happens? Who decides it and actually makes the change?
> - Does it mean that the image has been copied or moved to somewhere in the db?
> - How can I prevent it? Should I?

It seems strange that these would change. In my experience, images uploaded at the wiki edit page continue to have their "img/wiki_up/..." addresses. I don't know any way the images could be copied or moved.

The "show_image" URL is used only for images in galleries, as far as I know. Are you sure the ones on your site with that type of address aren't actually in a gallery? (BTW, these images aren't necessarily in the database. There's an admin option to store images and files either in the database or file system directories, so "show_image" images could be (and maybe should be) in directories.)

What server operating system are you using? My installations are on Linux or BSD and I've had some problems with images on Windows servers, though not this particular problem. That could be a factor.

> In addition, a problem has arised: some users (not all) are not able to see some of the images tagged {img src=show_image.php?id=nn}....

I'm asking on #tikiwiki IRC but (due to my time zone) haven't gotten any replies yet.

-- Gary - themes.tw.oQuestion

Hello, Gary, and thanks again 😀.

Well, I've investigated deeper and have to correct some previous assessments:

Related to the tag changes:

- It's possible that this tag has not changed.
The referenced image file is actually stored in the directory and also in the gallery. Since I wrote the image upload instructions to use only the edition window, I presumed that the editors would'nt use the galleries... and there are a couple of images contained there. Thus, it's possible that this image was uploaded through the gallery and thus no misterious tag change would happen.

- The "store images" config option was set to DB.
I've changed it to "directory" (img/wiki_up) and moved all the images from db to directory through the config utility (button). This has generated a couple of files with "random hex" names. Don't like it much... but I'll rely on the TW integrity (and on my moving/migration procedures 😕).

- The operating system is Linux 2.4.20-31.9smp (RedHat?), MySql 4.1.19 DB and PHP 4.3.11, this is a shared account running on a hosted i686.


Related to the images not being shown:

- The problem was so stupid as the permissions to view image galleries to the editors group not being set.


Still have a new problem, I open a new topic to deal with.

Thanks for your support, I've learned a lot about tiki internals and about the way it works.😛