Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: How to get my sections back
Don’t copy/paste the entire code, but edit the original txp_section.php file.
The problem is that the quotes as they were displayed here on the forum are incorrect. Look at your earlier post. Add just those yellow lines to an original, unmodified txp_section.php file.
Offline
#38 2007-12-05 13:58:43
- gmorgan
- Member
- Registered: 2007-11-26
- Posts: 42
Re: How to get my sections back
<!— Memory: 4974Kb, TEST_SECTION_MEMORY_USAGE —>
Now we’re getting some where, your a legend!
Offline
Re: How to get my sections back
Is that on your Mac or on the other server where the problem occurs… because if this shows up, I’d expect the sections to show as well?
Offline
#40 2007-12-05 15:34:08
- gmorgan
- Member
- Registered: 2007-11-26
- Posts: 42
Re: How to get my sections back
on my mac i’ve tried it on the server and it loads up blank with nothing in the page source
Offline
Re: How to get my sections back
Okay, on the problem server, look at the error logs. The error_log statement is in the loop that processes each section on the section tab. Ideally you should see one or more lines that show the memory usage as each section is processed. If not, put the error_log line higher up in the code (but below the line function sec_section_list
) until it starts to show up in the error logs. Hopefully we can use that to pinpoint where the section tab tries to get so much memory.
Offline
#42 2007-12-06 09:01:56
- gmorgan
- Member
- Registered: 2007-11-26
- Posts: 42
Re: How to get my sections back
This is what the error log is giving, mind why is it saying event=page when I thought the issue was with even=section. I’m puzzled.
[Thu Dec 06 09:57:32 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:57:32 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:57:32 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:57:32 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:58:11 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:58:12 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:58:12 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:58:12 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
[Thu Dec 06 09:58:12 2007] [error] [client 194.82.216.174] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3262465 bytes) in Unknown on line 0, referer: http://194.82.216.4:8080/textpattern/?event=page
Offline
#43 2007-12-06 09:16:45
- gmorgan
- Member
- Registered: 2007-11-26
- Posts: 42
Re: How to get my sections back
Thanks so much for your help, I’ve just increased the php.ini max memory to 48m it was set to jut 8m as the page needs 32m. I did this last week but only restarted apache. I didnt restart the server. As your diagnostics have proven there was something wrong with memory I thought lets try restarting the server this time, and the section page has now loaded fine. How much memory should I give php, shall I give it a couple hundred megs or so.
Thanks so much for your help its been awesome.
Offline
#44 2007-12-06 09:32:59
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: How to get my sections back
gmorgan wrote:
…How much memory should I give php, shall I give it a couple hundred megs or so…
I’d go for as little as gets the job done — and then just a bit more. Check out phpsec.org for their info on php memory limits.
Just seems plain strange that an 8Meg limit on the Mac renders but you need a 32Meg limit on Windows.
— Steve
Offline
#45 2007-12-11 03:23:27
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to get my sections back
That’s interesting Steve. The “recommended” ini that comes with PHP5 for Windows uses 128M
, while PHP4’s has 8M
.
Offline
#46 2007-12-11 04:51:43
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: How to get my sections back
Mary wrote:
That’s interesting Steve. The “recommended” ini that comes with PHP5 for Windows uses
128M
, while PHP4’s has8M
.
Mary, I wasn’t aware of that but wow, I mean, what a difference!! That’s 16 times what php4 would get with a default install. Would most web hosters really give that much over to php?!
— Steve
Offline
#47 2007-12-11 05:08:27
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: How to get my sections back
gmorgan
Glad you got this sorted out but I’m still curious about the difference between your Mac and Windows install — perhaps there is a clue in there about why the Win setup needs so much more memory? Could you possibly post the diagnostics from your Mac too so we might compare the two platforms?
Many thanks in advance.
— Steve
Offline
#48 2007-12-11 09:39:59
- gmorgan
- Member
- Registered: 2007-11-26
- Posts: 42
Re: How to get my sections back
Do you mean the txp pattern dianostics if so here they are:
Textpattern version: 4.0.5 (r2466)
Last Update: 2007-10-09 08:50:16/2007-07-01 21:03:44
Document root: /Applications/MAMP/htdocs
$path_to_site: /Applications/MAMP/htdocs
Textpattern path: /Applications/MAMP/htdocs/textpattern
Permanent link mode: section_id_title
upload_tmp_dir: /Applications/MAMP/tmp/php
Temporary directory path: /Applications/MAMP/htdocs/textpattern/tmp
Site URL: 194.82.216.174:8888
PHP version: 5.2.3
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-12-11 09:39:10
MySQL: 5.0.41
Locale: en_GB.UTF-8
Server: Apache/2.0.59 (Unix) PHP/5.2.3 DAV/2
Apache version: Apache/2.0.59 (Unix) PHP/5.2.3 DAV/2
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Darwin 8.11.1
Pre-flight check:
————————————
Web Domain DNS lookup fails: 194.82.216.174
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
————————————
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /Applications/MAMP/Library/share/mysql/charsets/
17 Tables: -
PHP extensions: libxml, xsl/0.1, xmlwriter/0.1, dom/20031129, xmlreader/0.1, xml, tokenizer/0.1, session, pcre, SimpleXML/0.1, SPL/0.2, PDO/1.0.4dev, sockets, soap, SQLite/2.0-dev, standard/5.2.3, Reflection/0.1, posix, pdo_sqlite/1.0.1, mysqli/0.1, mysql/1.0, mbstring, ldap, json/1.2.1, iconv, hash/1.0, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.19 2007/02/27 03:04:40 iliaa Exp $, dbase, date/5.2.3, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache2handler, imap, yaz/1.0.12, mcrypt, gettext, pgsql, pdo_pgsql/1.0.2, pdo_mysql/1.0.2, Zend Optimizer
Apache modules: core, prefork, http_core, mod_so, mod_access, mod_auth, mod_auth_anon, mod_auth_dbm, mod_auth_digest, mod_file_cache, mod_echo, mod_charset_lite, mod_cache, mod_disk_cache, mod_mem_cache, mod_example, mod_case_filter, mod_case_filter_in, mod_ext_filter, mod_include, mod_deflate, mod_log_config, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_usertrack, mod_setenvif, mod_proxy, proxy_connect, proxy_ftp, proxy_http, mod_bucketeer, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_cgi, mod_cgid, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_php5
pretext_data: array (
‘id’ => ‘’,
‘s’ => ‘’,
‘c’ => ‘’,
‘q’ => ‘’,
‘pg’ => ‘’,
‘p’ => ‘’,
‘month’ => ‘’,
‘author’ => ‘’,
‘request_uri’ => ‘/7eaa3c2f776e24438a8da9e82a39a985/?txpcleantest=1’,
‘qs’ => ‘txpcleantest=1’,
‘subpath’ => ‘\\/’,
‘req’ => ‘/7eaa3c2f776e24438a8da9e82a39a985/?txpcleantest=1’,
)
/include/txp_category.php: r2243 (3706fea923cd77f7053f7803de169df4)
/include/txp_plugin.php: r1917 (c63f72f33986c08367672fc9fe7b42dd)
/include/txp_auth.php: r2356 (33255ec1ea1a825163c78272496d8783)
/include/txp_form.php: r1913 (ecea3fecf9d7d1f8088cda67f097eceb)
/include/txp_section.php: r1891 (1f0121b3e2969d94bc8a7fb98bfdfbd5)
/include/txp_tag.php: r2260 (1bd67bdb9dcfb72e34ea967e39406216)
/include/txp_list.php: r2450 (997a3b1bec7115bf49b76f62b28da146)
/include/txp_page.php: r2099 (56bde34b6c7bcb9123ac91e73065e894)
/include/txp_discuss.php: r2451 (91e0b29ef39a9471ae5c78d0b1bba086)
/include/txp_prefs.php: r2405 (a4b76476930b2376199f23fbfd5f1ac9)
/include/txp_log.php: r2439 (16730c34e2a437dd88b8f5cc7eff8218)
/include/txp_preview.php: r1238 (696728f35f3557b648c011bb4d6496c3)
/include/txp_image.php: r2439 (9fac6ed0d9d4c3d8196492051f38dc9a)
/include/txp_article.php: r2453 (bdac8fcac5df2f93f10afa7e50c3fb6f)
/include/txp_css.php: r2403 (4e8c52bb1cf5bfe2e2f0640892f9b92e)
/include/txp_admin.php: r2403 (f8700a3d453ece08e7f137b47c967eda)
/include/txp_link.php: r2463 (0a0171bf606296106332d3fdcb83a678)
/include/txp_diag.php: r2361 (dccf3269049dd25e59afdd7ad8d235cd)
/include/txp_file.php: r2403 (e62abd5fcadabe629322ed17135d89eb)
/include/txp_import.php: r1238 (70a6207c0f3604ecfc4b20369986c4d7)
/lib/admin_config.php: r1747 (a2eb09f94d7902a6e95750fc4abcea17)
/lib/txplib_misc.php: r2464 (615afd44a10311f1c0b7852d9bc15d24)
/lib/taglib.php: r1535 (9b519f9dc88791e5ee8eacc029dd6975)
/lib/txplib_head.php: r2404 (2e067b25997cf67cddbdd365570e69d5)
/lib/classTextile.php: r2462 (a031e2ea894e339711c601f230c5ee71)
/lib/txplib_html.php: r2403 (97e173da3058b438513df67fd7d1ceca)
/lib/txplib_db.php: r2406 (5ed67642f805639b54e381fb22efd208)
/lib/IXRClass.php: r765 (137b91497628f0058a2fca9eba5c3b7f)
/lib/txplib_forms.php: r2403 (438a734b52acef40b36d8a3ba23987e8)
/lib/class.thumb.php: r2329 (b2a2fda54371dbd6c40ba553941f090e)
/lib/constants.php: r2361 (ab6d51668fab1e3c98e7d520b1a59f0f)
/lib/txplib_update.php: r1239 (10f28a986d23187b436369dc29ab552f)
/lib/txplib_wrapper.php: r2286 (419125ec74a17a70bf1e86ebfcd45253)
/publish/taghandlers.php: r2444 (cc9de8f2018b01398a2ba542c5f5bdc6)
/publish/atom.php: r2402 (46c4402717f695fde0d49d806adfa4c4)
/publish/log.php: r1637 (5254d0f3942086bc55723923307a51db)
/publish/comment.php: r2460 (2d1ae1dec0784f044e7005fa5ed50930)
/publish/search.php: r1748 (8c86ebcb5be08e214d81ca15a32164ca)
/publish/rss.php: r2393 (09aac29bf22ffa71c1e118e851cff3c3)
/publish.php: r2436 (7087864f1e7c6efe096d3b8e07c350b1)
/index.php: r2466 (30ecf35de5c1edc6ef68e780c8c79daa)
/css.php: r944 (8beba8f83a091068723435cdcdc02f2f)
Offline