Loading...
 
Architecture / Installation

Architecture / Installation


Gallery problem, image won't show

posts: 8 United States

Hi,

After uploaded succesfully the jpeg files into a gallery, it won't show anything either thumbnails or pictures itself. I can upload a different thumbnail picture, incorporated via wiki page without problem.
I can see the said thumbnail on my homepage. I have all neccessary permission. I've tried both GD and Imagick format, both upload in DB and directory. For saving in directory, I saw the uploaded file,
in the wrong place: I set it to .../tiki/var/images, but it saves it under ../tiki/var/.
I am using linux, apache2, php 4.3, and even PEAR-DB, but with no difference. I have tried it under admin and user. Am using Eta Carinae, v1.7.1.1
In gallery, clicking gallery name, gives me a highlighted word thumbnail, with picture name underneath. Selecting thumbnail, mozilla spawn a small window with nothing, except moving left or right arrow.

Thank you for reading, hope to have some result soon.

posts: 224 Ireland

Check that you actually have the GD and/or Imagick extensions installed. You can easily do this by running the 'phpinfo' option in the admin panel.

When specifying the pathname of the location to store images on the local disk, you MUST end the path name with a slash. This is important! So in your case it should be:

/tiki/var/images/

Also it is better to use full path names than to use relative references like '../'


posts: 8 United States

Hi
> patvdv:

> Check that you actually have the GD and/or Imagick extensions installed. You can easily do this by running the 'phpinfo' option in the admin panel.
>
Indeed, phpinfo showed it was compiled without gd, after rebuilding mod_php, and php, restart apache2, and I now have images. Thank you very much for your help.

> When specifying the pathname of the location to store images on the local disk, you MUST end the path name with a slash. This is important! So in your case it should be:
>
> /tiki/var/images/
>
Yes, I forgot the ending slash. :-)

> Also it is better to use full path names than to use relative references like '../'
Is there a different on saving to DB vs to directory?

Again thank you. :-)


posts: 224 Ireland

The difference between saving images, file, trackers on disk or in the database is by preference. If you expect a high volume of objects to be saved I would advise to use disk storage or else your MySQL will grow to very big sizes.

Regards,

Pat.


posts: 8 United States

> patvdv:
Hi,

Now I have another, but related problem. At first I can upload 4
pictures, everything seem fine. But then it degraded. Pressing "upload"
won't generate anything. (Usually there is a progress bar at bottom right of
mozilla) In this case, it just say "done" quickly right after I press uploaded.
But on the server side, a file with "phpxxxxxx," where x is either letter or
number", is in /tmp. And apache has an

"[Fri Sep 05 23:12:37 2003] 
[notice] child pid 1045 exit signal Segmentation fault (11)"

in error_log.
In ten tries, with different galleries, I can get maybe 2 images, all files
seem to go to /tmp, and failed attemptes got Segmentation fault in
error_log from apache.
Rebooting, rebuilding apache, php and mod_php, and restarting don't
make any different.

Thanks again for helping.


posts: 224 Ireland

Have you checked that your php.ini file has acceptable values for uploading files and running Tiki. Maybe the problem could be there.

Regards,

Pat.


posts: 8 United States

> patvdv:
Hi,

> Have you checked that your php.ini file has acceptable values for uploading files and running Tiki. Maybe the problem could be there.
>
Yes, my old upload_max_filesize was 2M, and the new value is 20M, eventhough my files are nowhere near those limits.

As for acceptable value for tiki, I don't know where or what it is.
Still baffle about this. Not a lot of others have similar problems, so it must be my setup. Is there a detailed dependency requirement check list somewhere? 1.6 docs mentioned only briefly.

How do I debug, stepping into php? so I can see exactly where apache log the segfault?

On another hand, only gd is enable during compilation, I don't see where Imagick extension, is it also another compilation flag? if so what it is?

Again thx for helping.

> Regards,
>
> Pat.


posts: 224 Ireland

There's not really a detailed setting list. You may want to check your memory parameters in php.ini (memory_limit) as Tiki can be very memory intensive. Sorry can't help you with 'debugging' PHP, that's a bit over my head.

Regards,

