Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 29
Join Date: Jun 2008
error when editing template - 03-06-2008, 10:57 PM

I get the following error when attempting to save templates after editing them in the Dashboard » Templates » * section:

Code:
Fatal error: Invalid Template in e:\www\mysite.com\support\modules\core\admin_templates.php on line 643
These are the lines of code in admin_templates.php around line 643:

Code:
// Fetch the template
 $_template = $dbCore->queryFetch("SELECT * FROM `". TABLE_PREFIX ."templates` AS templates LEFT JOIN `". TABLE_PREFIX ."templatedata` AS templatedata ON (templates.templateid = templatedata.templateid) WHERE templates.templateid = '". intval($_REQUEST["templateid"]) ."';");
 // Verify its a valid template
 if (empty($_template["templateid"]))
 {
  trigger_error($_SWIFT["language"]["invalidtemplate"], E_USER_ERROR);
 }
 
 // ======= PROCESS ACTIONS =======
I took a peak in the database and all of the templates have ID's. I even deleted the database and the entire support directory on the server and started from scratch. Still get the same results... don't have a clue.


I also get the same error when clicking on the restore button. If I manually delete all of the text in the box, then click restore, it works. Then I can edit the code in the box and click save and the setting are saved. Really strange!

This does not happen with every template, but so far, with the index and footer templates.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 5,554
Join Date: Aug 2006
Location: Mumbai, India
04-06-2008, 09:56 AM

Does this happen to all templates? What kind of changes did you make to the templates?



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/ - NEW SKIN ADDED!!
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 29
Join Date: Jun 2008
04-06-2008, 10:27 AM

Quote:
Originally Posted by supportskins View Post
Does this happen to all templates? What kind of changes did you make to the templates?
Yesterday, for testing purposes, I performed a fresh install including a new database and I tried something really simple like just adding some text or removing text and I was able to recreate the problem. It did not appear to happen with all templates. I did not test everyone, just Header, Footer, Navbar, and Index. Header and Navbar did not seem to have this problem.

This is so strange... I made no changes what so ever before going to bed last night. I wake up this morning and start testing (for your post) and find that I cannot recreate the problem with any of the templates.

This is a Windows box and I have not manually set up any cron jobs or tasks yet. What on earth could cause this behavior?
   
Reply With Quote
Reply

Tags
editing, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Template Groups - A Tutorial Matthew How do I? 11 27-04-2010 06:49 AM
Editing template for user portal /ticket view sumsang Style & Design 1 15-01-2007 09:23 AM
Template Editing Ashie Style & Design 0 20-10-2005 07:38 AM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78