Weblog Entries not displaying on website
Posted: 02 September 2008 09:24 PM   [ Ignore ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

None of my weblog entries are displaying on the website. I can successfully add entries to a weblog, but none of them appear on the website. Here is the code I’m using to display the weblog entries:

{exp:weblog:entries weblog="testimonials" orderby="date" sort="desc" dynamic="off" disable="pagination|categories|member_data|trackbacks"}
        
<li>
            <
blockquote cite="{name}, {company}">
                
{testimony}
                
<div class="cite"><strong>{name}</strong><br /><em>{company}</em></div>
            </
blockquote>
        </
li>
{/exp:weblog:entries}


I’m able to access the database from the control panel (I can login, administer templates, administer weblogs, create entries, etc.) but I don’t know how to test access to the db from the website, to verify if it has connectivity. Or if that would even make sense. Any help will be greatly appreciated. Thanks.

Matt.

Profile
 
 
Posted: 02 September 2008 09:25 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

If you didn’t have database connectivity, you would not be able to login.  So that’s not it.

Are these entries all dated in the past, and witha n Open status?

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 09:34 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

Yes, all entries have a status of “Open” and are dated in the past (most recent is 08/26/2008). Does the “website” run under a different SQL account than the control panel?

Profile
 
 
Posted: 02 September 2008 09:35 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

No, it’s all under one database.

Are you sure our weblog shortname is correct? What if you output {title} inside the weblog entries tag pair?

Do you have a link to a test template?

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 09:47 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

I’ve attached a screenshot of the “Edit Weblog Entries” grid for my “Testimonials” weblog. The short name is “testimonials” which is being referenced in the exp:weblog:entries code. Also, I left the original “Default Site Weblog” intact, here is the link to that section. As you can see by the statistics at the bottom of the page, I’m hitting the db just not pulling back weblog entries.

link: http://beta.ogsys.com/site/

Image Attachments
Picture 2.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 02 September 2008 09:52 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

Your site link just looks like you have the weblog= incorrect.  Here, try this on a totally blank template:

{exp:weblog:entries weblog="testimonials" limit="10"}
{title}
<br />
{/exp:weblog:entries}

and please give me a link to that template. 

Thank you!

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 10:01 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

Lisa, thank you for your help. I truly appreciate it. Here is a link to my test template: http://beta.ogsys.com/test

And here is the code that makes up that template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<
html>
    <
head>
        <
meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <
title>EE Test</title>
    </
head>
    <
body>
        
{exp:weblog:entries weblog="testimonials" limit="10"}
            {title}
<br />
        
{/exp:weblog:entries}
    
</body>
</
html>

Thanks!

Profile
 
 
Posted: 02 September 2008 10:07 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

That is not a totally blank template.  It’s fine this time, but in future - we’re really very serious when we say totally blank template.  No markup or anything added.  It won’t hurt you and you’re not trying to validate the reduction test. =)

If you go to edit your weblog and look at its preferences, what is entered in for Weblog Name and Weblog Short Name?

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 10:13 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

Sorry for the misunderstanding, I’m an EE noob and didn’t realize what was meant by blank template. My apologies. I’ve removed all markup, except what you have instructed.

Weblog Name: Testimonials
Weblog Short Name: testimonials

Profile
 
 
Posted: 02 September 2008 10:15 PM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

No worries at all; it wasn’t a big deal this time but we have seen some cases where markup has hidden output.  It’s all part of reduction testing.

Are you running any extensions, cmv? I thought I had asked but I don’t see it.

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 10:21 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

I’m not familiar with extensions, but I did install the Freeform module and I enabled the Pages module. Not sure if module is the same as extension. Also, I followed this article link to remove index.php from the url. I’ve also enabled saving the template as a file.

Profile
 
 
Posted: 02 September 2008 10:27 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

Alright. I’m going to send you an email, cmv, and will return to this in the morning.

Thank you!

 Signature 
Profile
MSG
 
 
Posted: 02 September 2008 11:12 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32921
Joined  05-14-2004

So, cmv - did you fail to notice that the server thinks it’s 2002? =)

Check out your test template, I added a current_time call in there.  I noticed it because I went to publish a new entry and the Date tab has all calendars at 2002. That means any entry that is current dated (ie: 2008) is in the future. Therefore, show_future_entries fixes it; but I think your server may have a deeper problem. =)

 Signature 
Profile
MSG
 
 
Posted: 03 September 2008 08:44 AM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  12
Joined  02-05-2008

Wow. Thanks Lisa. I’ve notified the sys admin and everything is back working properly!

Profile
 
 
Posted: 03 September 2008 10:17 AM   [ Ignore ]   [ # 14 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

cmv, we’re glad things are working for you again. Please don’t hesitate to post again if needed!

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65085 Total Logged-in Users: 37
Total Topics: 82223 Total Anonymous Users: 19
Total Replies: 441915 Total Guests: 218
Total Posts: 524138    
Members ( View Memberlist )
Newest Members:  BombermanhaimtuagocsadamVeNeaDoRHildegaardhrtrulzUNFORGIVEN IIIEmmanuelYanYanTomsB