Quote:
| Warning: Template "TEMPLATE_NAME" does not exist! |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| [SOLVED] Warning: Template "NAME" does not exist!
Pligg Beta 9.9.5 cannot switch template using settemplate.php. When you type in your browser: http://domain.com/settemplate.php?template=yget or whatever template you will used it will show an error: Quote:
__________________ Join our Pligg Template Club now while prices are still cheap! |
| ||||
|
Hi cmstheme Are you sure that the template_details.php is correct? I'm using 9.9.5 and have no problem switching in between templates.
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| ||||
|
My default template is a custom one. Then when I switched to "yget" I got the error. Here's the unmodified template_details.php of yget: PHP Code: My Pligg 9.9.5 is a fresh install.
__________________ Join our Pligg Template Club now while prices are still cheap! |
| ||||
|
I still can't recreate this.. So can you give us some more details so I can see if I can't recreate this and see whats going on. Are you using the template management module to switch, or are you switching by the standard admin>config> template> method? Are you able to switch by using the settemplate.php?template=templatename method? Thanks
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| ||||
|
The error is when you change template by cookie only: http://domain.com/settemplate.php?template=yget I can switch template and there's no problem if I use admin>config> template> method I have never tried template management module.
__________________ Join our Pligg Template Club now while prices are still cheap! |
| ||||
|
I also copied the old settempalte.php file from 9.9.0 and still the problem occured.
__________________ Join our Pligg Template Club now while prices are still cheap! |
| ||||
|
It sounds like something could be corrupting the cookie. Try this and see if you get a different result. Go to line 37 of settemplate.php and look for Code: $main_smarty->assign('message', 'Warning: Template <b>"' . sanitize($_GET['template'],1) . '"</b> does not exist!');
Code: $main_smarty->assign('message', 'Warning: Template <b>"' . $_GET['template'] . '"</b> does not exist!');
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| ||||
|
In 9.9.0 and 9.9.5 this line: PHP Code: So I replace it with: PHP Code:
__________________ Join our Pligg Template Club now while prices are still cheap! |
| ||||
|
This is probably a dumb question but did you delete templates_c?
__________________ Visit PliggPro the official Pligg Mods & Template Shop! |
| ||||
|
Yes, I have deleted the contents of templates_c. When I compare the settemplate.php file of 9.9.0 and 9.9.5, the only difference is this: 9.9.0: PHP Code: PHP Code:
__________________ Join our Pligg Template Club now while prices are still cheap! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Permissioning required for backup to work? | Swakoo | General Help | 3 | 10-09-2008 11:49 AM |
| upgrading to 9.6 | yathosho | Installation and Upgrade Help | 6 | 07-08-2007 07:05 AM |
| cann't vote in pligg (buliding 802) | haxhax | Bug Report | 27 | 03-10-2007 06:53 AM |
| Internal Server Error | wagthis | Bug Report | 12 | 01-16-2007 05:20 PM |
| ERROR: my_base_url is not set. Please correct this using the admin panel. Then refres | search | Installation and Upgrade Help | 7 | 11-14-2006 10:35 PM |