Bob,
It seems like a good idea to successfully update a development installation before working on the active site so, yes, I am updating the development area which is currently a mirror of the working site. Well ... not anymore.
Here are the specifics of the installation:
http://newmarketer.us
PHP 5.x
MySQL 5.0
Browser FF 3.0.15
GoDaddy Shared Hosting Linux version 2 |
http://help.godaddy.com/topic/412/article/1076
MODx 1.0.2
No tables greater than 1MB
Anyone can login as an end user on the home page with these credentials:
ID: testing suppliers
PW: testing1
I am getting the following error when logging in:
INCLUDE_ORDERING_ERROR
Please use the MODx Content Manager instead of accessing this file directly.
This same problem was reported for MODx 0.9.6.3 at this link:
http://modxcms.com/forums/index.php/topic,42769.0.html
I saw this error in the database.php script that I brought along from the old site in the following folder tree:
assets/modules/database3
Here is the contents of that script:
[tt]<?php
if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b>
Please use the MODx Content Manager instead of accessing this file directly.");
unset($_SESSION[’itemname’]); // clear this, because it’s only set for logging purposes
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Manage Termbase</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="media/style/<?php echo $modx->config[’manager_theme’]; ?>/style.css?" />
<script type="text/javascript" src="media/script/scriptaculous/prototype.js"></script>
<script type="text/javascript" src="media/script/scriptaculous/scriptaculous.js"></script>
<script type="text/javascript" src="../assets/modules/database3/grid.js">></script>
<link rel="stylesheet" type="text/css" href="../assets/modules/database3/grid.css" />
<style type="text/css">
#termbase td{
padding:3px;
color:darkblue;
}
#termbase td.editor{
width:180px;
}
#termbase td.edit, #termbase td.delete{
width:40px;
}
#termbase th.nohead{
background:transparent;
color:black;
font-weight:normal;
border:1px solid #aaaaaa;
}
</style>
<script type="text/javascript">
function uploadNew() {
var url = ’../assets/modules/database3/insertcsv.php’;
var sx=document.getElementsByName(’options’);
for(var j=0;j<sx.length;j++){
if(sx[j].checked==true){
var s=sx[j].value;
break } }
var pars = ’newclient=’ + $(’newClient’).value + ’&oldclient=’ + $(’oldClient’).value + ’&options=’ + s;
var myAjax = new Ajax.Updater( ’ajaxContainer’, url, {method: ’get’, parameters: pars});
}
function loadNewClient() {
var url = ’../assets/modules/database3/newStuff.php’;
var pars = ’’;
var myAjax = new Ajax.Updater( ’ajaxContainer’, url, { method: ’get’, parameters: pars });
}
function loadDatabase() {
var url = ’../assets/modules/database3/loadDatabase.php’;
var pars = ’client=’ + $F(clientSelect);
var myAjax = new Ajax.Updater( ’ajaxContainer’, url, { method: ’get’, parameters: pars, });
}
function searchDatabase() {
var url = ’../assets/modules/database3/search.php’;
var pars = ’term=’ + $F(searchField);
var myAjax = new Ajax.Updater( ’ajaxContainer’, url, { method: ’get’, parameters: pars });
}
</script></head>
<body>
<div class="subTitle" style="margin-bottom:0px">
<span class="right"><img src="media/style/<?php echo $modx->config[’manager_theme’]; ?>/style/MODxBlack/images/_tx_.gif" width="1" height="5">
<img src="media/style/<?php echo $modx->config[’manager_theme’]; ?>/images/icons/context_view.gif" align="absmiddle" /> <?php echo "Manage Termbase"; ?></span>
</div>
<form name="resource" method="post">
<input type="hidden" name="id" value="<?php echo $modId; ?>" />
<input type="hidden" name="op" value="" />
<div class="sectionHeader"><img src=’media/style/<?php echo $modx->config[’manager_theme’]; ?>/images/misc/dot.gif’ alt="." /> Termbase Management</div><div class="sectionBody">
<!-- load modules -->
<p><img src=’media/style/<?php echo $modx->config[’manager_theme’]; ?>/images/icons/modules.gif’ alt="." width="32" height="32" align="left" hspace="10" />Here you can manage the termbases for your clients. Add a new client’s database, browse and edit the database for a given client, or search for a specific term.</p>
<div class="searchbar">
<table border="0" style="width:100%">
<tr>
<td><a class="searchtoolbarbtn" href="#" onClick="loadNewClient();return false;"><img src="media/style/<?php echo $modx->config[’manager_theme’]; ?>/images/icons/save.gif" align="absmiddle" /> New Client</a></td><td>
<select name="clients" id="clientSelect" onChange="loadDatabase();return false;"><option value="0">Select</option>
<?php
$query = "SELECT DISTINCT * FROM ah_members";
$result = $modx->db->query($query);
if($result) {
while($row = $modx->db->getRow($result)) {
echo ’<option value="’.$row[’list_user’].’">’.ucfirst($row[’list_user’]).’</option>’;
}
}
?>
</select> Browse Database</td>
<td nowrap="nowrap">
<table border="0" style="float:right"><tr><td>Search </td><td><input class="searchtext" id="searchField" name="search" type="text" size="15" value="" /></td>
<td><a href="javascript:;" class="searchbutton" title="Search" onClick="searchDatabase();return false;">Go</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="ajaxContainer">
<?php echo "manage termbase"; ?>
</div>
</div>
</form>
</body>
</html>
[/tt]
I didn’t write this script but, if anyone notices glaring errors that would caus MODx to dislike it, I sure would appreciate your pointing them out to me.
If you want to login as admin, I can provide those credentials too but would prefer to use email to deliver that sort of info so post an email address for me to use.
Thanks in advance.