Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-04-24 21:52:59

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Random code appears on the page

Hey y’all. For a while now I’ve been having the issue where Textpattern puts random blocks of code every time I save a page on the outside of the html tag. It happens in the forms as well. When it does this it appears at the bottom of the website page. I also have had someone credible watch me delete the random block of code, not do anything else, and then save the page. Random code reappears. I cannot find any solutions. Is anybody able to help?

Thanks!

Rose

(Changed the topic title to something more descriptive. -Els)

Last edited by els (2012-04-24 22:03:53)

Offline

#2 2012-04-24 22:01:54

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random code appears on the page

Hi Rose, what does this code look like? Do you have link to the site in question?

Offline

#3 2012-04-24 22:05:04

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

I do, as a matter of fact. It’s all the way at the bottom. http://missgrits.com/kog/

However, the reason I said “random” was because it changes. It’s not always what it has now.

Thanks for the quick reply, by the way!

Offline

#4 2012-04-24 22:18:44

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random code appears on the page

Strange. Can you post the (high) diagnostics please?

Offline

#5 2012-04-24 22:21:31

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

Textpattern version: 4.4.1 (r3575)
Last Update: 2011-11-09 17:27:35/2012-01-05 23:41:02
Document root: /home/agritso/public_html
$path_to_site: /home/agritso/public_html/kog
Textpattern path: /home/agritso/public_html/kog/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/agritso/public_html/kog/textpattern/tmp
Site URL: www.missgrits.com/kog
PHP version: 5.2.17
Register globals: 1
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: America/Chicago
Server Local Time: 2012-04-24 17:21:02
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: America/Chicago (-21600)
MySQL: 5.1.56
Locale: English_United Kingdom.1252
Server: Apache
PHP Server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.38.7
Active plugins: aro_slideshow-0.4.1, zem_contact_lang-4.0.3.6, zem_contact_reborn-4.0.3.20, hak_tinymce-1.0.2
Admin-side theme: classic 4.4.1

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: utf8
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: txp_hak_tinymce is latin1

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: date/5.2.17, libxml, openssl, pcre, zlib/1.1, bcmath, bz2, calendar, ctype, curl, dbase, dom/20031129, hash/1.0, filter/0.11.0, ftp, gd, gettext, session, iconv, standard/5.2.17, json/1.2.1, mbstring, mcrypt, mhash, mime_magic/0.1, mssql, mysql/1.0, SimpleXML/0.1, odbc/1.0, posix, pspell, Reflection/0.1, imap, SPL/0.2, mysqli/0.1, soap, sockets, exif/1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $, tidy/2.0, tokenizer/0.1, wddx, xml, xmlreader/0.1, xmlrpc/0.51, xmlwriter/0.1, xsl/0.1, zip/1.8.11, cgi-fcgi, magickwand/1.0.8, imagick/3.0.1RC2, PDO/1.0.4dev, pdo_sqlite/1.0.1, SQLite/2.0-dev, pdo_mysql/1.0.2, SourceGuardian/8.2, ionCube Loader, Zend Optimizer

