Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-08 18:45:25

queenmichelle
New Member
Registered: 2006-09-08
Posts: 3

fatal error bytes exhausted

I’ve tried to fix this problem, but I don’t think it’s with htaccess or my hosting. I think I messed something up and I don’t know how to fix it without starting over. I’d be greatful if someone would take a look at my issue. It seems like it’s trying to pull like 134 MB in the script.
Each time I try to leave a comment, the error is a little different.
http://queenmichelle.com/article/2/first-post#comment is the URL
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in /users/home/queenmichelle/web/public/textpattern/lib/txplib_misc.php on line 1202
is the error.
I think I did something wrong with the presentation tab, with the archiving. Is there any way to go back to the defaults on it?? I made my own template, but I haven’t used any plugins.
If you want to log in as me you can e-mail me and i’ll let you.
Thank you in advance for any help!

Offline

#2 2006-09-08 20:48:53

NickML
Member
From: Scotland
Registered: 2006-05-14
Posts: 58
Website

Re: fatal error bytes exhausted

Have you installed any new plugins since it last worked correctly ? This is why I ask.

~Nick

Offline

#3 2006-09-08 20:58:51

queenmichelle
New Member
Registered: 2006-09-08
Posts: 3

Re: fatal error bytes exhausted

No, I haven’t installed any. Thank you though

Offline

#4 2006-09-08 21:04:29

NickML
Member
From: Scotland
Registered: 2006-05-14
Posts: 58
Website

Re: fatal error bytes exhausted

Okay: what does the tag trace say ? Anything unusual in admin>diagnostics ?

~Nick

Offline

#5 2006-09-08 21:24:40

queenmichelle
New Member
Registered: 2006-09-08
Posts: 3

Re: fatal error bytes exhausted

<!-- Runtime:    0.0144 -->
<!-- Query time: 0.004591 -->
<!-- Queries: 23 -->
<!-- Memory: 1582Kb, <txp:comments_help /> -->
<!-- txp tag trace: 
[SQL (0.000109): select name from `txp_lang` where lang='en-gb' limit 1]
[SQL (0.000993): select name, data from `txp_lang` where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.000088): select name, code from `txp_plugin` where status='1']
[SQL (0.000094): select ID,Section from `textpattern` where ID = 2 limit 1]
[SQL (0.000116): select * from `txp_section` where name = 'article' limit 1]
[SQL (0.000095): select Posted, AuthorID, Keywords from `textpattern` where ID=2]
[SQL (0.000332): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted > '2006-09-07 23:01:07' and Section = 'article' and Status=4 and Posted < now() order by Posted asc limit 1]
[SQL (0.000208): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted < '2006-09-07 23:01:07' and Section = 'article' and Status=4 and Posted < now() order by Posted desc limit 1]
[SQL (0.000087): select RealName from `txp_users` where `name` = 'queenmichelle' limit 1]
[SQL (0.000439): select host from `txp_log` where ip='63.173.242.30' limit 1]
[SQL (0.000272): insert into `txp_log` set `time`=now(),page='/article/2/first-post',ip='63.173.242.30',host='mail.elderhostel.org',refer='',status='200',method='GET']
[SQL (0.000092): select user_html from `txp_page` where name='qmpurple']
[Page: qmpurple]
<txp:css/>
<txp:category_list label="Category List" />
	[SQL (0.000108): select name,title from `txp_category` where name != 'default' and type='article' order by name]
<txp:search_input label="Search" button="Search" size="15" />
	[SQL (0.000086): select form from `txp_form` where `name` = 'search_input' limit 1]
<txp:linklist form="Links" limit="10" sort="date desc" label="Links" />
	[SQL (0.000088): select Form from `txp_form` where `name` = 'Links' limit 1]
	[Form: Links]
	[SQL (0.000118): select * from `txp_link` where 1 order by date desc limit 10]
<txp:article/>
	[SQL (0.000244): select *, unix_timestamp(Posted) as uPosted from `textpattern` where ID='2' and Status in (4,5) limit 1]
	[article 2]
	[SQL (0.000087): select Form from `txp_form` where `name` = 'default' limit 1]
	[Form: default]
	<txp:if_article_list>
		[<txp:if_article_list>: false]
		<txp:title/>
		<txp:posted/>
		<txp:author/>
		<txp:body/>
	</txp:if_article_list>
	[SQL (0.000096): select Form from `txp_form` where `name` = 'comments_display' limit 1]
	[Form: comments_display]
	<txp:comments/>
		[SQL (0.000092): select Form from `txp_form` where `name` = 'comments' limit 1]
		[Form: comments]
		[SQL (0.000120): select *, unix_timestamp(posted) as time from `txp_discuss` where parentid='2' and visible=1 order by posted asc]
	<txp:if_comments_allowed>
		[<txp:if_comments_allowed>: true]
		<txp:comments_form/>
			[SQL (0.000112): select Form from `txp_form` where `name` = 'comment_form' limit 1]
			<txp:comments_error/>
			<txp:text item="name" />
			<txp:text item="email" />
			<txp:text item="message" />
			<txp:comments_help/>
	</txp:if_comments_allowed>
<txp:if_individual_article>
	[<txp:if_individual_article>: true]
	<txp:link_to_prev>
	</txp:link_to_prev>
	<txp:link_to_next>
	</txp:link_to_next>
</txp:if_individual_article>
<txp:if_article_list>
	[<txp:if_article_list>: false]
</txp:if_article_list>
[ --- secondpass --- ]
 -->

I don't know if this is unusual or not
Textpattern version: 4.0.3 (r1188)
Last Update: 2006-09-07 22:14:47/2006-09-07 22:04:42
Document root: /users/home/queenmichelle/web/public
$path_to_site: /users/home/queenmichelle/web/public
Textpattern path: /users/home/queenmichelle/web/public/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /usr/local/www/php/tmp
Temporary directory path: /users/home/queenmichelle/web/public/textpattern/tmp
Site URL: queenmichelle.com
PHP version: 5.1.4
Server Local Time: 2006-09-08 21:23:55
MySQL: 4.1.20-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
Server OS: FreeBSD 6.1-RC

Pre-flight check: 
------------------------
/users/home/queenmichelle/web/public/textpattern/setup/ still exists
------------------------

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

------------------------


sorry that this is sooo huge!!

Last edited by zem (2006-09-08 22:37:16)

Offline

#6 2006-09-08 22:45:15

zem
Developer emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579
Website

Re: fatal error bytes exhausted

There’s nothing obviously awry in the tag trace or diagnostics that I can see. It sounds like you’ve probably created an infinite loop somehow. Perhaps a <txp:comments_form/> tag inside your comment_form form, or something like that.

A good start would be to try replacing your comment related forms with the defaults.

That might not fix it, but it should at least narrow down the possibilities.


Alex
tstate

Offline

#7 2017-03-20 08:38:43

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: fatal error bytes exhausted

For what it’s worth for others searching this issue, mine was indeed an infinite-loop-type of error; my archives were trying to print the full archive for every article instance; no wonder the poor thing was maxed out. I’m sure it sounds really obvious—and probably was-however it was the last thing I tried in a very long list of various iterations and trials and eliminating things and all the things before I finally hit and cleared the issue (victory is mine!). My point is: the error is likely the result of something very reasonable and also very solvable — just must pinpoint it.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

Board footer

Powered by FluxBB