Pat.


posts: 8 United States

> patvdv:
> There's not really a detailed setting list.
If not detailed but a few important setting needed for tiki related php's?

> memory parameters in php.ini (memory_limit) as Tiki can be very
> memory intensive.
I increase it from 8M to 256M, without any changes in outcome.

> Regards,
I am really glad for all your help. :-)

>
> Pat.


posts: 224 Ireland

It is not necessary to put your PHP memory limit that high. After all, it is specifies the memory limit per process. This may sound weird but have you tried with a fresh Tiki v1.7 installation? There seems to be quite alot problems popping up with v1.7.1.1.

Regards,

Pat.


posts: 8 United States

> patvdv:
> It is not necessary to put your PHP memory limit that high. After all, >it is specifies the memory limit per process.
Yup, I tried to change from 8M to 80, seems to load ok 2 images, but then failed, then I moved it up all the way to 100, and then 256. Same result, now it's back to 16M.

> This may sound weird >but have you tried with a fresh Tiki v1.7 >installation? There seems to >be quite alot problems popping up with :v1.7.1.1.

By fresh, do you mean CVS? and how do I install a new one on top? just rerun the setup script and php again?

Thanks,
>
> Regards,
>
> Pat.


posts: 224 Ireland

No not a CVS version. I meant the stable 1.7 version that you can download from SF. If you have the luxury than start from scratch. If it works with Tiki 1.7 then at least you know it is not your Apache/PHP setup causing the problems.

Regards,

Pat.


posts: 8 United States

> patvdv:
Does this mean, I will loose all data from 1.7.1.1?

> No not a CVS version. I meant the stable 1.7 version that you can download from SF. If you have the luxury than start from scratch. If it works with Tiki 1.7 then at least you know it is not your Apache/PHP setup causing the problems.
>
> Regards,
>
> Pat.


posts: 224 Ireland

No if you want to keep your current database then just refresh all the Tiki files with the 1.7 version. Just make a full backup of your database and Tiki v1.7.1.1 installation first!

Regards,

Pat.


posts: 1001 Canada

Hi kio,
did you report your uploading bug on Bugs Reports?
If no that would be useful.


posts: 1 United States

I'm experiencing the same problem.

Uploaded JPG's don't show in the Image Gallery.

GD support is indeed compiled in my installed PHP 4.3.3.

GD Support, enabled
GD Version, bundled (2.0.15 compatible)
FreeType Support, enabled
FreeType Linkage, with freetype
T1Lib Support, enabled
GIF Read Support, enabled
JPG Support, enabled
PNG Support, enabled
WBMP Support, enabled
XBM Support, enabled

Could it be that TikiWiki is looking for GD binaries in a location it doesn't expect? All GD binaries (and other compiled in PHP extensions) are located "/usr/local/php/bin"


posts: 1 Venezuela

Hello,

I'm using the release 1.7.7 and I got the same problem. Digging in the files I found that one can solve the problem either by commenting the lines that check if $feature_galleries is other thing than "y" then dies or by adding a line with '$feature_galleries = "y";' just before the checking.

Seems like the variable is not being configured properly in tiki-setup.php. I really don't know, just guessing.

BTW, yes, "Admin -> Features -> Image Galleries" is enabled.

Well, I know that the post I am answering is a little old, but the problem still exists.

There are my 2 cents. ;-)

Greets,

Chirvo.

posts: 5 United States

This solution works.. But is a major hack. The $feature_galleries variable is not being passed correctly in a global context - this could be from having php configured without global vars enabled (recommended)

posts: 5 Japan
I have confirmed that by commenting out the code that you suggested that it fixes the problem. All images now show up. There must be some other solution though. Is it just that most everyone else using TikiWiki are installing it on servers that have the Global Variables setting turned on?

posts: 1001 Canada
Hum...chirvo seems to be reporting a very strange solution, but feel free to precise.

posts: 2881 United Kingdom

Id try disabling and reenabling the feature under the Admin Features screen. Ive never had a situation with Image Gallery problems, and I use them to manage all my digital cam pictures.

Damian


Page: 1/2  [Next]

Upcoming Events

No records to display

Menu