/home/agritso/public_html/kog/index.php: r3189 (5dfca604bf4976675f92222dd5628b0a)
/home/agritso/public_html/kog/css.php: r3189 (b53deffeb21070b8d493af6846db8ac3)
/home/agritso/public_html/kog/textpattern/css.php: r3189 (820df954c923979eabace541888feb4a)
/home/agritso/public_html/kog/textpattern/include/import/import_b2.php: r3446 (7a044ad474fd04ae61063d0df15e05d8)
/home/agritso/public_html/kog/textpattern/include/import/import_blogger.php: r3446 (4eade881581bd9932f05a7ff6e2a6e1f)
/home/agritso/public_html/kog/textpattern/include/import/import_mt.php: r3446 (f0ab362246e60f37d3c52ef3f004e79d)
/home/agritso/public_html/kog/textpattern/include/import/import_mtdb.php: r3488 (22628f6ba8d15645498ba09eb48bab32)
/home/agritso/public_html/kog/textpattern/include/import/import_wp.php: r3488 (977d7be6fad569982ad175225e8e4df5)
/home/agritso/public_html/kog/textpattern/include/txp_admin.php: r3570 (7925fc6a6c15f944ab255a0a7e239dab)
/home/agritso/public_html/kog/textpattern/include/txp_article.php: r3560 (c12a042e5f56efeb4f5af57be4d42023)
/home/agritso/public_html/kog/textpattern/include/txp_auth.php: r3571 (dea6f26aa1af3ef10a0dc002f3a397ea)
/home/agritso/public_html/kog/textpattern/include/txp_category.php: r3534 (37ecab71b01c146dd58da97d9b5c6439)
/home/agritso/public_html/kog/textpattern/include/txp_css.php: r3535 (8cbc6b0e164b1cb790bea0264e867915)
/home/agritso/public_html/kog/textpattern/include/txp_diag.php: r3521 (fac584135850fcae546cb8c59bf94688)
/home/agritso/public_html/kog/textpattern/include/txp_discuss.php: r3569 (9e1d3b6ab40fde25a41d192e5f573ef7)
/home/agritso/public_html/kog/textpattern/include/txp_file.php: r3569 (a1848e934804174886ae3b57d418ebd2)
/home/agritso/public_html/kog/textpattern/include/txp_form.php: r3560 (06f2ddc008dbc82ce8d50af615f5f1a0)
/home/agritso/public_html/kog/textpattern/include/txp_image.php: r3569 (a77c218d6db978157ec9f289d561cd33)
/home/agritso/public_html/kog/textpattern/include/txp_import.php: r3556 (f8187a926ca6a379c1b0dd79fc194bec)
/home/agritso/public_html/kog/textpattern/include/txp_link.php: r3569 (412a2382de98901a535548e5cf2def96)
/home/agritso/public_html/kog/textpattern/include/txp_list.php: r3569 (91d67b3a1576a5dee3a128a03cdf9f04)
/home/agritso/public_html/kog/textpattern/include/txp_log.php: r3569 (fd8cd943143eb3537074563625521033)
/home/agritso/public_html/kog/textpattern/include/txp_page.php: r3560 (180b3a6b8669add7dab51a67ec76f89b)
/home/agritso/public_html/kog/textpattern/include/txp_plugin.php: r3551 (51152310c17015cf906fb26ddaa68275)
/home/agritso/public_html/kog/textpattern/include/txp_prefs.php: r3555 (6e844f30b97b1454c3d201914a2464a9)
/home/agritso/public_html/kog/textpattern/include/txp_section.php: r3552 (89aacca63f7afc9fe28dc111cb61fa5d)
/home/agritso/public_html/kog/textpattern/include/txp_tag.php: r3560 (d22e90318bd6fdf006198ebd33c5e6b3)
/home/agritso/public_html/kog/textpattern/index.php: r3575 (c2c7bf18468d74254c77570a9573b46b)
/home/agritso/public_html/kog/textpattern/jquery.js: unknown (a34f78c3aecd182144818eb4b7303fda)
/home/agritso/public_html/kog/textpattern/lib/IXRClass.php: r3394 (e0b53564e1504316b35872309780edab)
/home/agritso/public_html/kog/textpattern/lib/admin_config.php: r3559 (52d8b15bbf633de98c565252b9ef8ceb)
/home/agritso/public_html/kog/textpattern/lib/class.thumb.php: r3301 (78f52a89b91018c8fa00ddd73cd398f5)
/home/agritso/public_html/kog/textpattern/lib/classTextile.php: r3566 (03d537017f6fc1f43535fa8d18f4cd48)
/home/agritso/public_html/kog/textpattern/lib/constants.php: r3488 (aa0ea1b5749497d3b19f0ed07acccaa2)
/home/agritso/public_html/kog/textpattern/lib/taglib.php: r2868 (5738c5e31820cda422f32701c71cb77e)
/home/agritso/public_html/kog/textpattern/lib/txplib_admin.php: r3488 (e7f66b6f8cc7e5a51eb05555ad3cb6dc)
/home/agritso/public_html/kog/textpattern/lib/txplib_db.php: r3389 (0e7462a104d815a33d25c5a6e775f84d)
/home/agritso/public_html/kog/textpattern/lib/txplib_forms.php: r3531 (a4dbb070460ecc5698ab80bba2cdfe5b)
/home/agritso/public_html/kog/textpattern/lib/txplib_head.php: r3560 (1a82941e28253d6df3735c05df5f7ebd)
/home/agritso/public_html/kog/textpattern/lib/txplib_html.php: r3569 (84ee78759355041d1ebb2c36bf565d80)
/home/agritso/public_html/kog/textpattern/lib/txplib_misc.php: r3569 (ea1314b56962fc9c67885691d977a3c5)
/home/agritso/public_html/kog/textpattern/lib/txplib_theme.php: r3388 (51ad413813a10071873571304bea9f97)
/home/agritso/public_html/kog/textpattern/lib/txplib_update.php: r2812 (52029367bf0aef18c1879d5ff2cf3d46)
/home/agritso/public_html/kog/textpattern/lib/txplib_wrapper.php: r2931 (17472ff98d9ffb3dbcc9ebdf222d11ac)
/home/agritso/public_html/kog/textpattern/publish.php: r3500 (e3bba9bec573b33dea759c0344db96a8)
/home/agritso/public_html/kog/textpattern/publish/atom.php: r3399 (f4470b45eedc8e1ad4a48f8e74b45233)
/home/agritso/public_html/kog/textpattern/publish/comment.php: r3395 (9e8596ada0a85ebdd52e1548fda81314)
/home/agritso/public_html/kog/textpattern/publish/log.php: r3505 (8401dab65b91b1b1021fc876daf473bd)
/home/agritso/public_html/kog/textpattern/publish/rss.php: r3399 (f8cb3ec280bffb8a15832ee3143f576c)
/home/agritso/public_html/kog/textpattern/publish/search.php: r2812 (e2355f5b045bf80acc3a52ba32dddb1a)
/home/agritso/public_html/kog/textpattern/publish/taghandlers.php: r3567 (6e87e8065d71acaa25512f8901d57938)
/home/agritso/public_html/kog/textpattern/textpattern.js: r3560 (d0f6e8f931eb32d945112b712a45e32b)
/home/agritso/public_html/kog/textpattern/theme/classic/classic.php: r3191 (f5337d226aef1552c4d4d99fe3bee912)
/home/agritso/public_html/kog/textpattern/update/_to_1.0.0.php: r3047 (d631745cc332531712480f2bd6dfae29)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.2.php: r3462 (a08e1b95ea2256a33effab779989d1fd)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.3.php: r3047 (888328073220c66f316c1f04e5498692)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.4.php: r3047 (3da0f3b179ad98a49f8846c4e328cd0d)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.5.php: r2894 (e5150247c0e2d8882f65e24c938df1d6)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.6.php: r3047 (faeb0eaa7c042d18e79ded54ad3f68b3)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.7.php: r3014 (59dfb80496aa6f8bbcb486f26488f65d)
/home/agritso/public_html/kog/textpattern/update/_to_4.0.8.php: r3057 (89382671f0509e1d880707bbd293f86c)
/home/agritso/public_html/kog/textpattern/update/_to_4.2.0.php: r3480 (7bb41aac414aff7fa81cf960b5a42c1c)
/home/agritso/public_html/kog/textpattern/update/_to_4.3.0.php: r3304 (59fcf5b4e1dc7870d6729c63b824e55f)
/home/agritso/public_html/kog/textpattern/update/_to_4.4.0.php: r3498 (4b3bd3eadb29f3a9df6398126e137a87)
/home/agritso/public_html/kog/textpattern/update/_update.php: r3575 (3386cdffb48e0b00c2b77e00ef57daec)

