ERROR: 1146 after upgrade to Joomla 3.3.0

Phoca Gallery - image gallery extension
zunflaz
Phoca Member
Phoca Member
Posts: 15
Joined: 02 Feb 2014, 11:34

ERROR: 1146 after upgrade to Joomla 3.3.0

Post by zunflaz »

Good morning,

I've got a problem with phoca gallery after upgrading my Joomla to a 3.3.0 version.
After upgrading I upgrade phoca gallery too. My actual version is 4.1.1

In administrator backend I have the possibilty to do everything without problems, uploading pictures and doing everything correctly.

In front end, when I click in photo section in my website I'm linked in this error:

ERROR: 1146 - TABLE 'SQL285341_4.ALE17_PHOCAGALLERY_STYLES' DOESN'T EXIST SQL=SELECT A.FILENAME AS FILENAME, A.TYPE AS TYPE, A.MENULINK AS MENULINK FROM ALE17_PHOCAGALLERY_STYLES AS A WHERE A.PUBLISHED = 1 ORDER BY A.TYPE, A.ORDERING ASC

What should I do?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by Jan »

Hi, the table phocagallery_styles is not set in your database, so you need to reinstall Phoca Gallery or add the table manually:
https://www.phoca.cz/documents/16-joomla ... ent-errors
https://www.phoca.cz/documents/2-phoca-g ... em-solving
Jan
If you find Phoca extensions useful, please support the project
xandi
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Jun 2014, 20:56

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by xandi »

I have the same problem. It's irritating that the backend shows everything's ok but the newly created link doesn't work. The solution offered by Jan is not very useful, because there is no install.bak in the root of the com_phocagallery_v4.1.1 - file I downloaded today. Is there any other possibility to complete the database?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by Jan »

Hi, the guide about install.bak is for previous versions - since Joomla! 3 and Phoca Gallery 4, there is no more install.bak but you can find the sql file in standard folder:

install/sql/mysql/install.utf8.sql

Jan
If you find Phoca extensions useful, please support the project
xandi
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 06 Jun 2014, 20:56

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by xandi »

Thanks a lot, now it works!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
zunflaz
Phoca Member
Phoca Member
Posts: 15
Joined: 02 Feb 2014, 11:34

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by zunflaz »

Greate, now it works
joaojhb
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Jun 2014, 18:01

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by joaojhb »

Hi,

How, exactly can I restore or import the file 'install/sql/mysql/install.utf8.sql'? Its direct in 'import' of PHPmyAdmin?

I'm affraid to remove my data if I do something wrong...

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

Re: ERROR: 1146 after upgrade to Joomla 3.3.0

Post by Jan »

Hi, you can copy and paste the sql query and run it in phpMyAdmin - yes this will overwrite all data in Phoca Gallery tables.

Always you should do backup before running sql queries in your database :idea:

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