Hello,
after migrating from localhost to the server my ckeditor also disabled. I wonder why?
At first, I thought maybe because of file path, but my file path appears just fine:
input_berita_static.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Squprime</title>
<!-- CSS -->
<link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]-->
<!-- JavaScripts-->
<script type="text/javascript" src="style/js/jquery.js"></script>
<script type="text/javascript" src="style/js/jNice.js"></script>
<script src="../ckeditor/ckeditor.js"></script>
</head>
<body>
<div id="wrapper">
<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
<h1><a href="#"><span>Transdmin Light</span></a></h1>
<img src="images/logo2.png" height="70px" style="margin: -45px 0 0 -180px; position: absolute;"><br><!--<img src="images/admin.png" height="60px" style="margin: -20px 0 0 430px">--><br><br>
<!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
<?php include('top_nav.php'); ?>
<!-- // #end mainNav -->
<div id="containerHolder">
<div id="container">
<div id="sidebar">
<?php include("admin_nav.php"); ?>
<!-- // .sideNav -->
</div>
<!-- // #sidebar -->
<div style="margin: -15px 0 0 230px; width: 700px; position: absolute;">
<!-- h2 stays for breadcrumbs -->
<h2><a href="#">Dashboard</a> » <a href="#" class="active">Input Berita Static</a></h2>
</div>
<!--
<div id="main">
<form action="" class="jNice">
<h3>Group Management</h3>
<table cellpadding="0" cellspacing="0">
<tr>
<td>Vivamus rutrum nibh in felis tristique vulputate</td>
<td class="action"><a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a></td>
</tr>
<tr class="odd">
<td>Duis adipiscing lorem iaculis nunc</td>
<td class="action"><a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a></td>
</tr>
<tr>
<td>Donec sit amet nisi ac magna varius tempus</td>
<td class="action"><a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a></td>
</tr>
<tr class="odd">
<td>Duis ultricies laoreet felis</td>
<td class="action"><a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a></td>
</tr>
<tr>
<td>Vivamus rutrum nibh in felis tristique vulputate</td>
<td class="action"><a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a></td>
</tr>
</table>
<h3>Edit Group Info</h3>
<fieldset>
<p><label>Group Name:</label><input type="text" class="text-long" /></p>
<p><label>Information:</label><input type="text" class="text-medium" /><input type="text" class="text-small" /><input type="text" class="text-small" /></p>
<p><label>Package:</label>
<select>
<option>Select one</option>
<option>Select two</option>
<option>Select tree</option>
<option>Select one</option>
<option>Select two</option>
<option>Select tree</option>
</select>
</p>
<p><label>Other Information:</label><textarea rows="1" cols="1"></textarea></p>
<input type="submit" value="Submit Query" />
</fieldset>
</form>
</div> -->
<!-- // #main -->
<!-- Insert New -->
<div id="menu">
<center>
<?php
echo "<br><br><br>";
include('includes/koneksi.php');
$post_id = isset($_POST['post_id']) ? $_POST['post_id'] : '';
$confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : '';
$kategori = isset($_POST['kategori']) ? $_POST['kategori'] : '';
$news = isset($_POST['news']) ? $_POST['news'] : '';
$judul = isset($_POST['judul']) ? $_POST['judul'] : '';
$page = isset($_POST['page']) ? $_POST['page'] : '';
//Simpan berita
if (isset($_POST['ok'])){
if (empty($_GET['post_id']))
{
$sqlstr = "INSERT INTO static_page(page, judul, isi_berita) VALUES('".$page."','".$judul."','".$news."')";
}
else
{
$sqlstr = "UPDATE static_page SET page='".$page."', judul='".$judul."', isi_berita='".$news."' WHERE post_id=".$_GET['post_id'];
}
$result = mysql_query($sqlstr) or die(mysql_error());
//Jika mode edit, maka tidak akan dikirimkan konfirmasi kepada subscriber
//if (empty($_REQUEST['id'])) kirimEmail($idKategori, $judul, $news);
$confirmation = ($result) ? "Data has been saved." : "Fail to save data.";
}
//Load berita (I place this under save so that it doesn't place the old data to save)
if (!empty($_GET['post_id'])){
$result = mysql_query("SELECT * FROM static_page WHERE post_id =".$_GET['post_id']) or die(mysql_error());
$data = mysql_fetch_array($result);
$post_id = $data['post_id'];
$page = $data['page'];
$judul = $data['judul'];
$news = $data['isi_berita'];
}
else {
//echo "unable to select data".'<br>';
//echo "post_id is empty";
}
?>
<div align="center"><br><br>
<div style="width:800px;text-align:left;">
<?php echo $confirmation;?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] .'?post_id='. $post_id; ?>">
<!--<input type="hidden" name="id" value="<?php// echo $post_id; ?>"/>-->
<table>
<tr>
<td>Page <font color="red">*</font></td>
<td><input type="text" size="50px" name="page" value="<?php echo $page; ?>" readonly></td>
</tr>
<tr>
<td>Judul</td>
<td><input type="text" size="50px" name="judul" value="<?php echo $judul; ?>"/></td>
</tr>
<tr>
<td valign="top">Isi berita </td>
<td>
<textarea cols="60" rows="10" id="news" name="news"><?php echo $news;?></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace('news');
</script> </td>
</tr>
<tr>
<td></td>
<td><br><input type="submit" name="ok" value="Save" class="abutton"/></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!-- End Insert -->
<div class="clear"></div>
</div>
<!-- // #container -->
</div>
<!-- // #containerHolder -->
<p id="footer"></p>
</div>
<!-- // #wrapper -->
</body>
</html>