————————————

Offline

#6 2012-04-24 22:28:18

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random code appears on the page

I can’t see anything wrong there… So you are saying that you can actually see that code in Presentation > Pages, and delete it, but it doesn’t disappear? Could you post the full code on that page, or a tag trace? (I’m not sure which one is going to tell me something…)

Offline

#7 2012-04-24 22:31:49

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

Yes, I’m saying that I can see the code but when I delete it and then save it and scroll back down, it reappears. Here is the code from that page:

<!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" xml:lang="en" lang="en">
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
	<title><txp:page_title /></title>

	<link rel="home" href="<txp:site_url />" />

	<txp:css format="link" />

	<txp:rsd />

	<!-- Basic Page Needs
  ================================================== -->
	<meta charset="utf-8">
	<meta name="description" content="">
	<meta name="author" content="">
	<!--[if lt IE 9]>
		<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- Mobile Specific Metas
  ================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

</head>
<body>

<div class="container">
	<div class="twelve columns">
	  <div id="header">

    </div> <!-- End header -->

  </div><!-- end twelve col -->

<div class="four columns">
<div id="ser-tim">
<txp:article_custom form="custom_article" section="middle_article_two" />
</div><!-- end ser-tim -->
</div><!-- end four col -->

  <div class="sixteen columns">

     <div id="middle">

