Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-05-28 11:49:41

Phil_
Member
Registered: 2009-09-21
Posts: 37

[SOLVED] Front site disappeared on upgrade to 4.4.1

I just upgraded an old site from 4.0.6 to 4.4.1 and no I can see my admin side but the site is showing blank pages.

The strange thing is when I view source that head of my page template is there and in debug mode I’m seeing sql queries as shown below but the page is blank in the browser.

I’ve tried going back to 4.0.6 and I’ve reinstalled all of the 4.4.1.

I’ve double checked my .htaccess file. I’m now completely suck and a tad stressed.

I wonder if anyone can offer a suggestion.

Many thanks

Phil

<!-- Runtime:    0.0260 -->
<!-- Query time: 0.011924 -->
<!-- Queries: 12 -->
<!-- Memory: 2741Kb, <txp:custom_field name="kwords" /> -->
<!-- txp tag trace: 
[SQL (0.00045990943908691): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.0010819435119629): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.00020790100097656): select page, css from txp_section where name = 'default' limit 1]
[SQL (0.0011069774627686): select host from txp_log where ip='bla' limit 1]
[SQL (0.0011680126190186): insert into txp_log set `time`=now(),page='/',ip='bla',host='host.bla.in-addr.btopenworld.com',refer='',status='200',method='GET']
[SQL (0.00058603286743164): select user_html from txp_page where name='default']
[Page: default]
<txp:if_section name="">
	[<txp:if_section name="">: true]
	<txp:article form="meta" id="4" />
		[SQL (0.00055909156799316): 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 (4) order by Posted desc limit 0, 10]
</txp:if_section>
<txp:article form="meta" limit="1" />
	[SQL (0.00021219253540039): select name from txp_section where on_frontpage != '1']
	[SQL (0.0013010501861572): select count(*) from textpattern where 1=1 and Status = 4 and Posted <= now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') and Section != 'Photos' and Section != 'History' and Section != 'Community' and Section != 'Ecology' and Section != 'Hackfall' and Section != 'Family-History' and Section != 'Notices' and Section != 'Village-Hall']
	[SQL (0.0047149658203125): 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 != 'Photos' and Section != 'History' and Section != 'Community' and Section != 'Ecology' and Section != 'Hackfall' and Section != 'Family-History' and Section != 'Notices' and Section != 'Village-Hall' order by Posted desc limit 0, 1]
	[article 2]
	[SQL (0.00020003318786621): select Form from txp_form where name='meta']
	[Form: meta]
	<txp:custom_field name="description" />
	<txp:custom_field name="kwords" />
[ ~~~ secondpass ~~~ ]
 -->

{Edited to add bc.. for better code display. – Uli}

Last edited by uli (2012-05-28 12:42:09)

Offline

#2 2012-05-28 12:14:35

Phil_
Member
Registered: 2009-09-21
Posts: 37

Re: [SOLVED] Front site disappeared on upgrade to 4.4.1

SOLVED!

I had these tags in the head of my page templates.

<txp:if_section name=”“>
<txp:article form=“meta” id=“4” />
</txp:else />
<txp:article form=“meta” limit=“1” />
</txp:if_section>

This injected meta keyword and descriptions from custom fields.

This is the contents of the meta form.

<meta name=“description” content=”<txp:custom_field name=“description” />” />
<meta name=“keywords” content=”<txp:custom_field name=“kwords” />” />

I’m going to have to play around to see how I can make this work again. Meanwhile I have a functioning website

Cheers

Phil

Offline

#3 2012-05-28 12:43:10

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

Re: [SOLVED] Front site disappeared on upgrade to 4.4.1

Phil, what I can spot immediately is this:
</txp:else /> should be <txp:else />. Possibly the improved (Yup! :) tag parser chokes on the first slash.


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

Offline

#4 2012-05-28 12:57:11

Phil_
Member
Registered: 2009-09-21
Posts: 37

Re: [SOLVED] Front site disappeared on upgrade to 4.4.1

Uli, Many thanks for your prompt reply.

The rest of the answer was in the handling of nested double quotes in the form. Now sorted by using single quotes in the txp tag.

I now have another problem. In admin prefs when I change to “Live” and look at diagnostics I have a list of about 50 to 70 files in red and at the top of this it says.

You are running in-development files on a live server:

Offline

#5 2012-05-28 14:03:50

Phil_
Member
Registered: 2009-09-21
Posts: 37

Re: [SOLVED] Front site disappeared on upgrade to 4.4.1

Completely sorted now. In my haste to try and get the site working again I failed to copy over the checksum.txt file.

Preflight now says “All checks passed!”

Phew

Thanks for your help uli, it is very much appreciated.

Offline

Board footer

Powered by FluxBB