CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#8877] Can't add new template

avatar
Created By: Jonathan Schmid (Foaly*)
Date Submitted: Wed Jan 30 13:29:11 -0500 2013

Assigned To:
Version: 1,11,4
CMSMS Version: None
Severity: Minor
Resolution: Works For Me
State: Closed
Summary:
Can't add new template
Detailed Description:
CMS made simple only tells that there's a MySQL error, not which one. Apparently
causing the problem is /admin/addtemplate.php#84.

WAS:
$query = "SELECT template_id from ".cms_db_prefix()."templates WHERE
template_name = " . $db->qstr($template);

NOW:
$query = "SELECT template_id from ".cms_db_prefix()."templates WHERE
template_name = '" . $db->qstr($template) . "'";


History

Comments
avatar
Date: 2013-02-21 11:10
Posted By: Robert Campbell (calguy1000)

works fine here.... turn on debug mode and check for mysql errors.
      
Updates

Updated: 2013-08-23 13:36
cmsms_version_id: 29887 => -1
state: Open => Closed

Updated: 2013-02-21 11:10
resolution_id: => 11