<txp:output_form form="middle" />

     </div>  <!-- End middle -->

  </div>

     <div id="content">

<div class="sixteen columns">
        <div id="navbar">

<div class="four columns">
<div id="pl">
<txp:section class="parish_life" link="1" title="1" name="parish_life"><txp:image id="43" /></txp:section></div></div>

<div class="eight columns">
<li><txp:article_custom form="custom_article" section="middle_article_one" /></li></div>

<div class="four columns">
<div id="cal">
<txp:section class="calendar" link="1" title="1" name="calendar"><txp:image id="42" /></txp:section></div></div>

         </div>
	</div>	  

       <div class="eight columns">
        <div id="blog">
      <h1><txp:section link="1" title="1" name="blog">The Pastor's Blog</txp:section></h1>
      <txp:article_custom limit="1" section="blog" form="excerpt" />
      </div>
       </div>

    	 <div class="eight columns">
    	  <div id="upcoming">
      <h1>Upcoming Events</h1>
     <txp:article_custom id="14" section="upcoming_events" form="custom_article" />
      </div>
    	</div>
		 </div><!-- End content -->

</div><!-- End container -->

</body>
</html>div id=

(added bc.. for better code display. -Els)

Last edited by els (2012-04-24 22:39:23)

Offline

#8 2012-04-24 22:42:30

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Random code appears on the page

Still no clue… If you change anything else on the page, does it save that?

Last edited by els (2012-04-24 22:42:49)

Offline

#9 2012-04-24 22:42:58

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

Yes, it does.

Offline

#10 2012-04-24 22:54:05

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

I don’t know if this will help or not, here is the tag trace:

<!-- Runtime:    0.0478 -->
<!-- Query time: 0.028374 -->
<!-- Queries: 25 -->
<!-- Memory: 2888Kb, <txp:permlink> -->
<!-- txp tag trace: 
[SQL (0.00187206268311): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.00188493728638): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.00178217887878): select page, css from txp_section where name = 'default' limit 1]
[SQL (0.00162887573242): select host from txp_log where ip='66.170.217.31' limit 1]
[SQL (0.00148010253906): insert into txp_log set `time`=now(),page='/kog/',ip='66.170.217.31',host='conr2-adsl-dhcp-66-170-217-31.consolidated.net',refer='',status='200',method='GET']
[SQL (0.00103092193604): select user_html from txp_page where name='home_new']
[Page: home_new]
<txp:page_title />
<txp:site_url />
<txp:css format="link" />
<txp:rsd />
<txp:article_custom form="custom_article" section="middle_article_two" />
	[SQL (0.000741004943848): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('middle_article_two') order by Posted desc limit 0, 10]
	[article 38]
	[SQL (0.00110220909119): select Form from txp_form where name='custom_article']
	[Form: custom_article]
	<txp:body />
