Loading...
 
Features / Usability

Features / Usability


Admin Access Broken. Smarty error.

posts: 9 United Kingdom

Hi there all. redface I made a shocking mistake and am completely perplexed by how to go forward.

I'm using tiki 1.7.5 and created a banner module - name: 'Use this space' which I assigned to be viewed by admin only. When it ran, the site crashed and I got the message:

Use this space

Fatal error: Smarty: in evaluated template line 1: syntax error: expecting '=' after attribute name 'Zone' (Smarty_Compiler.class.php, line 1379) in /home/directory/sitename.org/tiki/Smarty/Smarty_Compiler.class.php on line 1857


The problem is that I now cannot access the site as an administrator, which is exactly how I'd need to access it to correct the problem with the banner.

This is very embarrassing but can anyone think of a way I can get round this? I'm guessing if people know a back-door or hack on this they probably won't want to announce is here but do reply to me through this site if you can think of anything, Thankfully, the site is still is up but I'm in trouble if I can't get round this as I've been grappling with my host about incrementing the maximum script execution time for the php.ini so haven't been able to back-up for 2 weeks.

It occurs to me that if I could alter the style or tpl files in a particular way I could stop tiki trying to display the problematic module... Any thoughts?

Here's hoping someone can help!

Jacob



posts: 9 United Kingdom

biggrinSorted. Thank goodness,

A few small changes in PHPMyAdmin and I'm back up. Crikey I'm learning a lot using tikiwki.

posts: 131 Singapore

I had a similar prolem where I cannot access the admin page.W hile I was adding some codes to display a custom header page (add some pictures and wordings) in the Site Identity module, it crashed on me. The error display is

" Fatal error: Smarty error: in evaluated template line 1: syntax error: unclosed tag {tr} (opened line 1). (Smarty_Compiler.class.php, line 317) in c:\program files\easyphp1-7\www\tiki\lib\smarty\libs\Smarty.class.php on line 1088".


I found this thread which got me excited for a while....but alas I did not see here the steps required to unfix the problem. Can anybody help cos I am totally clueless about it?? I'm running tiki 1.9.0.
Thanks a million!!

-kwow

posts: 131 Singapore

Answering my own question.

I have managed to unfix the problem. Like it was mentioned above, make use of ))phpMyAdmin(( to fix the error. Since the error was caused by a badly created custom code in the Site Identity features and with the custome code option enable; I figure I have to turn that option off in order to fix it.

What I did was searched for "feature_sitemycode" field in mySQL and then turn it to "n". Presto....everything works for me again. Did not know it was that easy.....I have to say this has been a very good training practise....cool

--kwow


posts: 957

Ok (I was going to give you the same tip on using phpmyadmin to undo the cahnges manually), backup ddbb then, and upgrade to 1.8.5!
Good luck