I have just upgraded from G2 to G2.0.2 But it seems to have messed up the PGtheme. I have tried changing the theme but it still displays the same error message on the main page (root):
Configuration Error: Missing Theme
Missing Theme
This album is configured to use the PGtheme theme, but it is either inactive, not installed, or incompatible. To fix this problem you can install or activate this theme or select another default theme.
Gallery version (not just "2"): 2.0.2
PHP version (e.g. 4.3.11):
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):
Database (e.g. MySql 4.0.11):
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 1.0): FF1.0.7
Posts: 32509
please download the latest pgtheme to your themes directory.
Posts: 37
I have tried this and the same error occours
Posts: 32509
what was your previous g2 version? i don't think it was 2.0. i guess it was a beta or release candidate.
you'll have to edit your database manually because the pg theme changed its name. pg <-> pgtheme.
edit the g2_PluginMap table, remove the pg rows.
edit the g2_PluginParameterMap table, reove the pg rows. change the row
update g2_PluginParameterMap SET g_parameterValue = 'matrix'
WHERE g_pluginType = 'module, g_pluginId = 'core' AND g_parameterName = 'default.theme';
then delete the db cache by browsing to yourGallery.com/lib/support/ enter your password, click there on cache and delete the db and template cache.
if that doesn't help, do the following:
download the latest nightly snapshot of g2.
again enter the upgrader. upgrade the core module. if you then still get the missing theme warning in the upgrade other modules step, just browse to main.php and you should get the option to change the default theme.
Posts: 37
I'm sorry valiant but that's flown over my head a bit. I had a look in phpMyAdmin 2.6.4-pl2 and selected gallery2 from the drop down list, clicked g2_PluginMap but after that I am a bit confused. What do you mean by 'remove the pg rows'?
Posts: 32509
remove the rows that have g_pluginId = pg or pgtheme.
Posts: 37
sorry I stil do not understand what you mean. What are rows? how do I remove them?
Posts: 32509
just execute these three queries:
delete from g2_PluginMap WHERE g_pluginId IN ('PGtheme', 'pg');
delete from g2_PluginParameterMap WHERE g_pluginId IN ('PGtheme', 'pg');
update g2_PluginParameterMap SET g_parameterValue = 'matrix' WHERE g_pluginType = 'module' AND g_pluginId = 'core' AND g_parameterName = 'default.theme';
then delete the db cache by browsing to yourGallery.com/lib/support/ enter your password, click there on cache and delete the db and template cache.
Posts: 37
Valiant, what you are suggesting just does not make sense to me. I do not understand how to do what you are suggesting. How do I execute a query?
Thanks for your help but plase bare in mind that I am not a web developer.
Posts: 32509
as you said you're using phpmyadmin. in phpmyadmin you can execute a sql query with the input field in the SQL tab.
Posts: 37
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE g_pluginType = 'module, g_pluginId = 'core' AND g_parameterName = 'default' at line 1
Posts: 37
I skipped that line and did the rest. Then went to /lib/support/ cleared the cache and got the following:
http://www.wizer.co.uk/gallery2
Posts: 32509
i've updated my previous post. please the 3 queries again.
Posts: 32509
and don't forget to clear the template cache afterwards.
Posts: 37
ok we got a bit further, that went fine but when IU tried to clear the cache, I got the following:
Warning: opendir(/home/wizer/g2data//cache/module/_all) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/rewrite) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/geturls) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/albumselect) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/archiveupload) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/captcha) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/cart) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Warning: opendir(/home/wizer/g2data//cache/module/colorpack) [function.opendir]: failed to open dir: Permission denied in /home/wizer/public_html/gallery2/lib/support/cache.php on line 23
Got about 50 lines of this.
Posts: 32509
then your filesystem permissions are incorrect.
ask your webhost to
chmod -R 777 /home/wizer/g2data/
Posts: 37
Got a bit further, it cleared the cache successfully but now it says access denied on the gallery2 directory. I have looked and the permissions are set to 777 also?
Now the images that I had linked from my gallery are now showing? Whats happening?
Posts: 37
PS: I have shell access
Posts: 32509
what's the exact error / message you get when you browse to gallery/main.php?
Posts: 37
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.wizer.co.uk Port 80
Posts: 32509
please check your apache server error log.
Posts: 37
[2006-01-17 05:21:16]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:16]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:16]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:15]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:15]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:15]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[2006-01-17 05:21:15]: error: file is writable by others: (/home/wizer/public_html/gallery2/main.php)
[Tue Jan 17 05:21:18 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/404.shtml
[Tue Jan 17 05:21:18 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/favicon.ico
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.122] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.122] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.122] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.122] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:16 2006] [error] [client 132.185.144.120] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 05:21:15 2006] [error] [client 132.185.144.120] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 05:21:15 2006] [error] [client 132.185.144.120] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 03:03:39 2006] [error] [client 66.249.65.109] File does not exist: /home/wizer/public_html/404.shtml
[Tue Jan 17 03:03:39 2006] [error] [client 66.249.65.109] File does not exist: /home/wizer/public_html/robots.txt
[Tue Jan 17 02:58:07 2006] [error] [client 66.249.65.109] File does not exist: /home/wizer/public_html/404.shtml
[Tue Jan 17 02:58:07 2006] [error] [client 66.249.65.109] script not found or unable to stat: /home/wizer/public_html/wp-polls.php
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] File does not exist: /home/wizer/public_html/500.shtml
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] Premature end of script headers: /home/wizer/public_html/gallery2/main.php
[Tue Jan 17 02:15:08 2006] [error] [client 84.66.241.185] File does not exist: /home/wizer/public_html/500.shtml
Posts: 37
there is a lot more like that
Posts: 32509
please check:
FAQ: How can I make sure that my installation files are all intact?
and please post a phpinfo link.
Posts: 37
Thank you very much for trying to help me but it was making no sense what so ever. I decided to reinstall Gallery2 and now have it back up and running. Is there a way to import the backup albums folder to g2data or do I have to reupload all the images.
Posts: 32509
FAQ: How can I export data from one G2 to another G2 installation?