add blog entry opens a blank page
Permalink 1 user found helpfulHi! I'm struggling converting my bootstrap site into C5, and I've received lots of help around here, so here goes another one:
I set up the blog section of my site following these instructions:
http://documentation.concrete5.org/tutorials/setup-a-simple-blog-wi...
now, I try to add a post, but I'm taken to a blank page. There's no composer or anything.
Funny thing is, every time I try, I get a new Draft at the bottom of my sidebar.
Is there something that I have to do in order to see the composer?
this is what is in my blog_entry.php, which I guess isn't quite right.
<?php $this->inc('elements/header.php'); ?> <div class="row row-title"> <!--section titles--> <div class="col-xs-12 text-center section-title"> <h1 class="section-title">Resources</h1> <img src="<?=$view->getThemePath()?>/img/resources.png" alt"Resources"> </div> </div> <p class="section-intro">News and Links</p> <div class="container"> <?php $a = new Area('blog_entry'); $a->display($c); ?> </div>
I have no way of seeing the error log on the server.. at least, I don't think so...
(I'm way out of my depth here, alas).
I wonder if it has to do with the way I set up the blog_entry.php file? I did not use sidebar.php because that is not part of my design... so I kind of made it up (code above)...
here is my header:
<!DOCTYPE html> <html class="no-js" lang=""> <head> <?php $u = new User(); if ($u->isLoggedIn() && $u->isSuperUser()) { ?> <style> .navbar-fixed-top { top: 48px !important; } .section-title { margin-top: 25px !important; } </style> <?php } ?>
And my footer
<footer> <div class="container footsie"> <div class="row center-block"> <div class="col-xs-12 col-md-4 padded"> <img src="<?=$view->getThemePath()?>/img/logo_footer.png" alt="Consumation" class="img-responsive"> <p class="footer-links"> <a href="/index.php">Home</a> · <a href="/index.php/portfolio">Our Work</a> · <a href="/index.php/team">Our Team</a> · <a href="/index.php/blog">Resources</a> · <a href="/index.php/contact">Contact</a>
(That last chunk of php in the footer is a solution to a problem where either: the hamburger menu wasn't expanding on chrome or the editable areas were grey instead of green. So this way the hamburger won't work only when one is logged in)
If you go to edit one of your drafts, is the page blank then too?
re. the drafts: they open blank pages, as well as the example blog posts that come with C5 when I open them from the sitemap...
<!--<?php $this->inc('elements/header.php'); ?>--> <div class="row row-title"> <!--section titles--> <div class="col-xs-12 text-center section-title"> <h1 class="section-title">Resources</h1> <img src="<?=$view->getThemePath()?>/img/resources.png" alt"Resources"> </div> </div> <p class="section-intro">News and Links</p> <div class="container"> <?php $a = new Area('blog_entry'); $a->display($c); ?> </div>
and the source is still totally blank
Now I'm going to check if I made typos when I was following the tutorial I linked on the original post.
Otherwise from your HTML it looks like you have a </main> but no <main> (unless it's in your header which we can't see) but that would break the editing too.