Can´t see and edit my categories after upgrade to 2.6.0

Phoca Gallery - image gallery extension
cookie
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 05 Dec 2009, 00:44

Can´t see and edit my categories after upgrade to 2.6.0

Post by cookie »

Hi,
I´ve just upgraded Phoca Gallery from 2.5.6 to 2.6.0, because I saw the picasa option is implemented now and because the editor gallery button is working now for me.

Updating went well, success was shown, but i can´t see and can´t edit my categories now.

The error is:
Warning: Invalid argument supplied for foreach() in /var/www/.../components/com_phocagallery/models/phocagallerycs.php on line 126

I´m running on the latest joomla version and everything else works well. MySQL and PHP are quite a bit old, but it´s upon my provider to update them, I can´t do that.

I have more than 1000 pictures in more then 200 categories
When I select pictures I can see all pictures and I can see the category names, where they resides in. If I click now on a category, I´ll get the same error as above.

What´s wrong? Any hint?

BTW What´s the common used language in this forum? I speak English, German and Czech, so I can post in any of these languages...

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

Re: Can´t see and edit my categories after upgrade to 2.6.0

Post by Jan »

Hi, check the tables and columns in your database (compare it with install.bak file which you can find in installation ZIP file). Check if all tables and all columns were installed.

Jan
If you find Phoca extensions useful, please support the project
cookie
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 05 Dec 2009, 00:44

Re: Can´t see and edit my categories after upgrade to 2.6.0

Post by cookie »

Jan,
hadn´t time to check, but just did it. All tables are ok, except one: phocagallery_user_category.
This table does not exist, instead phocagallery_user_category_tmp exists with three fields: id, catid and userid, and this table is empty.

BTW the phocagallery_user table is also empty.
phocagallery has 1118 entries and phocagallery_categories 225, both are ok, this is the exact number of photos and categories I have.

Any ideas, what I can do?
I´ve tried and copied phocagallery_user_category_tmp to phocagallery_user_category, so it does exist, but the error is still the same.

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

Re: Can´t see and edit my categories after upgrade to 2.6.0

Post by Jan »

Hi, this
phocagallery_user_category_tmp is obsolete table but it cannot be removed (because upgrading process need to have some information) so don't care about this table.

Seem all OK with your tables :idea: Did you check the columns? (I mean not rows) I mean checking the columns name with columns which you can see in install.bak file?
If you find Phoca extensions useful, please support the project
cookie
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 05 Dec 2009, 00:44

Re: Can´t see and edit my categories after upgrade to 2.6.0

Post by cookie »

Jan, as I just mentioned in my other post as a reply to dee and you, it works after an downgrade to gallery 2.5.8
Your version of phoca gallery starting with 2.6.0 isn´t compatible to mysql 4 anymore.
Bad for me, cause I can´t upgrade to mysql 5. Maybe a solution, that you make it compatible again? Phoca Gallery is the best imaging tool I´ve found for joomla, I like it very much, but i can´t use your newer version.

BTW thanks for your replies, without the hints, I would never solve the problem

Ahoj
Martin
cricrist
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Feb 2010, 02:42

Re: +1

Post by cricrist »

Hi,
Just to say that I have exactly the same problem (error messages you've mentionned)and i've downgraded to phocagallery 2.5.8.
My mysql version is worth than yours, it's 3.23, but as far as now I've always succeeded in installing phocagallery. :cry:
Hope to find an issue...
Post Reply