Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Error on the technologies page #73

Closed
korhaldragonir opened this issue Oct 18, 2015 · 7 comments
Closed

Error on the technologies page #73

korhaldragonir opened this issue Oct 18, 2015 · 7 comments

Comments

@korhaldragonir
Copy link

Hi,

I noticed that I get an error each time I try to open the Technologies page:

USER ERROR

Message: Unable to load template extends 'layout.full.tpl|page.techTree.default.tpl'
File: /includes/libs/Smarty/sysplugins/smarty_internal_template.php
Line: 219
URL: https://MASKED/2moons/game.php?page=techtree
PHP-Version: 5.5.9-1ubuntu4.13
PHP-API: apache2handler
MySQL-Cleint-Version: 5.5.44
2Moons Version: 1.7.2127
Debug Backtrace:
#0 /includes/libs/Smarty/Smarty.class.php(820): Smarty_Internal_Template->render(true, false, true)

#1 /includes/libs/Smarty/Smarty.class.php(834): Smarty->fetch('extends:layout....', NULL, NULL, NULL, true)
#2 /includes/classes/class.template.php(149): Smarty->display('extends:layout....')
#3 /includes/pages/game/AbstractGamePage.class.php(260): template->display('extends:layout....')
#4 /includes/pages/game/ShowTechtreePage.class.php(88): AbstractGamePage->display('page.techTree.d...')
#5 /game.php(68): ShowTechtreePage->show()
#6 {main}

I don't have much experience with smarty so I am not sure where to look. Could you assist me or point me in the right direction. If I am able to fix it I will submit the patch.

Best Regards.

@jkroepke
Copy link
Owner

Hi.

what happens, if you clear the cache directory?

@korhaldragonir
Copy link
Author

Hi,

After clearing the Cache the error still persists.

@NexusNull
Copy link

this is an easy fix, you guys just have a typo in /includes/pages/game/ShowTechtreePage.class.php(88).
It calls something like TechTree and that is wrong!
I am not sure if the file is correct.

@korhaldragonir
Copy link
Author

Thanks that was it. Here is the patch that fixed it for me. http://pastebin.com/rEEK4ApY

@jkroepke
Copy link
Owner

Oh well. Hard to find this errors on windows machines!

@jkroepke
Copy link
Owner

Its fixed right now.

@korhaldragonir
Copy link
Author

True, I only had this issue on my live server which runs Linux. Windows is not case sensitive so it does not occur.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants