I have also now encountered this error whilst testing on my local development server, full error message is: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 40961 bytes) in /Users/davebuchholz/Sites/abc-widgets/webassist/framework/framework.php on line 32 which is ob_start();
Everything works fine when including pages with static content one level down from the root.
I have attached the pages that are failing which are situated in a folder called _plugins in the root of the site. These pages are called from the index page whose stripped down code looks like this:
<?php
require_once( "webassist/framework/library.php" );
require_once( "webassist/framework/framework.php" );
?>
<?php require_once('_inc/application.php'); ?>
<?php
// Database Query Using parameters
$param1_rsCategoryURL = "-1";
if (isset($pathInfo[0])) {
$param1_rsCategoryURL = (get_magic_quotes_gpc()) ? $pathInfo[0] : addslashes($pathInfo[0]);
}
mysql_select_db($database_connDB, $connDB);
$query_rsCategoryURL = sprintf("SELECT url FROM tbl_categories WHERE url = %s", GetSQLValueString($param1_rsCategoryURL, "text")); // possible values from the GetSQLValueString Function are text, long, int, double, date, defined
$rsCategoryURL = mysql_query($query_rsCategoryURL, $connDB) or die(mysql_error());
$row_rsCategoryURL = mysql_fetch_assoc($rsCategoryURL);
$totalRows_rsCategoryURL = mysql_num_rows($rsCategoryURL);
?>
<?php
if(!($totalRows_rsCategoryURL == 0)){
$WA_category_page_1 = new WA_Include("_plugins/category-pages/category-page.php");
require($WA_category_page_1->BaseName);
$WA_category_page_1->Initialize(true);
}
?>
<?php
if($totalRows_rsCategoryURL == 0){
if(true){
// WebAssist Framework Builder Dynamic Plug-in: $WA_page_1
switch(isset($pathInfo[0])?$pathInfo[0]:""){ // this could be controlled by a recordset repeat region to cope with expansion
case "about":
$WA_page_1 = new WA_Include("_plugins/about-us-pages/about-us.php");
break;
case "contact":
$WA_page_1 = new WA_Include("_plugins/contact-pages/contact-us.php");
break;
case "legal":
$WA_page_1 = new WA_Include("_plugins/legal-pages/legal-page.php");
break;
case "":
$WA_page_1 = new WA_Include("_plugins/home-page/home.php");
break;
case "index.php":
$WA_page_1 = new WA_Include("_plugins/home-page/home.php");
break;
default:
$WA_page_1 = new WA_Include("_plugins/error-pages/page-not-found.php");
break;
}
if(isset($WA_page_1)){
require($WA_page_1->BaseName);
$WA_page_1->Initialize(true);
}
// End: WebAssist Framework Builder Dynamic Plug-in: $WA_page_1
}
}
?>
<!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"><!-- InstanceBegin template="/Templates/public.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title><?php echo((isset($WA_page_1))?$WA_page_1->Title:"") ?><?php echo((isset($WA_category_page_1))?$WA_category_page_1->Title:"") ?></title>
<!-- InstanceEndEditable -->
</head>
<body>
<!-- InstanceBeginEditable name="mainContent" -->
<?php echo((isset($WA_page_1))?$WA_page_1->Body:"") ?>
<?php echo((isset($WA_category_page_1))?$WA_category_page_1->Body:"") ?>
<?php new dBug(get_defined_vars()); ?>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
<?php
// free all memory associated with rsCategoryURL
mysql_free_result($rsCategoryURL);
?>