1
I am trying to run Content 1.3 by Ben Brown. Locally everything works fine. on the live site in the admin section when I try to use the add content tab I get the banner and menu and everything else is blank.
All other aspects work and if I put content into the database using sql it shows on my site fine.
By tracing through the program (debug mode showed no difference in warnings and notices on the local and remote sites.) I found it died unceremonious in xoopsload.php in the loadcore function.
function loadCore($name)
{
static $configs;
if (!isset($configs)) {
$configs = XoopsLoad::loadCoreConfig();
}
if ( isset($configs[$name]) ) {
require $configs[$name]; // this is the last line executed
if ( class_exists($name) && method_exists($name, '__autoload') ) {
call_user_func( array($name, '__autoload') );
}
return true;
} elseif (file_exists(XOOPS_ROOT_PATH . "/class/{$name}.php")) {
include_once XOOPS_ROOT_PATH . "/class/{$name}.php";
return class_exists("Xoops" . ucfirst($name));
}
return false;
}
I have added a comment where it happens. When I checked the value of $configs[$name] it is the path to a valid file xoopseditor.php
Yet the require fails and termination occurs.
Any ideas would be appreciated.
When the error occurs add_content.php is trying to execute:
$editor = new XoopsFormEditor(_C_CONTENT, "fckeditor", $editor_configs);