[PG Theme] Workaround for 2.1 RC1 and RC2 until Pedro releases an official new version

LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Fri, 2006-03-10 19:59

I use the recent themes forum post :

Quote:
Quote superstu:
Hi, I just installed the theme today from the following file: PGtheme_V1.0RC7.zip

When I installed it I get this error

Incompatible theme!
Core API Required: 6.5 (available: 7.1)
Theme API Required: 2.1 (available: 2.3)

Can anyone help?
Thanks
I just upgraded from 2.0.3 to 2.1 RC2 and I am experiencing the same issue at the same time up graded to PG Theme 1.0.RC7 and now I am getting this error. I notice that somebody posted this earlier and comments just said to look at other replies but I did not see any that applied.
All other themes seem to be working correctly.

Please help.

Paul

as excuse to start this thread ...

to be able to use PGtheme with Gallery 2.1 (RC1 and/or RC2) please ensure to have installed the RC7 and all patches from the PGtheme thread in the modules forum and then copy
http://gallery.menalto.com/files/theme.inc.txt
to your PGtheme folder.

Hope this helps to get the discussion moved to the correct place :)

That should make the trick,
CU
Lutz

Gallery version = 2.1-rc-2 core 1.0.33
PHP version=5.1.2 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database=mysql 5.0.18-nt-log
Gallery-URL=http://lf-photodesign.de

 
jumo
jumo's picture

Joined: 2002-08-19
Posts: 24
Posted: Fri, 2006-03-24 01:00

Works the patch for the final 2.1 version too?

 
toytronics

Joined: 2006-03-23
Posts: 1
Posted: Fri, 2006-03-24 02:52

After replacing the theme.inc, it was able to be installed. However, I do receive Line 32 Char 1 Error: rightoptions is undefined after associating the PG theme to an album. Let me know how to correct the problem. Thanks.

 
elkiehound

Joined: 2005-10-31
Posts: 11
Posted: Fri, 2006-03-24 19:21

since upgrading to 2.1 my pg theme is not working. I tried replacing the theme.inc in the pgtheme folder with the data above, however i get this error when doing the upgrade process:

Error (ERROR_BAD_PLUGIN) : Unknown theme version 0.10.6
in themes/PGtheme/theme.inc at line 830 (PGthemeTheme::error)
in modules/core/classes/GalleryTheme.class at line 576 (PGthemeTheme::upgrade)
in upgrade/steps/UpgradeOtherModulesStep.class at line 118 (PGthemeTheme::installOrUpgrade)
in upgrade/index.php at line 221 (UpgradeOtherModulesStep::processRequest)

Please helpe

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Mon, 2006-03-27 09:34

elkiehound,

from which version (of PGtheme) did you upgrade? - you might probably be able to add the lines et the end of theme.inc to include your old version.

Gallery version = 2.1 core 1.1.0
PHP version = 5.1.1 apache2handler
Webserver = Apache/2.2.0 (Win32) DAV/2 PHP/5.1.2 mod_ssl/2.2.0 OpenSSL/0.9.8a
Database = mysql 5.0.18-nt-log,
Theme=PGtheme,
Gallery-URL=http://lf-photodesign.de

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-03-29 06:28

LFrank, you might consider removing upgrade() from theme.inc at some point.. the basic G2 themes no longer use this function, as adding new items to setStandardSettings in the constructor will add those settings on upgrade, and that's about all theme upgrades usually do.