We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

textile results in blank page

Development and Programming

Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

I’m getting a blank page only on one page. I suspected a syntax error or memory (i up’d my mem to 128M btw).

I eliminated everything from the file until i was left with this:

{exp:weblog:entries weblog="payment_methods" dynamic="off" }
    <div>
        {payment_image} 
    </div>
    <div>
        <h2>{title}</h2>
         
         {exp:textile}{payment_body}{/exp:textile} 
      
    </div>
{/exp:weblog:entries}

It still resulted in a blank page until i changed the payment_body field from textile to none. then wallah.. it worked. if i switch it back to textile it breaks again. so i figured maybe i have a weird bit of text in my field so i removed all the text in each entry and just put the word ‘test’… but textile still breaks the page…

any ideas?

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

this is just sooo weird.. i set up another weblog and field group that mirrored the first one and when i published entries it seems to work… I’m soooo confused…

{exp:weblog:entries weblog="testit" dynamic="off" }
        <div>
        {test_photo} 
    </div>
<div>
        <h2>{title}</h2>
         
         {exp:textile}{test_blurb}{/exp:textile} 
      
    </div>
{/exp:weblog:entries}
       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

YIKES!!! now i’m getting really scared (i’m at the end of this 4 month project - it can’t go bad now!)!!!!

I created another weblog and used the same exact field group as the first one that failed.. then i was lucky enough to get an error only ONE TIME:

Warning: Typography::require_once(./system/plugins/pi..php) [typography.require-once]: failed to open stream: No such file or directory in /var/www/html/system/core/core.typography.php on line 470

Fatal error: Typography::require_once() [function.require]: Failed opening required './system/plugins/pi..php' (include_path='.:/php/includes:/usr/local/lib/php:/usr/local/php/lib/php') in /var/www/html/system/core/core.typography.php on line 470

And now i don’t get any errors… just a blank page…

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Sounds like you might be using a custom field extension that is not writing properly to the database? What you are seeing would occur if the field’s formatting column was empty/null.

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

there have been a few times during development when I started to go in a certain direction and then decided to change things up so i deleted either a field or a whole field group or a whole weblog… could that cause this problem?

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

No, normal operations with unmodified code would not do this. What extensions are you running, or have you run in the past?

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

dulee noted filter by author File by mark Huot Category Checkboxes LG Member List

I already tried disabling my extensions too.. but it didn’t help anything.

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

Disabling them now won’t alter what’s already been done in the database. File was probably the culprit, see this thread for details.

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

<gulp> so what do i do now? I’m afraid to ask…

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

If you use the same formatting type for all of your entries for the affected field(s), you can edit the field, change the formatting type, then edit again and change it back to the format type you want to use, and check the box at the bottom to update all existing data to use that formatting type. That will populate the column with the appropriate data for you.

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

I’m not understanding… can you maybe give me an example? I’m still having a problem understanding what went wrong…also, there’s still time to switch.. it’s not in the client’s hand yet.. would there be a more robust extension to use instead?

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

When you used the File extension, any time you published an entry, that extension was not saving the field’s formatting to the database for that entry, instead leaving them empty. Now when EE goes to output that field, it doesn’t recognize the value (none isn’t a valid value) and so it tries to find a formatting plugin to match, hence the pi..php.

To fix this, all of those records need something inserted into the field formatting column for that field. You can do it manually in the database, or in the control panel, select the field, change the formatting type, save, change it back to what you really want, and check the box at the bottom to apply it to all existing content.

As far as what extension to use, I’m afraid I don’t have a recommendation beyond what’s been submitted to our add-on library, and I don’t believe an extension of that nature is there. You might email the author and see if they have updated the extension, or contact one of the people in the thread I linked to who experienced the same issue to see what their decision was on a final resolution.

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis

thank you so much for the explanation. you’ve really helped me…

       
Derek Jones's avatar
Derek Jones
7,561 posts
16 years ago
Derek Jones's avatar Derek Jones

No problem, hope that gets things squared away!

       
Amarilis's avatar
Amarilis
19 posts
16 years ago
Amarilis's avatar Amarilis
To fix this, all of those records need something inserted into the field formatting column for that field. You can do it manually in the database, or in the control panel, select the field, change the formatting type, save, change it back to what you really want, and check the box at the bottom to apply it to all existing content.

derek, I’m looking in there now.. when you say all of “those” records what do you mean? Several field groups are using the File field type. do i have to do this to everything that uses the File field type? I’ve also been looking in my database and don’t know which table to look in to find an empty field.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.