Category not showing in category list

Phoca Gallery - image gallery extension
SilencerNL
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Dec 2007, 16:08

I just installed Pho

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Please, let me know

Post by Jan »

Please, let me know your URL link to all categories (menu item url) or your site

Jan
If you find Phoca extensions useful, please support the project
SilencerNL
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Dec 2007, 16:08

Hey Jan,

Post 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...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

The following code I

Post 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
If you find Phoca extensions useful, please support the project
SilencerNL
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Dec 2007, 16:08

Hey Jan,

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, the following co

Post 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
If you find Phoca extensions useful, please support the project
SilencerNL
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Dec 2007, 16:08

Hey Jan,

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yod don't get d

Post 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
If you find Phoca extensions useful, please support the project
SilencerNL
Phoca Member
Phoca Member
Posts: 10
Joined: 17 Dec 2007, 16:08

Hey Jan,

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

???Do yo

Post 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 ???)
If you find Phoca extensions useful, please support the project
Post Reply