Page 1 of 1
[SOLVED] Allowed memory size of 16777216 bytes exhausted
Posted: Sat May 07, 2011 10:50 am
by chrisbar
I did a complete reinstall of 1.9.4.1 because of all the trouble with headers already send etc.
The whole upgrade procedure went well, uptill opening the wesite. I get the next error:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/users/r/e/redeag/www/modules/Search/Search.module.php on line 113
Any idea?
3 pm 6/5/11 I have recopied the php.ini file and now I can open the website without any problem or error.
When trying to enter admin logon I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/admin/login.php on line 287
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/admin/login.php on line 288
When login in as webmaster I get the following errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/page.functions.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/page.functions.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 191
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 194
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 195
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 198
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 203
But i can work in the control panel except for the content pages. When trying to open that section I get:
Output has already been sent to the browser at /home/users/r/e/redeag/www/config.php:1. Please make sure the command $xajax->processRequest() is placed before this.
It's stays abracadabra ... Hope someone can help me out because I need to work on the site.
Kind regards Chris
Re: Fatal error: Allowed memory size of 16777216 bytes exhau
Posted: Sun May 08, 2011 10:16 am
by chrisbar
I have tried to reinstall again. Same problems arise again.
One maybe interesting addition:
I have removed the lines:
ini_set("memory_limit", "100M");
ini_set('max_execution_time', 60);
in my config.php.
Result is that I now only get the following message with a complete white screen in the adminlogin page.
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 140 bytes) in /home/users/r/e/redeag/www/modules/Showtime/Showtime.module.php on line 595
When I re-add the ini_set lines(on line 3 and 4 of the config.php) I get the messages, but then I can Login in the control panel (still the functions in content pages don't work):
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/admin/login.php on line 287
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/admin/login.php on line 288
After being logged in I get the control panel with above the following messages:
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/page.functions.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/page.functions.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 188
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 191
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 194
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 195
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 198
Warning: Cannot modify header information - headers already sent by (output started at /home/users/r/e/redeag/www/config.php:1) in /home/users/r/e/redeag/www/lib/classes/class.admintheme.inc.php on line 203
Please help me finish this struggle!!

Re: Fatal error: Allowed memory size of 16777216 bytes exhau
Posted: Sun May 08, 2011 11:51 am
by uniqu3
Could you provide your complete system info (PHP version, DB Version, Modules...)?
Paste your config.php?
Re: Fatal error: Allowed memory size of 16777216 bytes exhau
Posted: Sun May 08, 2011 12:09 pm
by chrisbar
My version information and moduleinformation is:
- CMS Versie
1.9.4.1
Strange is that in the messages in my control panel the following is mentioned:Core Opmerking: Er is een nieuwere versie van het CMS beschikbaar. Neem contact op met uw webmaster. (there is a newer vesrion of CMS available)
Geïnstalleerde ModulesCMSMailer
2.0.1
FileManager
1.1.0
MenuManager
1.7.6
ModuleManager
1.4.2
News
2.11.2
nuSOAP
1.0.2
Printing
1.1.2
Search
1.6.10
ThemeManager
1.1.4
TinyMCE
2.8.4
Album
0.9.3
FormBuilder
0.7
FCKeditorX
1.1.0
Showtime
2.0.3
BlankOfTheMonth
1.1
youtubeplayer
1.3
CGExtensions
1.25
AjaxMadeSimple
0.3.1
RSS
1.1
vimeoplayer
1.0
MediaCenter
0.4
Guestbook
1.3.2
Captcha
0.4.3
Uploads
1.11.6
CMSForms
0.0.20
CMSUsers
0.0.14
HostedVideoAlbums
2.0.1
PHPMyAdmin
3.4.0b3
CGEcommerceBase
1.2.4
CGSimpleSmarty
1.4.8
FrontEndUsers
1.12.13
JQueryTools
1.0.10
Availability
1.7.12
Gallery
1.4.4
FEmessages
1.1
jQuery
1.1.3
FEUChecklist
0.2
Config Informatiephp_memory_limit:
process_whole_template:
false
output_compression:
false
max_upload_size:
10000000
default_upload_permission:
664
url_rewriting:
none
page_extension:
query_var:
page
image_manipulation_prog:
GD
auto_alias_content:
true
locale:
default_encoding:
utf-8
admin_encoding:
utf-8
set_names:
true
debug:
false
root_url:
http://www.red-eagles.nl
ssl_url:
https://www.red-eagles.nl/
root_path:
/home/users/r/e/redeag/www/ (0701)
previews_path:
/home/users/r/e/redeag/www/tmp/cache (0777)
uploads_path:
/home/users/r/e/redeag/www/uploads (0701)
uploads_url:
http://www.red-eagles.nl/uploads
image_uploads_path:
/home/users/r/e/redeag/www/uploads/images (0701)
image_uploads_url:
http://www.red-eagles.nl/uploads/images
ssl_uploads_url:
https://www.red-eagles.nl/uploads
use_smarty_php_tags:
false
PHP Informatie:
Huidige PHP versie (phpversion):
5.2.8
md5 functie (md5_function):
Aan (Waar)
GD versie (gd_version):
2
tempnam functie (tempnam_function):
Aan (Waar)
Er bevinden magic quotes in de runtime (magic_quotes_runtime):
Uit (Onwaar)
Is E_STRICT uitgeschakeld in error_reporting (E_STRICT):
PHP Memory Limit (memory_limit):
100M
Maximale Uitvoertijd (max_execution_time):
60
PHP output_buffering (output_buffering):
0
PHP Safe Mode (safe_mode):
Uit (Onwaar)
Bestand uploads (file_uploads):
Aan (Waar)
Maximale Post Grootte (post_max_size):
10M
Maximale Upload Grootte (upload_max_filesize):
2M
Session Save Path (session_save_path):
/tmp (1777)
Gebruik sessie-cookies (session_use_cookies):
Aan (Waar)
Basis XML (expat) ondersteuning (xml_function):
Aan (Waar)
Controle of het httpd proces een bestand in de aangemaakte directory kan maken (create_dir_and_file):
PHP register_globals (register_globals):
Uit (Onwaar)
disable_functions in PHP (disable_functions):
PHP Open Basedir (open_basedir):
Testen van externe URL (test_remote_url):
fsockopen: Verbinden geslaagd!
fopen: Verbinden geslaagd!
Controleer ini_set (check_ini_set):
Aan (Waar)
Server Informatie:
Server API (server_api):
cgi
Server Database (server_db_type):
MySQL (mysql)
Server Database Versie (server_db_version):
5.0.77
Server Software (server_software):
Apache
Server Operating System (server_os):
Linux 2.6.9-100.ELsmp Aan i686
Autorisatie informatietmp:
/home/users/r/e/redeag/www//tmp (0701)
templates_c:
/home/users/r/e/redeag/www/tmp/templates_c (0777)
modules:
/home/users/r/e/redeag/www//modules (0701)
Bestandscreatiemasker (umask):
/home/users/r/e/redeag/www/tmp/cache (0777)
config_file:
0444
Underneath my Config.php
Code: Select all
<?php
ini_set("memory_limit", "100M");
ini_set('max_execution_time', 60);
#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
#-----------------
#Behaviour Settings
#-----------------
# These settings will effect the overall behaviour of the CMS application, please
# use extreme caution when editing these. Additionally, some settings may have
# no effect on servers with significantly restricted configurability.
# Warning: This option is deprecated and will be removed in later versions oF CMSMS.
# If you are experiencing problems with php memory limit errors, then you may
# want to try enabling and/or adjusting this setting.
# Note: Your server may not allow the application to override memory limits.
$config['php_memory_limit'] = '';
# In versions of CMS Made Simple prior to version 1.4, the page template was processed
# in it's entirety. This behaviour was later changed to process the head portion of the
# page template after the body. If you are working with a highly configured site that
# relies significantly on the old order of smarty processing, you may want to try
# setting this parameter to true.
$config['process_whole_template'] = false;
# CMSMS Debug Mode? Turn it on to get a better error when you
# see {nocache} errors, or to allow seeing php notices, warnings, and errors in the html output.
# This setting will also disable browser css caching.
$config['debug'] = false;
# Output compression?
# Turn this on to allow CMS to do output compression
# this is not needed for apache servers that have mod_deflate enabled
# and possibly other servers. But may provide significant performance
# increases on some sites. Use caution when using this as there have
# been reports of incompatibilities with some browsers.
$config['output_compression'] = false;
# Timezone setting
# PHP 5.3 requires that timezones be set at the server level.
# This variable can be used to set your sites timezone.
# Valid values for this variable can be found at:
# http://www.php.net/manual/en/timezones.php
# If this field is empty, no timezone will be set
$config['timezone'] = '';
#-----------------
#Database Settings
#-----------------
#This is your database connection information. Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = xxxxxxxxxxxx;
$config['db_username'] = xxxxxxxxxxxx;
$config['db_password'] = xxxxxxxxxxxx;
$config['db_name'] = xxxxxxxxxxxx;
#Change this param only if you know what you are doing
$config["db_port"] = '';
#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'cms_';
#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;
#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#If page is requested with https use https as root url
#e.g. http://blah.com
$config['root_url'] = 'http://www.red-eagles.nl';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_url'] = 'https://www.red-eagles.nl/';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/home/users/r/e/redeag/www/';
#Name of the admin directory
$config['admin_dir'] = 'admin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/home/users/r/e/redeag/www/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/home/users/r/e/redeag/www/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = $config['root_url'] . '/uploads';
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 10000000;
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';
#------------------
#Usability Settings
#------------------
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
#What type of URL rewriting should we be using for pretty URLs? Valid options are:
#'none', 'internal', and 'mod_rewrite'. 'internal' will not work with IIS some CGI
#configurations. 'mod_rewrite' requires proper apache configuration, a valid
#.htaccess file and most likely {metadata} in your page templates. For more
#information, see:
#http://wiki.cmsmadesimple.org/index.php/FAQ/Installation/Pretty_URLs#Pretty_URL.27s
$config['url_rewriting'] = 'none';
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#--------------
#Image Settings
#--------------
#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/Image_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/users/r/e/redeag/www/uploads/images';
$config['image_uploads_url'] = $config['root_url'] . '/uploads/images';
#SSL URL. This is used for pages that are marked as secure.
$config['ssl_uploads_url'] = 'https://www.red-eagles.nl/uploads';
#------------------------
#Locale/Encoding Settings
#------------------------
#Locale to use for various default date handling functions, etc. Leaving
#this blank will use the server's default. This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = '';
#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8. If you'd like this to be different, change
#both. Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding. This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = 'utf-8';
$config['admin_encoding'] = 'utf-8';
#This is a mysql specific option that is generally defaulted to true. Only
#disable this for backwards compatibility or the use of non utf-8 databases.
$config['set_names'] = true;
# URL of the Admin Panel section of the User Handbook
# Set none if you want hide the link from Error
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
#------------------------
#Miscelaneous Settings
#------------------------
#Add performance information (in the form of an HTML comment) to the
#bottom of all generated pages. Note, this may cause problems with validation
#or with advanced AJAX requests where only portions of a page are requested.
#This variable just needs to exist, value is irrelevant.
#$config['show_performance_info'] = 'anything';
?>
Hope you can make something of it.
Kind regards
Chris
Re: Fatal error: Allowed memory size of 16777216 bytes exhau
Posted: Thu May 12, 2011 1:43 pm
by chrisbar
The problem is Solved.
I have downloaded a new version of 1.9.4.1 I have reuploaded this one and then reinstalled through install/upgrade.php. After that I stiull had the same problems. I then deleted the non-core modules that seem to have a problem one after eachother. After deinstalling en removing PHPMyAdmin the problem was solved. Unfortunately I had to deinstall my guestbook as well. This one I have to installe and build up again now.
Thank to Uniqu3!
Chris
Re: [SOLVED] Allowed memory size of 16777216 bytes exhausted
Posted: Thu May 12, 2011 3:05 pm
by uniqu3
Happy youo could solve it
