Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-03-17 00:03:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Please post the code edit: complete set of tags of one of the pages that come out blank and all of the forms it calls.
Name them.
Put one bc.. before a large chunk, note the trailing blank after the dots. This puts pre tags around the code which help diagnose apostrophe problems.
After code blocks you can start normal text with p. , again: note the trailing blank.

Last edited by uli (2011-03-17 00:05:06)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#14 2011-03-17 00:13:26

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Ok… here’s the code for our_work section. All sections are using page template entitled default.

Page Template

<txp:output_form form="meta" />
<body id="<txp:if_section name="">front<txp:else /><txp:section /></txp:if_section>">

<!-- accessibility -->
<div id="accessibility">
	<ul>
		<li><a href="#content"><txp:text item="go_content" /></a></li>
		<li><a href="#sidebar-1"><txp:text item="go_nav" /></a></li>
		<li><a href="#sidebar-2"><txp:text item="go_search" /></a></li>
	</ul>
</div>

<div class="container">


<!-- head -->
  <txp:output_form form="head" />

<script type="text/javascript" src="/files/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/files/jquery.cycle.lite.1.1.js"></script> 
<script type="text/javascript" src="/files/jquery.corners.js"></script> 



<!--  initialize the slideshow when the DOM is ready -->
<script type="text/javascript">
$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});

</script>



<txp:js n="slideshow" />

<div id="thumbs" class="navigation">
<txp:article listform="gallery" form="gallery" sort="Posted asc" limit="1" />
<div id="content">
<div id="gallery" class="content">
<div id="slideshow" class="slideshow"></div>
<div id="controls"></div>
<div id="caption" class="embox"></div>

<txp:if_section name="Home" >
<div class="slideshow" id="slideshow1">
 <img src="<txp:http://www.fonmedia.co.uk/images/{id#1}.jpg"
     alt="{alt#1}" width="{width#1}” height=”{height#1}" />
</div>
</txp:if_section>

<!-- footer -->
	<txp:output_form form="footer" />

</div>

</body>
</html> 

Here’s article forms…

article_listing
bc.. <txp:if_first_article><ul class=“directory”></txp:if_first_article>

<li><span class=“entry-title”><txp:permlink><txp:title /></txp:permlink></span> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></span></li>

<txp:if_last_article></ul></txp:if_last_article>

default:

<txp:if_individual_article>
<h1 class="entry-title"><txp:permlink></txp:permlink></h1>
<txp:else />
<h3 class="entry-title"><txp:permlink></txp:permlink></h3>
</txp:if_individual_article>

<p class="published"></p>

<div class="entry-content">
<txp:body />
</div>

<p class="tags"><txp:category1 title="1" link="1" /> <txp:category2 title="1" link="1" /></p>

gallery:

<txp:if_section name="Home" >
<div class="slideshow" id="slideshow1">
 <img src="<txp:txp:www.fonmedia.co.uk/images/{id#1}.jpg"
     alt="{alt#1}" width="{width#1}” height=”{height#1}" />
</div>
</txp:if_section>

intro:

<txp:body />

subnav:

<li<txp:rvm_if_this_article> class="active"</txp:rvm_if_this_article>><a href="<txp:permlink />"><txp:title /></a></li>

Here’s misc forms:

article_image_form:
bc.. <li><a href=”<txp:upm_img_full_url />” title=”<txp:upm_img_caption />” class=“thumb” ><img src=”<txp:upm_img_thumb_url />” alt=”<txp:upm_img_alt />” /></a>

<div class=“caption”>
<div class=“image-title”><txp:upm_img_alt /> </div>
<div class=“image-desc”><txp:upm_img_caption /></div>
</div>
</li>

footer:
bc.. <div id=“foot” >

<div align=“left”>
<div class=“span-5”>
<txp:article_custom status=“sticky” sort=“posted asc” form=“intro”/>
<p>288 A BURTON ROAD DIDSBURY</p>
<p>GREAT MANCHESTER</p>
<p>M20 2NB</p>

<div align=“center”>
<div class=“span-21”>
<p>Tel +44 7580 792703</p>

<p>glyn@fonmedia.co.uk</p>

<div align=“right”>
<div class=“span-22 last”>
<txp:article_custom status=“sticky” sort=“posted asc” form=“intro”/>
<p>Registered No. 7444194</p>

</div>
</div>
</div>

head:

<div id="head">

<div class="slideshow">
		<txp:image id="4" width="700" height="84" />
                <txp:image id="5" width="700" height="84" />
		<txp:image id="6" width="700" height="84" />

<txp:section_list wraptag="ul" break="li" active_class="active" sections="our_work, our_people, contact_us" include_default="1" default_title="Home"/>


</div>

meta:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Fon Media Solutions" />        
<meta name="keywords" content="Fon, Media, Solutions, brief, websites, web design, videos, visual images, radio adverts, animations, UK, Glyn, Fred" />
<meta name="rating" content="general" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="2 weeks" />
<meta name="author" content="Fon Media Solutions" />

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

<link rel="shortcut icon" href="http://www.fonmedia.co.uk/favicon.ico" type="image/x-icon" />


<txp:feed_link flavor="atom" format="link" label="Atom" section="blog"/>
<txp:feed_link flavor="rss" format="link" label="RSS" section="blog"/>

<txp:css format="link" />


</head>

Really appreciate anyone willing to look through all this code! Please note I’ve been learning from existing textpattern templates and changing bits of code so there may well be some redundant things in here.

Last edited by kstewart (2011-03-17 00:21:12)


www.kimstewart.co.uk

Offline

#15 2011-03-17 00:17:47

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

While I look over the page’s code, please replace br.. with bc.. and put p. before each name. Thanks.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#16 2011-03-17 00:18:41

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Yeah, very sorry! Should’ve previewed before posting!


www.kimstewart.co.uk

Offline

#17 2011-03-17 00:19:13

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

What happens when you remove the duplicate </txp:if_section> from the page’s second line?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#18 2011-03-17 00:22:29

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

I lose everything!


www.kimstewart.co.uk

Offline

#19 2011-03-17 00:23:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

??

What can be less than a blank page?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#20 2011-03-17 00:25:10

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,302

Re: Articles not displaying, sections blank, slideshow not working, etc...

Did you really remove only one of the if_section tags?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#21 2011-03-17 00:25:38

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

check it out <a href=“http://www.fonmedia.co.uk/” </a>


www.kimstewart.co.uk

Offline

#22 2011-03-17 00:27:12

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Yup…

before :
bc.. <txp:output_form form=“meta” />
<body id=”<txp:if_section name=”“>front<txp:else /><txp:section /></txp:if_section>”>

after:
bc.. <txp:output_form form=“meta” />
<body id=”<txp:if_section name=”“>front<txp:else /><txp:section />”>


www.kimstewart.co.uk

Offline

#23 2011-03-17 00:30:13

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

have changed it back now…


www.kimstewart.co.uk

Offline

#24 2011-03-17 00:33:00

kstewart
Member
Registered: 2011-03-09
Posts: 71
Website

Re: Articles not displaying, sections blank, slideshow not working, etc...

Ok… let’s go to bed and leave this till tomorrow or something?

For tomorrow, my diagnostics may help:

Textpattern version: 4.3.0 (r3451)
Last Update: 2011-03-16 14:15:53/2011-03-16 14:06:18
Document root: /home/fonmedia/public_html
$path_to_site: /home/fonmedia/public_html
Textpattern path: /home/fonmedia/public_html/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/fonmedia/public_html/textpattern/tmp
Site URL: www.fonmedia.co.uk
PHP version: 5.2.9
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: Europe/London
Server Local Time: 2011-03-17 00:31:21
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: Europe/London (0)
MySQL: 5.0.91-community
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.31.9-grsec-VISION
Active plugins: adi_contact-0.3, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, rvm_if_this_article-0.1, the_video-0.7, ebl-image-edit-1.0, upm_image-0.6.2, stm_javascript-0.3, smd_admin_themes-0.26, smd_where_used-0.30
Admin-side theme: classic 1.3

Pre-flight check: 
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: proc_close, proc_get_status, proc_nice, proc_terminate, escapeshellcmd, define_syslog_variables, posix_uname, posix_getpwuid, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellarg, posix_uname, ftp_exec, ftp_connect, ftp_login, ftp_get, ftp_put, ftp_nb_fput, ftp_raw, ftp_rawlist, ini_alter, ini_restore, inject_code, syslog, openlog, define_syslog_variables, apache_setenv, mysql_pconnect, eval, phpAds_remoteInfo, fp, fput
------------------------

.htaccess file contents: 
------------------------

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

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: /usr/share/mysql/charsets/
18 Tables: txp_js 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: zip/1.8.11, libxml, xsl/0.1, xmlwriter/0.1, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, wddx, tokenizer/0.1, tidy/2.0, session, pcre, SimpleXML/0.1, sockets, soap, SPL/0.2, standard/5.2.9, Reflection/0.1, posix, mysqli/0.1, mysql/1.0, mime_magic/0.1, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.11.0, exif/1.4 $Id: exif.c,v 1.173.2.5.2.27 2008/12/31 11:17:37 sebastian Exp $, dbase, date/5.2.9, curl, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, cgi, PDO/1.0.4dev, pdo_sqlite/1.0.1, SQLite/2.0-dev, imagick/2.2.2, pdo_mysql/1.0.2, ionCube Loader, Zend Optimizer

/home/fonmedia/public_html/index.php: 
	r3189 (b58ca188e05a48b31d1025d61e026725)
/home/fonmedia/public_html/css.php: 
	r3189 (5e7fe7ea948c7e9ec2e56e34a01f4bb6)
/home/fonmedia/public_html/textpattern/css.php: 
	r3189 (4e131ff20d1da3e20b2c629292138653)
/home/fonmedia/public_html/textpattern/include/import/import_b2.php: 
	r3446 (e05c2808566822ed4a6e525ee4bc4192)
/home/fonmedia/public_html/textpattern/include/import/import_blogger.php: 
	r3446 (2096da3f746152301620e18a4ccfe0f8)
/home/fonmedia/public_html/textpattern/include/import/import_mt.php: 
	r3446 (f0be9ce384eec112f8e70687458173cc)
/home/fonmedia/public_html/textpattern/include/import/import_mtdb.php: 
	r3446 (c8f07f5a6db990382e4a30a1d57333e6)
/home/fonmedia/public_html/textpattern/include/import/import_wp.php: 
	r3446 (0740155a2d06657893acc7c7d968770d)
/home/fonmedia/public_html/textpattern/include/txp_admin.php: 
	r3386 (ffb4129e774cfbb8643c2e05f37f3507)
/home/fonmedia/public_html/textpattern/include/txp_article.php: 
	r3440 (db97df274f245047f305ff75b1e20560)
/home/fonmedia/public_html/textpattern/include/txp_auth.php: 
	r3374 (a7f13cd308c5c500105f2b5994cc3aad)
/home/fonmedia/public_html/textpattern/include/txp_category.php: 
	r3374 (5af7cf31692bb2213f93babfef5a6657)
/home/fonmedia/public_html/textpattern/include/txp_css.php: 
	r3379 (88587e0dc2d159be4e521dbf33de7bb7)
/home/fonmedia/public_html/textpattern/include/txp_diag.php: 
	r3446 (1903c263988e7ce4d705e5f0d7ee5bdf)
/home/fonmedia/public_html/textpattern/include/txp_discuss.php: 
	r3374 (ec56dc03cb9ac06f5f026d0a3daf3bac)
/home/fonmedia/public_html/textpattern/include/txp_file.php: 
	r3416 (3159e53e1f35099257be71fe85adf021)
/home/fonmedia/public_html/textpattern/include/txp_form.php: 
	r3382 (e6574a6280585918bd7d4c6d202c3b85)
/home/fonmedia/public_html/textpattern/include/txp_image.php: 
	r3441 (9a93e09c68754dd10f1dc007914652d9)
/home/fonmedia/public_html/textpattern/include/txp_import.php: 
	r3374 (3dbc737eaa1def0771d76344ff7fb116)
/home/fonmedia/public_html/textpattern/include/txp_link.php: 
	r3374 (bb85e92bc8df2363676817a10c0d5801)
/home/fonmedia/public_html/textpattern/include/txp_list.php: 
	r3374 (88af3230cf8dc28747b10a1fea20800a)
/home/fonmedia/public_html/textpattern/include/txp_log.php: 
	r3374 (acb6773311e80fbf87a38587c99a7d2d)
/home/fonmedia/public_html/textpattern/include/txp_page.php: 
	r3379 (92d4d3d0dd9d6ef46fb6e1fdb6d1b0b1)
/home/fonmedia/public_html/textpattern/include/txp_plugin.php: 
	r3374 (d73a4547e590fc476279278fa8aeb391)
/home/fonmedia/public_html/textpattern/include/txp_prefs.php: 
	r3445 (959c2a15daf42c8c6da5957b98b0213d)
/home/fonmedia/public_html/textpattern/include/txp_preview.php: 
	r1238 (d55a3df200602c69eb65c72dc8ad7477)
/home/fonmedia/public_html/textpattern/include/txp_section.php: 
	r3374 (d496b080b90519a9a6e180b0fd0451f8)
/home/fonmedia/public_html/textpattern/include/txp_tag.php: 
	r3444 (b8634c90e7ea16c60d1370a867e91626)
/home/fonmedia/public_html/textpattern/index.php: 
	r3451 (dd519f665b0ffb952246f5d91170134c)
/home/fonmedia/public_html/textpattern/jquery.js: 
	unknown (e4958bd2e32d9fcd6115a585ed17a9cc)
/home/fonmedia/public_html/textpattern/lib/IXRClass.php: 
	r3394 (f8621cd5f0f36c69360aa2033e4065af)
/home/fonmedia/public_html/textpattern/lib/admin_config.php: 
	r3386 (6b2b6db38da2baa82f5557a6e29bad97)
/home/fonmedia/public_html/textpattern/lib/class.thumb.php: 
	r3301 (6ca1ad88082438f88cae6416dcb29822)
/home/fonmedia/public_html/textpattern/lib/classTextile.php: 
	r3438 (734d0ebd2f9e7c4c84bf93bf5cde5d58)
/home/fonmedia/public_html/textpattern/lib/constants.php: 
	r3318 (a2b38baeb4ba77f9dfdd4ad71e277549)
/home/fonmedia/public_html/textpattern/lib/taglib.php: 
	r2868 (c9676967585577f0a0b329803761d516)
/home/fonmedia/public_html/textpattern/lib/txplib_admin.php: 
	r3047 (d5211ebfac4f3b6d00f22d459f3cdf69)
/home/fonmedia/public_html/textpattern/lib/txplib_db.php: 
	r3389 (3324a5dab30f68bda3fa7218514f91b7)
/home/fonmedia/public_html/textpattern/lib/txplib_forms.php: 
	r3372 (447c117e7072a73e67ebe2dc41fe46ee)
/home/fonmedia/public_html/textpattern/lib/txplib_head.php: 
	r3388 (e59cdf9aa24c4d2fb88d0d45076be68e)
/home/fonmedia/public_html/textpattern/lib/txplib_html.php: 
	r3372 (17041abcc0779d22a6224feb8dfd3492)
/home/fonmedia/public_html/textpattern/lib/txplib_misc.php: 
	r3437 (b9de32008e7a9ac596e637d993aab37e)
/home/fonmedia/public_html/textpattern/lib/txplib_theme.php: 
	r3388 (99262eb207d3b49a343ad4b5c1dd3e64)
/home/fonmedia/public_html/textpattern/lib/txplib_update.php: 
	r2812 (54d6fa23f3f3fc5c2cb31262c6aa343f)
/home/fonmedia/public_html/textpattern/lib/txplib_wrapper.php: 
	r2931 (22f292521a595090b46300354db6df57)
/home/fonmedia/public_html/textpattern/publish.php: 
	r3433 (3469e21a32b2411d56e57701baf296f6)
/home/fonmedia/public_html/textpattern/publish/atom.php: 
	r3399 (9a4eeebe17b8c833bc382b6287fbb168)
/home/fonmedia/public_html/textpattern/publish/comment.php: 
	r3395 (8a55386ccfd856bd5df68c84058e5ba0)
/home/fonmedia/public_html/textpattern/publish/log.php: 
	r3247 (257c3a247f0ca6a21513beb2f09d76c6)
/home/fonmedia/public_html/textpattern/publish/rss.php: 
	r3399 (da9ab0c78c57b4169a360dfa0aa6c753)
/home/fonmedia/public_html/textpattern/publish/search.php: 
	r2812 (22762b20f6281fd132248ec42e5ee9af)
/home/fonmedia/public_html/textpattern/publish/taghandlers.php: 
	r3443 (e9a2a51863fd241cd8e7e8c0785120ab)
/home/fonmedia/public_html/textpattern/textpattern.js: 
	r3369 (b87b0a897cc2259aa5132da030764c9d)
/home/fonmedia/public_html/textpattern/theme/classic/classic.php: 
	r3191 (8af2d7091676308c93021843c629812d)
/home/fonmedia/public_html/textpattern/update/_to_1.0.0.php: 
	r3047 (8aa7c3d82aad8df47adf96e92f124137)
/home/fonmedia/public_html/textpattern/update/_to_4.0.2.php: 
	r3047 (81324dcf9bed59bacd73789c2b650305)
/home/fonmedia/public_html/textpattern/update/_to_4.0.3.php: 
	r3047 (c237b669e57b7fe0ea2f8c7cc9d69557)
/home/fonmedia/public_html/textpattern/update/_to_4.0.4.php: 
	r3047 (d3e62265ff5ad36a8a7de23e6148f6f9)
/home/fonmedia/public_html/textpattern/update/_to_4.0.5.php: 
	r2894 (7f5fe789f58a202e23c1b430a2659110)
/home/fonmedia/public_html/textpattern/update/_to_4.0.6.php: 
	r3047 (687e230c2c6a46a6c73d3e97ee368d92)
/home/fonmedia/public_html/textpattern/update/_to_4.0.7.php: 
	r3014 (fa83153d09e2e533ce41f69799b90f5c)
/home/fonmedia/public_html/textpattern/update/_to_4.0.8.php: 
	r3057 (26d76a86cb95757355958e06b6063afe)
/home/fonmedia/public_html/textpattern/update/_to_4.2.0.php: 
	r3233 (9bd2be46df10e2f0561634a2de4cdc63)
/home/fonmedia/public_html/textpattern/update/_to_4.3.0.php: 
	r3304 (0f57c27668c4f791530830d92b146dde)
/home/fonmedia/public_html/textpattern/update/_update.php: 
	r3451 (9d15292f6117490393ff999cd052027e)

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

www.kimstewart.co.uk

Offline

Board footer

Powered by FluxBB