[Carbon theme] search not working

isaiah

Joined: 2006-04-28
Posts: 6
Posted: Mon, 2006-05-08 09:15

Security Violation:

The action you attempted is not permitted.

error detail:

Error (ERROR_BAD_PARAMETER) : Smarty error: unable to read resource: "gallery:themes/carbon/templates/topNavigation.tpl"
in modules/core/classes/GallerySmarty.class at line 109 (gallerycoreapi::error) 
in lib/smarty/Smarty.class.php at line 1584 (gallerysmarty::trigger_error) 
in lib/smarty/Smarty.class.php at line 1382 (gallerysmarty::_fetch_resource_info) 
in lib/smarty/Smarty.class.php at line 1858 (gallerysmarty::_is_compiled) 
in modules/core/classes/GalleryTemplateAdapter.class at line 659 (gallerysmarty::_smarty_include) 
in g2data/smarty/templates_c/%%1784881791/%%5C^5CC^5CCDD253%%SearchScan.tpl.php at line 20 (gallerytemplateadapter::theme) 
in lib/smarty/Smarty.class.php at line 1861
in g2data/smarty/templates_c/%%1784881791/%%B2^B28^B28F6743%%module.tpl.php at line 7 (gallerysmarty::_smarty_include) 
in lib/smarty/Smarty.class.php at line 1861
in modules/core/classes/GalleryTemplateAdapter.class at line 659 (gallerysmarty::_smarty_include) 
in g2data/smarty/templates_c/%%1784881791/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 88 (gallerytemplateadapter::theme) 
in lib/smarty/Smarty.class.php at line 1258
in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch) 
in modules/core/classes/GalleryTemplate.class at line 206 (gallerysmarty::fetch) 
in main.php at line 418 (gallerytemplate::fetch) 
in main.php at line 87
in main.php at line 80

I don't find topNavigation.tpl in templates dir of carbon.
Please help me.
Thank you very much!!

System Information:

Gallery version  2.1.1  
PHP version  4.4.2 apache  
Webserver  Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.2 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a  
Database  mysql 4.1.18-standard  
Toolkits  Gd  
Operating system  Linux detroit.dnsdc4.com 2.4.21-37.0.1.ELsmp #1 SMP Thu Jan 19 14:33:18 EST 2006 i686  
Browser  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Tue, 2006-05-09 09:54

Were you using another theme before? If so can you try to delete template cache?

http://www.mincel.com/carbon
http://www.mincel.com/gallery

 
isaiah

Joined: 2006-04-28
Posts: 6
Posted: Tue, 2006-05-09 11:29

I have ever used another theme before. After deleting template cache, the search is still not working. You can go my album, then test...

Another question...How can I set album action is only used by admin?
I searched the relative topics, but they seem to be not useful.
http://gallery.menalto.com/node/31527?highlight=album%2Caction

I don't find albumBody.tpl in /gallery2/themes/carbon/templates/.

Thank you very much.
--

My album:
http://www.phosphor.extremepcgamerz.com/gallery2/

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Tue, 2006-05-09 13:29

It is possible that Search error is caused by a plugin. I could not find any useful information about this error.

Quote:
Another question...How can I set album action is only used by admin?

It is album.tpl file. Normally Gallery decides which action is to be displayed. I think, you need to put some permission check for line 143 in album.tpl file.

http://www.mincel.com/carbon
http://www.mincel.com/gallery

 
isaiah

Joined: 2006-04-28
Posts: 6
Posted: Tue, 2006-05-09 14:40
mincel wrote:
It is possible that Search error is caused by a plugin.

the other plugins that I install:

Google Map Module  v0.5.0g
MPlayer  v1.0.3
Swf  v1.0
About Page  v0.0.1
Contact Owner  v0.0.1
Html  v0.9.2
Links Page  v0.0.1 
Rotate Thumbnails  v0.5.1
Statistics  v0.2.1
mincel wrote:
I think, you need to put some permission check for line 143 in album.tpl file.

Please tell me how to change it.
Thanks.

 
mincel
mincel's picture

Joined: 2005-10-14
Posts: 134
Posted: Tue, 2006-05-09 17:15

For search problem I found this: http://gallery.menalto.com/node/48682?highlight=search%2CtopNavigation.tpl

For link try changing,

{g->block type="core.ItemLinks" item=$child links=$child.itemLinks}

to

{if $user.isRegisteredUser}
  {g->block type="core.ItemLinks" item=$child links=$child.itemLinks}
{/if}

http://www.mincel.com/carbon
http://www.mincel.com/gallery

 
isaiah

Joined: 2006-04-28
Posts: 6
Posted: Thu, 2006-05-11 15:29

Thank you, mincel. I solved it.
Nature theme causes error.

 
Stymnus

Joined: 2006-05-20
Posts: 6
Posted: Wed, 2006-05-24 06:09

For those still puzzling this one out...

For a quick and dirty workaround, you can simply copy the nature theme template topNavigation.tpl to the templates directory of the theme that is generating the error. It's not present, and for some reason the search function is trying to find it. It doesn't get shown, it just appeases the search code :)