<txp:output_form form="middle" />
	[SQL (0.00103688240051): select Form from txp_form where name='middle']
	[Form: middle]
	<txp:section class="newcomers" link="1" title="1" name="newcomers">
		[SQL (0.00103092193604): select title from txp_section where name='newcomers']
		<txp:image id="40" />
			[SQL (0.00104522705078): select * from txp_image where id = 40 limit 1]
	</txp:section>
	<txp:section class="newcomers" wraptag="p" link="1" title="1" name="newcomers" />
	<txp:section class="worship" link="1" title="1" name="worship">
		[SQL (0.00102591514587): select title from txp_section where name='worship']
		<txp:image id="41" />
			[SQL (0.000833034515381): select * from txp_image where id = 41 limit 1]
	</txp:section>
	<txp:section class="worship" wraptag="p" link="1" title="1" name="worship" />
	<txp:section class="directions" link="1" title="1" name="directions">
		[SQL (0.000738859176636): select title from txp_section where name='directions']
		<txp:image id="39" />
			[SQL (0.000680923461914): select * from txp_image where id = 39 limit 1]
	</txp:section>
	<txp:section class="directions" wraptag="p" link="1" title="1" name="directions" />
<txp:section class="parish_life" link="1" title="1" name="parish_life">
	[SQL (0.000716924667358): select title from txp_section where name='parish_life']
	<txp:image id="43" />
		[SQL (0.00113201141357): select * from txp_image where id = 43 limit 1]
</txp:section>
<txp:article_custom form="custom_article" section="middle_article_one" />
	[SQL (0.00106406211853): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('middle_article_one') order by Posted desc limit 0, 10]
	[article 36]
	[Form: custom_article]
	<txp:body />
<txp:section class="calendar" link="1" title="1" name="calendar">
	[SQL (0.00103306770325): select title from txp_section where name='calendar']
	<txp:image id="42" />
		[SQL (0.00104808807373): select * from txp_image where id = 42 limit 1]
</txp:section>
<txp:section link="1" title="1" name="blog">
	[SQL (0.00102996826172): select title from txp_section where name='blog']
</txp:section>
<txp:article_custom limit="1" section="blog" form="excerpt" />
	[SQL (0.000892162322998): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section IN ('blog') order by Posted desc limit 0, 1]
	[article 10]
	[SQL (0.00103521347046): select Form from txp_form where name='excerpt']
	[Form: excerpt]
	<txp:title />
	<txp:excerpt />
	<txp:permlink>
	</txp:permlink>
<txp:article_custom id="14" section="upcoming_events" form="custom_article" />
	[SQL (0.000714063644409): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 and Status >= 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and ID IN (14) and Section IN ('upcoming_events') order by Posted desc limit 0, 10]
	[article 14]
	[Form: custom_article]
	<txp:body />
[ ~~~ secondpass ~~~ ]
 -->

{Edited to add bc.. for code indentation. – Uli}

Last edited by uli (2012-04-24 22:59:40)

Offline

#11 2012-04-24 23:14:07

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Random code appears on the page

Do you have some admin side plugin that does something to the write page that could be causing this? I once saw something similar where a plugin was doing a search and replace and sometimes affected textarea data.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#12 2012-04-24 23:16:53

agritsogap
Member
From: Houston TX
Registered: 2011-11-25
Posts: 11

Re: Random code appears on the page

I have the WYSIWYG and that’s pretty much it. Has hak_tinymce ever had an issue like that?

Offline

Board footer

Powered by FluxBB