Quote:
| Warning: Template "TEMPLATE_NAME" does not exist! |

![]() |
| | Thread Tools | Display Modes |
| ||||
|
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:
|
| ||||
|
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. |
| ||||
|
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. |
| ||||
|
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 |
| ||||
|
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. |
| ||||
|
I also copied the old settempalte.php file from 9.9.0 and still the problem occured.
|
| ||||
|
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!'); |
| ||||
|
In 9.9.0 and 9.9.5 this line: PHP Code: So I replace it with: PHP Code: |
| ||||
|
This is probably a dumb question but did you delete templates_c?
|
| ||||
|
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: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Index.php won't open to install | nigelnix | Questions and Comments | 8 | 04-15-2010 06:19 PM |
| cann't vote in pligg (buliding 802) | haxhax | Questions and Comments | 27 | 03-10-2007 07:53 AM |
| Internal Server Error | wagthis | Questions and Comments | 12 | 01-16-2007 06:20 PM |
| ERROR: my_base_url is not set. Please correct this using the admin panel. Then refres | search | Questions and Comments | 7 | 11-14-2006 11:35 PM |