Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-04-13 05:51:25

TracyRe
Member
Registered: 2005-10-09
Posts: 20

Upgraded to 4.5.0, everything is there but content is not rendering

I upgraded a Textpattern installation to 4.5.0 (my webhost only offers PHP 5.3.2 or so, less than needed for 4.6.2). I can see all the articles, sections, forms, categories, etc. in /textpattern/ but the site will not build. Images and the stylesheet load; the only content that displays is section titles, as well as a copyright plugin. I cleaned up deprecated tags, sortby and sortdir. Diagnostics didn’t show any errors.

The site is (temporarily) at www.harmonyyogaportland.com/harmony/. The front page should look like www.harmonyyogaportland.com/index.html. I really don’t know where to look for how to force the site to render properly, or even what information to offer. Many thanks for any assistance.

Offline

#2 2017-04-13 06:29:33

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,120
Website Mastodon

Re: Upgraded to 4.5.0, everything is there but content is not rendering

<!—<div id=“content”> ******** BEGIN CONTENT ********** —>
<br /> <!— </div> <******** END CONTENT ********** —>

this doesn’t look correct to me..
you have both <div id="content"> and </div> inside a comment .. ie hidden … and then you don’t have any output from the db.


…. texted postive

Offline

#3 2017-04-13 09:51:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

Just out of curiosity, try this:

  1. Find an article you know should be appearing on the site and visit its public URL.
  2. Open the same article in the admin side Write panel.
  3. Save it.
  4. Revisit the public URL (maybe force refresh). Does it appear now?

If so, it’ll be a weird character encoding/Textile issue we’ve seen from time to time during upgrades that we’ve never pinned down. There’s a plugin out there somewhere with a sed_ prefix that will re-render all your articles in Textile (essentially doing a save en-masse, after backing up first of course) but I’ve had mixed results with it. Sometimes it works, other times it… doesn’t for some reason. In which case, depending on the number of articles you have is to just visit each one and resave it. Not friendly, sorry.

If it’s not that, we’ll try something else.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2017-04-13 12:07:17

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

Re: Upgraded to 4.5.0, everything is there but content is not rendering

Bloke wrote #305321:

There’s a plugin out there somewhere with a sed_ prefix that will re-render all your articles in Textile

Do you mean sed_textile_upgrade? (The only plugin by Netcarver I have with Textile in its name).


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

Offline

#5 2017-04-13 13:08:47

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

uli wrote #305324:

Do you mean sed_textile_upgrade

That’s the puppy.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2017-04-13 15:59:33

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,120
Website Mastodon

Re: Upgraded to 4.5.0, everything is there but content is not rendering

Bloke wrote #305321:

If so, it’ll be a weird character encoding/Textile issue we’ve seen from time to time during upgrades that we’ve never pinned down.

actually there was a weird character issue going on when i was trying to select – copy – paste from the page source last night. one line never seemed to show up after pasting into my texteditor nor in BBEdit. It only appeared when pasting into Apple Mail


…. texted postive

Offline

#7 2017-04-13 16:27:56

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

bici wrote #305329:

actually there was a weird character issue going on when i was trying to select – copy – paste from the page source last night.

Yeah, I think it’s a utf8/utf8mb4 thing, but I’m not entirely sure. Wish I could track it down: it hit me on a site upgrade that I ported from an old DB recently and I ended up manually going through 300+ articles and saving each one…. grrrr.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#8 2017-04-13 20:25:27

TracyRe
Member
Registered: 2005-10-09
Posts: 20

Re: Upgraded to 4.5.0, everything is there but content is not rendering

The commented out divs are legacy html that I didn’t bother deleting. They don’t affect my straight index.html page, shouldn’t affect this. Was worth a look, though. Wouldn’t be the first time I did something like that.

I tried the sed_textile_upgrade plugin. No change other than to make one article appear where it had no business being (I subsequently set it to hidden, which is okay since it was for a past event).

Now what I have found is that some individual articles do display publicly, some don’t. The public URLs vary wildly as well. Those that display have friendly URLs, like /28/article-name and others have URLs like index.php?txpreview=106.1492114699

The articles are not displaying, either singly or in lists, on pages. Teachers page should have a list of articles with the category Teachers and Policies & Information should have a single article with the category Policies & Information.

This is my default page code:

<section> <!-- ******** BEGIN CONTENT ********** -->
<div class="row">
<div class="col s12 m10 l8">
<txp:if_section name="Special-Events">
<h3><txp:section title="1" /></h3>
<txp:article form="special_event" status="sticky" sort="posted asc" limit="1" />
<txp:else />
<h1><txp:section title="1" /></h1>
<txp:article form="static" status="sticky" sort="posted asc" limit="100" />
</txp:if_section>
</div>
</div>
 </section>  <!-- ******** END CONTENT ********** -->

EDIT: added bc... code tag

Offline

#9 2017-04-13 20:40:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

TracyRe wrote #305336:

Those that display have friendly URLs, like /28/article-name and others have URLs like index.php?txpreview=106.1492114699

The ones that don’t display are therefore set to Draft. Use the multi-edit tool on the Articles panel to change them all to Live and they should appear on the site.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#10 2017-04-13 20:48:37

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,925
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

TracyRe wrote #305336:

This is my default page code:

<txp:article form=“special_event” status=“sticky” sort=“posted asc” limit=“1” />

<txp:article form=“static” status=“sticky” sort=“posted asc” limit=“100” />

Bloke wrote #305338:

The ones that don’t display are therefore set to Draft. Use the multi-edit tool on the Articles panel to change them all to Live and they should appear on the site.

No, your txp:article tags say status="sticky", so you need to change the status to Sticky, not to Live.

FYI: the links with …txpreview… are the one’s you see when click on “preview” in the admin area. They’re not links other people can reach.


TXP Builders – finely-crafted code, design and txp

Offline

#11 2017-04-13 21:58:42

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,795
Website GitHub

Re: Upgraded to 4.5.0, everything is there but content is not rendering

jakob wrote #305339:

No, your txp:article tags say status="sticky", so you need to change the status to Sticky, not to Live.

Good catch, didn’t actually look at the code, just saw the preview-style URLs and threw an answer out based on that. Next time, Stef, read everything…


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#12 2017-04-14 14:46:31

TracyRe
Member
Registered: 2005-10-09
Posts: 20

Re: Upgraded to 4.5.0, everything is there but content is not rendering

Oops, the preview URLs were just me being stupid. Those articles should be hidden.

But my problem still remains that the pages aren’t building.

Offline

Board footer

Powered by FluxBB