images not showing under admin panel

Phoca Gallery - image gallery extension
rikun
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Jun 2009, 08:55

images not showing under admin panel

Post by rikun »

The whole gallery works great. The one problem that I'm having is that when I add an image to a category, it doesn't show up in the list of images in the admin panel, but the images are viewable if you view them via the gallery. I was wondering if anyone else has had this problem. Thanks.
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: images not showing under admin panel

Post by caro84g »

Hi,

are your (category) filters turned on in the image overview? And there is pagination, so you could check your second page.

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
rikun
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Jun 2009, 08:55

Re: images not showing under admin panel

Post by rikun »

No, I don't have any categories selected; and I don't see any link to a second page.
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: images not showing under admin panel

Post by caro84g »

and do you see the images when you select the specific category?

P.S. on the bottom of the page you should see a 'display number'. If you set this to all do you see the images then?

Regards, Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
Naddel
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Feb 2008, 00:52

Re: images not showing under admin panel

Post by Naddel »

hi,
i had the same problem. there seems to be an error in line 141 of administrator/components/com_phocagallery/models/phocagallerys.php
should be:

Code: Select all

. ' LEFT JOIN #__phocagallery_votes_statistics AS v ON v.id = a.id'
was:

Code: Select all

. ' LEFT JOIN #__phocagallery_img_votes_statistics AS v ON v.imgid = a.id'
the same error is in administrator/components/com_phocagallery/models/phocagalleryraimg.php:42 too.

nevertheless, i updated from 2.2.4 on another server, and now i only get a white page in the admin area if i want to view the images...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not showing under admin panel

Post by Jan »

Hi, this is right:

Code: Select all

. ' LEFT JOIN #__phocagallery_img_votes_statistics AS v ON v.imgid = a.id'
because in list of images you should see the rating of images ( #__phocagallery_img_votes_statistics ) not rating of categories ( #__phocagallery_votes_statistics )


Check if this table (#__phocagallery_img_votes_statistics) exists in your database)

Jan
If you find Phoca extensions useful, please support the project
Naddel
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Feb 2008, 00:52

Re: images not showing under admin panel

Post by Naddel »

hi jan,
this is not true for 2.5 alfa. there is no #__phocagallery_img_votes_statistics table created, only #__phocagallery_votes_statistics. perhaps something is wrong with the installer (install.sql is empty...).

after upgrading from 2.2.4 there's #__phocagallery_img_votes_statistics, but i get a white page on images page...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not showing under admin panel

Post by Jan »

Hi, there is some problem while creating the table (in installation process), but the sql query in model is correct.

please, see your error log or enable error reporting on to know the problem.

Jan
If you find Phoca extensions useful, please support the project
Naddel
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 21 Feb 2008, 00:52

Re: images not showing under admin panel

Post by Naddel »

works fine with 2.5 beta2 now :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: images not showing under admin panel

Post by Jan »

Great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply