also blank screens

Phoca Gallery - image gallery extension
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

Hey I read the other

Post by mphilip »

Hey I read the other "blank screen" posts, but they didn't really help.

The problem:

* Clicking the "add image" button when adding a single image to a gallery only displays an empty popup.
* Using the "add multiple" does allow me to tick checkboxes in front of images in the phocagallery folder, but as soon as I hit "Save", all I'm left with is an entirely empty screen (no source). The URL of this screen is:

http://[path_to_my_joomla_site]/administrator/index.php?option=com_phocagallery

My system:

* Linux
* PHP 5.2.1
* GD enabled (via phpinfo())
* Joomla! 1.5 RC3

I've CHMODded everything to 777 (for now), so it should have enough permissions. Apache and PHP logs don't seem to complain, and I can't really find much debug data to run on..

Any suggestions?? (I can't fall back to PHP4, I'm running multiple sites on this machine, and recompiling PHP "with-gd" was scary enough.. ). I'm more than willing to supply additional information, because I need to implement some photobook in a native 1.5 Joomla! install (without legacy mode switched on).

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, on l

Post by Jan »

Hi,

on localhost, I am running php 5.1.6
on FreeBSD server php 5.2.4

I think, there should not be problem with PHP

Please, click on 'Add image' button with right mouse button and select 'Copy URL link' (in Firefox)

You should get something like:
...index.php?option=com_phocagallery&view=phocagalleryi&tmpl=component



Look at your 'images/phocagallery/' folders ... if it is emty, thumbnails were not created

possible reasons:
- no rights to write in your phocagallery folder: X
- no GD library working: X
- no enough memory: ???

Please, try some script which work with GD library... it can be enabled, but it can work incorrectly ???

Which version of Phoca Gallery do you use?

Jan
If you find Phoca extensions useful, please support the project
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

Fast reply

Post by mphilip »

Fast reply

The URL behind the "Add image" button is exactly what you mentioned:

http://[joomla_install_url]/administrator/index.php?option=com_phocagallery&view=phoc agalleryi&tmpl=component

When opened in a new tab or window (using right-click) it also results in an empty (white) page. Since I can't even select an image from the media gallery when using the (single) "Add image" button, I revert to the "add multiple" option, because there I can at least browse the phocagallery folder.

So I go to the "multiple add"; select an image; select a category and press "Save". Still get a blank screen of course.

When I check the phocagallery folder I see it did create a "thumbs" dir (777 rights), containing only a index.html file. There are no thumbs there..

So in summary: I think my rights are okay, GD might still be broken, and don't think it's a memory issue since I'm using very small jpegs to test with.

I think it makes sense to try and find some GD check php script. It might somehow be silently failing.. Any leads where I could find one? (I'll look myself too).

BTW I use the latest Phoca beta I downloaded today.

Thanks..

Matthijs
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

GD seems to be worki

Post by mphilip »

GD seems to be working:

http://clubsite.dexels.com/tmp/test_gd.php
http://clubsite.dexels.com/tmp/test_gd2.php

both render fine ...

Another interesting thing: as soon as I've hit "Save" after the displaying of the multiple images checkbox overview ("Multiple add") I can't open the "Gallery" item anymore. Clicking on the "Phoca Gallery -> Gallery" menu-item results in the same empty page.

This means something has been added to the database, a check in the jos_phocagallery table confirms this. So the script fails somewhere after retrieving the image rows from the db..
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

It appears to die on

Post by mphilip »

It appears to die on the following constructions:

$this->get('images') and
$this->get('folders')

in the

/administrator/components/com_phocagallery/views/phocagalleryi/view.html.php

file.. still have to figure out what these do..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

$this->get('images')
$this->get('folders')


Here, you get data from model: models/phocagalleryi.php. In this model, you get all data (folders, images) which you have saved in 'joomla/images' folder...

see function getList() in models/phocagalleryi.php
If you find Phoca extensions useful, please support the project
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

Got the problem fixe

Post by mphilip »

Got the problem fixed. Although my phpinfo() said I had GD support, actually calling one the "ImageCreateFromJPEG" (or other file type) functions, threw a "undefined function" error.

Your "imageMagic()" function failed silently, so I couldn't see that at first.

I reconfigured php again, this time including the

'--with-png' '--with-png-dir' '--with-jpeg' '--with-jpeg-dir' '--enable-exif' ' options

Which seemed to do the trick.. (if you're on linux don't forget to 'make clean'!)

I like the way you incorporated the gallery into the J!1.5 way of doing things. It's really neat. Keep it up, I'll definitely check back here later!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

It is great, thank y

Post by Jan »

It is great, thank you for your info, it can help other users too.
If you find Phoca extensions useful, please support the project
MPol
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Dec 2007, 23:58

Hello,I&

Post by MPol »

Hello,

I've got the same problem, yesterday everything worked great. And today the same problem appears.

mphilip, you found the sollution for this. Maybe this is a dumb question, but where can I reconfigure the PHP settings. The one's with '--with-png' etc.

I don't have my one webserver, my Joomla site is running by an ISP. And my knowledge of PHP is not so great... Please help...
mphilip
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 26 Nov 2007, 16:47

Hello MPol,

Post by mphilip »

Hello MPol,

I'm afraid you *do* need administrator privileges on your webserver in order to do such a thing. If you are on a shared machine, all you could do is contact your ISP and ask if they can do this for you. They'll know how (depends whether it's a windows or a linux machine...)
Chances are they won't be able to help you, because it might affect other websites running on the same machine. If so you'll need a dedicated host, which in turn is more expensive.

Good luck!
Post Reply