lvthunder
Joined: 2003-09-12
Posts: 808
|
Posted: Sat, 2004-10-16 04:57
|
I deleted my Alpha 2 install including the database and g2data folder and installed Alpha 3. I then copied my modified theme and layout to the appropiate folders, but the layout doesn't show up in the admin panel. I then copied the layout.css.php file from the matrix layout to mine. It still didn't show up. I then copied layout.inc and replaced Matrix with my layout name. Does anyone have any ideas what went wrong.
Thanks,
|
|
Joined: 2002-05-21
Posts: 7994
|
Posted: Sat, 2004-10-16 23:12
|
Hm. Can you turn on buffered debug mode when you go to the Layouts site admin page and then look in the debug output to see if it's scanning your layout directory? It should look for any directory under gallery2/layouts that contains a file called "layout.inc" in it.
|
|
lvthunder
Joined: 2003-09-12
Posts: 808
|
Posted: Mon, 2004-10-18 04:14
|
OK I did that and here is what I got. Any ideas.
Thanks,
Smarty Debug Console
included templates & config files (load time in seconds):
gallery:templates/global.tpl (0.49360) (total)
gallery:modules/core/templates/SiteAdminHead.tpl (0.00491)
gallery:modules/core/templates/SiteAdmin.tpl (0.12934)
gallery:modules/core/templates/AdminLayouts.tpl (0.02350)
gallery:templates/debug.tpl (0.34971)
assigned template variables:
{$AdminLayouts} Array (3)
mode => config
layouts => Array (4)
matrix => Array (7)
active => 1
installed => 1
name => Matrix
description => Classic Gallery2 look and feel
version => 0.8
l10Domain => layouts_matrix
actions => Array (0)
hybrid => Array (7)
installed => 1
active => 0
name => Hybrid
description => Combined album/image/slideshow dynami...
version => 0.8
l10Domain => layouts_hybrid
actions => Array (1)
activate => 1
slider => Array (7)
installed => 1
active => 0
name => Slider
description => Image viewer/slideshow; subalbums/oth...
version => 0.8
l10Domain => layouts_slider
actions => Array (1)
activate => 1
tile => Array (7)
installed => 1
active => 0
name => Tile
description => Tile view of background image and ima...
version => 0.3
l10Domain => layouts_tile
actions => Array (1)
activate => 1
layoutId => empty
{$SCRIPT_NAME} /gallery2/main.php
{$SiteAdmin} Array (4)
subViewGroups => Array (5)
0 => Array (6)
0 => Array (4)
group => gallery
groupLabel => Gallery
name => General
view => core:AdminCore
1 => Array (4)
group => gallery
groupLabel => Gallery
name => Modules
view => core:AdminModules
2 => Array (4)
group => gallery
groupLabel => Gallery
name => Layouts
view => core:AdminLayouts
3 => Array (4)
group => gallery
groupLabel => Gallery
name => Users
view => core:AdminUsers
4 => Array (4)
group => gallery
groupLabel => Gallery
name => Groups
view => core:AdminGroups
5 => Array (4)
group => gallery
groupLabel => Gallery
name => Members
view => members:AdminMembers
1 => Array (2)
0 => Array (4)
group => toolkits
groupLabel => Graphics Toolkits
name => ImageMagick
view => imagemagick:AdminImageMagick
1 => Array (4)
group => toolkits
groupLabel => Graphics Toolkits
name => NetPBM
view => netpbm:AdminNetPbm
2 => Array (2)
0 => Array (4)
group => display
groupLabel => Display
name => Panorama
view => panorama:PanoramaSiteAdmin
1 => Array (4)
group => display
groupLabel => Display
name => Thumbnails
view => thumbnail:ThumbnailSiteAdmin
3 => Array (1)
0 => Array (4)
group => data
groupLabel => Extra Data
name => EXIF Parser
view => exif:AdminExif
4 => Array (1)
0 => Array (4)
group => import
groupLabel => Import
name => Gallery 1
view => migrate:SelectGallery
subViewName => core:AdminLayouts
viewBodyFile => modules/core/templates/AdminLayouts.tpl
viewL10Domain => modules_core
{$controller} core:AdminLayouts
{$form} Array (1)
formName => AdminLayouts
{$l10Domain} modules_core
{$main} Array (7)
viewHeadFile => modules/core/templates/SiteAdminHead.tpl
viewBodyFile => modules/core/templates/SiteAdmin.tpl
viewL10Domain => modules_core
debug => file_exists(/home/lvthund/gallery2/g2...
markupType => bbcode
validationUri => http%3A%2F%2Fwww.lvthunder.com%2Fgall...
gallery => Array (1)
version => 2.0-alpha-2 (Farva)
{$status} Array (0)
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)
[/code]
|
|
Joined: 2004-01-04
Posts: 8601
|
Posted: Mon, 2004-10-18 04:19
|
I think bharat was looking for the debug output at the bottom of the actual G2 page, not the contents of the popup window with smarty output.
|
|
lvthunder
Joined: 2003-09-12
Posts: 808
|
Posted: Mon, 2004-10-18 15:15
|
mindless wrote:
I think bharat was looking for the debug output at the bottom of the actual G2 page, not the contents of the popup window with smarty output.
Oh. I didn't see that until you mention it. Well here that is.
Gallery Debug Output
file_exists(/home/lvthund/gallery2/g2data/sessions/f5e2c366c373395a771ff00c5d894d5b)
clearstatcache()
filesize(/home/lvthund/gallery2/g2data/sessions/f5e2c366c373395a771ff00c5d894d5b)
fopen(/home/lvthund/gallery2/g2data/sessions/f5e2c366c373395a771ff00c5d894d5b,
rb, 0)
flock(Resource id #17, 6, )
fread(Resource id #17, 577)
flock(Resource id #17, 3, )
fclose(Resource id #17)
file_exists(/home/lvthund/gallery2/g2data/cache/module/core/0/0/0.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
file_exists(/home/lvthund/gallery2/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
[1098112364] can't guarantee 5 -- extending!
file_exists(/home/lvthund/gallery2/g2data/cache/entity/0/0/5.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/SiteAdmin.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
(mysql):
SELECT
g2_UserGroupMap.g_userId
FROM
g2_UserGroupMap
WHERE
g2_UserGroupMap.g_userId = 5
AND
g2_UserGroupMap.g_groupId = '2'
LIMIT 1
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/home/lvthund/public_html/gallery2/modules/core/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/debug/module.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/exif/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_exif ->
/home/lvthund/public_html/gallery2/modules/exif/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imageframe/module.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_imagemagick ->
/home/lvthund/public_html/gallery2/modules/imagemagick/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/members/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_members ->
/home/lvthund/public_html/gallery2/modules/members/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/migrate/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_migrate ->
/home/lvthund/public_html/gallery2/modules/migrate/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/netpbm/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_netpbm ->
/home/lvthund/public_html/gallery2/modules/netpbm/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/panorama/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_panorama ->
/home/lvthund/public_html/gallery2/modules/panorama/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/remote/module.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/thumbnail/module.inc)
realpath(/home/lvthund/public_html/gallery2/modules/core/classes/../../..)
Binding text domain: modules_thumbnail ->
/home/lvthund/public_html/gallery2/modules/thumbnail/locale
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../modules/uploadapplet/module.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/AdminLayouts.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/../../../modules/core/AdminLayouts.inc)
(mysql):
SELECT
g2_UserGroupMap.g_userId
FROM
g2_UserGroupMap
WHERE
g2_UserGroupMap.g_userId = 5
AND
g2_UserGroupMap.g_groupId = '2'
LIMIT 1
file_exists(/home/lvthund/gallery2/g2data/cache/layout/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/matrix/layout.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/hybrid/layout.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/slider/layout.inc)
file_exists(/home/lvthund/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/tile/layout.inc)
|
|
Joined: 2002-05-21
Posts: 7994
|
Posted: Tue, 2004-10-19 06:58
|
lvthunder wrote:
Gallery Debug Output
file_exists(/home/lvthund/gallery2/g2data/cache/layout/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
Oy! I bet it's because of this line -- we're loading the layout list from the cache. Try deleting the file listed above and then go back to the admin layouts page and see if your new layout appears (or if the behaviour is different).
|
|
Joined: 2004-01-04
Posts: 8601
|
Posted: Tue, 2004-10-19 15:05
|
bharat, doesn't the module cache refresh when you visit site admin / modules? I suppose the layout cache should refresh when you visit site admin / layouts.. (or if all plugins are cached together, visiting either should refresh the cache, right?)
|
|
Joined: 2003-01-04
Posts: 328
|
Posted: Tue, 2004-10-19 16:18
|
mindless, bharat, the "Site Admin > Modules" view already skips the cache when showing the module's list. I just did the same on "Site Admin > Layouts", so this problem should be fixed now.
lvthunder, if you can, re-install the latest G2 code (e.g. tomorrows CVS-snapshot) and see if it works better now.
|
|
lvthunder
Joined: 2003-09-12
Posts: 808
|
Posted: Tue, 2004-10-19 17:54
|
baschny wrote:
mindless, bharat, the "Site Admin > Modules" view already skips the cache when showing the module's list. I just did the same on "Site Admin > Layouts", so this problem should be fixed now.
lvthunder, if you can, re-install the latest G2 code (e.g. tomorrows CVS-snapshot) and see if it works better now.
To install tomorrows CVS-snapshot I would visit Chetan Sarva's snapshot page and download the file gallery2-2004-10-20.zip (Tomorrow that is since it's still today) or would I download gallery2-latest.zip.
Thanks,
|
|
Joined: 2003-01-04
Posts: 328
|
Posted: Tue, 2004-10-19 18:05
|
lvthunder, heh, I'm not sure when the snapshots are taken. The "-latest" is surely the one to try. My fix was added to the file modules/core/AdminLayouts.inc. Make sure this file has a current date (19th october) and you will be fine.
|
|
lvthunder
Joined: 2003-09-12
Posts: 808
|
Posted: Wed, 2004-10-20 21:55
|
Thanks it works now. Yesterday I used the script and deleted the cache and it showed up like bharat said it would. I then installed the latest CVS Snapshot this morning and it worked without deleteing the cache.
Thanks,
|
|