Forumlar / Cotonti / Support / can't get into admin panel after 0.0.6 update

12>>>

KillerSneak
#1 2009-07-21 06:46
Fatal error: Uncaught exception 'Exception' with message 'Template file not found: ./plugins/admin/admin.home.inc.tpl' in /home/donotarg/public_html/system/xtemplate.php:154 Stack trace: #0 /home/donotarg/public_html/system/xtemplate.php(39): XTemplate->restart('./plugins/admin...') #1 /home/donotarg/public_html/system/core/admin/admin.home.inc.php(14): XTemplate->__construct('./plugins/admin...') #2 /home/donotarg/public_html/system/core/admin/admin.inc.php(80): require_once('/home/donotarg/...') #3 /home/donotarg/public_html/admin.php(27): require_once('/home/donotarg/...') #4 {main} thrown in /home/donotarg/public_html/system/xtemplate.php on line 154

This is the error i get after installing 0.0.6 (update from 0.0.5) when trying to get into the admin panel.
Dayver
#2 2009-07-21 07:09
folder skins/yor_skin/admin/ placed in your skin? (if this not sed-light)
Pavlo Tkachenko aka Dayver
KillerSneak
#3 2009-07-21 07:24
Yeah SED-Ligh i have chosen in my Profile -> the website is in maintenace mode bacause I'm updating. But i can get into the admin panel even when i choose SED-light as standart (before i convert my own template.

Added 19 minutes later:

Well I'm going to sleep now. Seems i have to redo the whole template again (convert SED-light to my own skin again, I knew when i started this whole redesign thng would be for the worse of CONTONTI, i mean who ever cares about Admin section being skinnable? Your there to administrate not for looking at the nice gfx and stuff imho)

Added 39 seconds later:

Fatal error: Uncaught exception 'Exception' with message 'Template file not found: skins/DNA-new/admin.tpl' in /home/donotarg/public_html/system/xtemplate.php:154 Stack trace: #0 /home/donotarg/public_html/system/xtemplate.php(39): XTemplate->restart('skins/DNA-new/a...') #1 /home/donotarg/public_html/system/core/admin/admin.inc.php(90): XTemplate->__construct('skins/DNA-new/a...') #2 /home/donotarg/public_html/admin.php(27): require_once('/home/donotarg/...') #3 {main} thrown in /home/donotarg/public_html/system/xtemplate.php on line 154

Bu konu KillerSneak tarafından düzenlendi(2009-07-21 07:44, 14 yıllar önce)
robofreak111
#4 2009-07-21 07:51
looks like somthings up with XTemplate...
Trustmaster
#5 2009-07-21 14:53
It's due to files missing or something wasn't uploaded right. But you know what? I'm tired of complaints about admin part and the stupid copying of sed-light/admin. I'm going to split it into a separate skin for Admin panel in 0.0.7.
May the Source be with you!
tensh
#6 2009-07-21 15:11
Hmm, it would be quite cool :) With its own admin css and even header/footer, the admin section might look completely different than the rest of the site. I'll say it once again: Very Cool!

Added 2 minutes later:

KillerSneak, just copy the admin folder with all tpl files inside into every of your skin folder. Note that skin folders have different structure now.
pieter
#7 2009-07-21 15:14
@Trustmaster. Let us not start again. Otherwise we need to convert the skins AGAIN

@all, It is very easy to change.

- Upload admin dir of sed-light to your skin dir and you only need to change /skins/YOURSKIN/admin/admin.tpl to your design.
- Delete all admin pages from root dir of the skin.
- move all plugin-tpls to /skins/YOURSKIN/plugins
- delete plugin-tpls from root dir of the skin
- You need to change a block in page.add.tpl and page.edit.tpl (There are new submit buttons, search for submit)

These are the mayor parts I guess.

The errors from Xtemplate are most of the times because of spaces that ar not in the original file.
eg.
<!-- SOMETHING--> and should be <!-- SOMETHING -->

---------
Lang files are also changed. And it is not easy to adapt all lang-files.
We started from zero.
- System lang files
- Skin lang files
- Plugin lang files
... can we help you ...

Bu konu pieter tarafından düzenlendi(2009-07-21 15:45, 14 yıllar önce)
tensh
#8 2009-07-21 15:20
Now as I think about it more... then I'm against making separate admin skin, because for each skin for the frontend, the admin section would have the same skin.

But I'm all for adding admin.header.tpl, admin.footer.tpl and admin.css! :-D
pieter
#9 2009-07-21 15:24
Admin is not the same, because the admin dir is insite the skin directory

/skins/yourskin/admin

Every site can have a different.

Ps I made a typo in the post above, sorry for the confusion, I have edited it.
/skins/admin/ should be /skins/yourskins/admin
... can we help you ...

Bu konu pieter tarafından düzenlendi(2009-07-21 15:45, 14 yıllar önce)
Trustmaster
#10 2009-07-21 15:50
Thinking it over more, admin skins are not that easy. So we'll keep them for later. Currently you can use admin subfolder as well as header.admin.tpl, footer.admin.tpl with $cfg['enablecustomhf'] = true.

Thanks pieter for explaining. Could you make that "Updating your skins to 0.0.6" tutorial and put it here?

I also think that files from Downloads/Skins sections should be updated and reuploaded.
May the Source be with you!
KillerSneak
#11 2009-07-21 22:11
Hi guys, everything is working now thanks for the responces. Seems during FTP upload some files were not updated? Are all files in 0.0.6 newer than the 0.0.5 files? As i set FTp to update only newer files...

I do have another issue now :( SEARCH function isn't working. I do have a quick img camp of the error that is shown for like half a second. Is there a way for me to attach the img to my post here ?

EDIT: I have tried writing a how-to for updating skins but it really isn't that easy to be honest. I had to update almost all TPL files to get most of the site working again with 0.0.6



Added 1 minute later:

Should i open a new Topic for the search issue so this one can be closed ?

Added 1 minute later:

# tensh : Hmm, it would be quite cool :) With its own admin css and even header/footer, the admin section might look completely different than the rest of the site. I'll say it once again: Very Cool!

Added 2 minutes later:

KillerSneak, just copy the admin folder with all tpl files inside into every of your skin folder. Note that skin folders have different structure now.
That won't work, as you will have some double files in your skin directory (admin.tpl / adminqv.tpl and some others if I'm not mistaken) if you do this all your SKINS will fail? As XTEMPLATE seems to scan all SKINS ?
Trustmaster
#12 2009-07-21 23:02
Which search plugin do you use?
May the Source be with you!
KillerSneak
#13 2009-07-21 23:26
The one that came with the 0.0.6 package?
Trustmaster
#14 2009-07-21 23:47
Could you enable me to see its output for a while? Because your site is in maintenance mode.
May the Source be with you!
KillerSneak
#15 2009-07-22 00:35
# Trustmaster : Could you enable me to see its output for a while? Because your site is in maintenance mode.
This is strange, i just got home from work and the search function is working fine now?? (didn't change anything before i left / posted the problem here)
I doubt that the VPN Tunnel we connect trough at work has anything todo with this...?

12>>>