close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Memory size error?

Thread began 10/01/2010 6:16 pm by Steve | Last modified 11/11/2010 8:16 pm by Steve | 3731 views | 26 replies

Dave BuchholzBeta Tester

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:
<?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); 
?>
Attached Files
category-pages.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...