Page 1 of 2

I just installed Pho

Posted: 17 Dec 2007, 16:18
by SilencerNL
I just installed Phoca Gallery, and is shows great potential! It's already looking great.

I created a category and added a couple of pictures with no problems at all. When I create a menu-item directly to that category, is works like a charm.

But if I want to list all categories, and make a menu-item doing that, it just shows a blank page (with menu and all, just no category list).

I installed Joomla 1.5RC3.

What am I doing wrong?

Please, let me know

Posted: 17 Dec 2007, 16:27
by Jan
Please, let me know your URL link to all categories (menu item url) or your site

Jan

Hey Jan,

Posted: 17 Dec 2007, 23:43
by SilencerNL
Hey Jan,

Here's the link to my site: http://sonnega.eu/kls/index.php?option= ... s&Itemid=8

As you can see, when you click on the link 'Fotoalbum', it should show 2 categories (test and test2), but it shows none. I Also made a direct link to the category 'test', and that works without a problem.

If you need any more info, please let me know...

The following code I

Posted: 18 Dec 2007, 14:10
by Jan
The following code I found before Phoca Gallery displays categories:

<img src="/kls/images/stories/" alt="Phoca Gallery" align="""" hspace=""6"" /> <
/div>



There are errors: align="""" hspace=""6"". Try to remove this from your content, maybe it will help to display categories correctly...

jan

Hey Jan,

Posted: 18 Dec 2007, 15:05
by SilencerNL
Hey Jan,

Thank you for your response.

I really just can't find that peice of code that you are talking about... I checked my sourcecode, but that img tag is nowhere to be found.

I'm sure that I didnt add this myself, so it must be generated by the Phoca scripts. Also, you are talking about content, but I dont use a content item, I added the 2 pages directly from the menu manager (like told in your manual).

Roy

Hi, the following co

Posted: 18 Dec 2007, 15:49
by Jan
Hi, the following code is produced by: All Categories - Menu-Manager - Parameters Basic - Image ... you right, the code is produced by Phoca Gallery... I have fixed it, but the problem is, it worked for me with this error. Try to set Image to 'None selected' ...

If you want to fix the error with HTML code (displaying image):

Please try to download Phoca Gallery 1.2.0 zip file from:

https://www.phoca.cz/phocagallery/index. ... e=download

and copy these files to your Phoca Gallery component:
com_phocagallery_v1.2.0_beta.zip/front/views/categories/view.html.php
to:
joomla/components/com_phocagallery/views/categories/view.html.php

and

com_phocagallery_v1.2.0_beta.zip/front/views/categories/tmpl/default.php
to
joomla/components/com_phocagallery/views/categories/tmpl/default.php

Hey Jan,

Posted: 21 Dec 2007, 10:13
by SilencerNL
Hey Jan,

I've been doing some debugging, and I found the following:

in components/com_phocagallery/views/categories/tmpl/default.php, line 24, $this->categories is empty.

going deeper one step, in components/com_phocagallery/views/categories/view.html.php, line 48, $categories =& $this->get('data'); is also empty.

I didnt get any deeper, since im not a Joomla expert, I dont really understand the structure yet.

I made sure my 2 categories are published and accessable for everybody. Perhaps this helps you with finding out whats wrong? Perhaps there is an error in an sql script or something?

Yod don't get d

Posted: 21 Dec 2007, 19:59
by Jan
Yod don't get data from Model (MVC - Model, View, Controller), from database. Try to download zip file (1.2.0) and replace all files with files from zip file (you don't lose your data, because they are saved in database)

copy all files from zip file, from folder 'front' to:
joomla/components/com_phocagallery/ folder

and all other files (without 'language', 'other', 'front' folders) to:
joomla/administrator/components/com_phocagallery/ folder

$this->categories is empty because you are not displaying list of categories but only one category, I think.

Jan

Hey Jan,

Posted: 22 Dec 2007, 12:57
by SilencerNL
Hey Jan,

I tried overwriting all files with the newest zip file (1.2.0) but that didnt solve the problem.

Also, I tried uninstalling the component completely, and reinstall the newest package, but I still have the same problem. I addes a menu item showing all categories, but it shows nothing. I have 1 category with images, and 1 empty category.

???Do yo

Posted: 22 Dec 2007, 17:29
by Jan
???

Do you have enabled error reporting?
Look at your database, if there is a phocagallery table (I think, it is there, because you can add pictures,...)
If I try some URLs on your site with $_GET data, it seem like you don't have created any Phocagallery category (but without category you cannot add image, so there must be a category ???)