ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Weblog Tag Not Processing : Missing Something Obvious?

March 05, 2010 3:18am

Subscribe [5]
  • #1 / Mar 05, 2010 3:18am

    4060men

    14 posts

    I’m new to EE, so this might be an obvious question.  I’ve created a new template, where I’m trying to display specific weblog content.  I’ve created the weblogs and custom field groups as indicated in the tutorials. Also, my weblogs module is installed, and I’ve created at least one entry for each weblog.

    But when I try to call them, I get “the following tag cannot be processed” error.

    My tag looks just like it should, according to the parameter guide:

    {exp:weblog:entries weblog="jokes" orderby="date" limit="1"}
    {joke-content}
    {/exp:weblog:entries}

    I don’t think it’s this code necessarily, because when I remove it, the error proceeds to the next weblog tag, which is named “quotes,” and is formatted the same way. 

    Am I missing something?

    When I view one of the originally installed templates, I can see the entries, so I guess the problem is, I’m not able to specify a specific weblog parameter without it returning an error.  See here:  http://www.4060men.com/read/site/archives/

  • #2 / Mar 05, 2010 4:09am

    4060men

    14 posts

    Okay, the problem seems to ONLY be happening when I copy/paste directly from Dreamweaver.  Any other time (when I edit directly in the template, or copy/paste from somewhere else), it works JUST FINE!

    The code is perfect - Just the same as before.  Except it picks and chooses when to throw this error:

    The following tag cannot be processed:

    {exp:weblog:entries weblog=‘jokes’ orderby=‘date’ limit=‘1’}

    Please check that the ‘weblog’ module is installed and that ‘entries weblog=‘jokes’ orderby=‘date’ limit=‘1’’ is an available method of the module

    So strange - Someone please tell me that I’m not the only one with this problem!

  • #3 / Mar 05, 2010 4:17am

    4060men

    14 posts

    So I just had to do the dumbest thing - Copy my weblog tags from my template, paste them into Notepad, then paste them back into the template, and then they worked.  Almost like it was clearing some bad formatting or something, except I was just dealing with straight code, so that doesn’t make sense at ALL.

    I’ll do this every time if I have to, but it’s ridiculous.  Anyone, please?

  • #4 / Mar 05, 2010 4:33am

    4060men

    14 posts

    If I may rant…

    Every time I make a change to my template in Dreamweaver, then copy/paste, I have to do the Notepad thing all over again.  Sheesh!  At this rate, it will take me twice as long to build my site.

  • #5 / Mar 05, 2010 9:19am

    Ingmar

    29245 posts

    Perhaps DW is using some fancy markup? Typographical quotes, something like that? It can probably be configured to some extent, but I am not familiar with DW myself.

  • #6 / Mar 12, 2010 7:03pm

    4060men

    14 posts

    I checked all my DW preferences, and found nothing that could be causing this.  Even when I copy/paste the code into Notepad first, then into the template editor, I get the same error.  Sometimes it works, and sometimes it doesn’t.  So STRANGE!

    BTW - Dreamweaver is producing the standard hash marks, not curly quotes. So that can be ruled out.  Any other thoughts?

  • #7 / Mar 12, 2010 7:32pm

    Mark Bowen

    12637 posts

    Is it a typo above where you have limit=‘1’’

    The following tag cannot be processed:

    {exp:weblog:entries weblog=‘jokes’ orderby=‘date’ limit=‘1’}

    Please check that the ‘weblog’ module is installed and that ‘entries weblog=‘jokes’ orderby=‘date’ limit=‘1’’ is an available method of the module

    as you have a single quote followed by a double quote which I would think would definitely cause a problem.

    Best wishes,

    Mark ‘eyes of an eagle’ Bowen 😉

  • #8 / Mar 12, 2010 7:33pm

    4060men

    14 posts

    Okay, I’ve determined that it’s a problem with EE’s template editor.  When I copy/paste from Dreamweaver into Notepad, then into the editor, I get the error.  But, if I type & edit the content directly in the template editor, it works.

    For example, when I copy/paste my code, I get an error when calling the first weblog, named “jokes.”  But, if I edit the tag that is calling that specific weblog (say, delete and reinsert a word), it reads that tag, and moves on to the next unedited tag, which is “quotes.”

    So basically, I have to copy/paste my original code, then retype my weblog tags inside the template editor in order to make it work.  Time consuming to say the least.

    Any help would be GREATLY appreciated.

  • #9 / Mar 12, 2010 7:36pm

    Mark Bowen

    12637 posts

    See post above and also have you tried just typing the code directly into the template editor instead of copy-pasting it?

    It’s not a big amount of code to be typing in so I’d definitely give that a go and see what results you get. If it all works fine when you type it in then it’s not an ExpressionEngine error but rather something screwy with the characters being pasted in. If on the other hand you still get errors when typing it in character by character then there may well be something going on with ExpressionEngine.

    Definitely the easiest way to check this all out though so I’d give that a go first if it were me.

    Best wishes,

    Mark

  • #10 / Mar 12, 2010 7:44pm

    4060men

    14 posts

    I see what you’re saying, but that’s not the problem.  I got that error when I was trying all sorts of different things, including using single quotes instead of double.  If you’ll notice, the double quote is just the end of their opening quote, before the word “entries”. But I appreciate your astute observation!

    Anyway, I think I’ve narrowed down the problem even further…

    I’ve been manually typing in pieces of code to see what triggers the error, and what doesn’t.  The issue seems to only be within the OPENING weblog tag, such as {exp:weblog:entries weblog="quotes" orderby="date" limit="1"}, because when I manually type in the opening tags, and copy/paste everything else (yes, there is LOTS more), it WORKS.

    http://www.4060men.com/read/v01/

  • #11 / Mar 12, 2010 7:48pm

    Mark Bowen

    12637 posts

    If you’ll notice, the double quote is just the end of their opening quote, before the word “entries”. But I appreciate your astute observation!

    You’re absolutely right. In fact after I posted that I went back and saw the error of my ways. Consider my eagle eye revoked 😉

    Anyway, I think I’ve narrowed down the problem even further…

    I’ve been manually typing in pieces of code to see what triggers the error, and what doesn’t.  The issue seems to only be within the OPENING weblog tag, such as {exp:weblog:entries weblog="quotes" orderby="date" limit="1"}, because when I manually type in the opening tags, and copy/paste everything else (yes, there is LOTS more), it WORKS.

    So typing it in is fine but copy-pasting doesn’t. Definitely not an ExpressionEngine error then I’d say. I reckon it’s going to be a curly quotes issue that you’re seeing.

    Just testing something below here :

    weblog="quotes"

    Take a look at what I typed in above and then look at your opening weblog tag above. Yours has curly quotes in it.

    I’d try and get an editor which doesn’t add in any weird character formatting and see if that helps at all. The reason the closing tags won’t have any problems is because they don’t have any quotes in them.

    Best wishes,

    Mark

  • #12 / Mar 12, 2010 7:55pm

    4060men

    14 posts

    Thanks Mark, I really do appreciate your help. I have to disagree and say I don’t believe it’s a quotes issue.  Otherwise, why would I be able to copy/paste lines of code like this:

    {exp:char_limit total="250"}{article-content}{/exp:char_limit}

    And not this?

    {exp:weblog:entries weblog="comics" orderby="date" limit="1"}

    The first line doesn’t trigger an error.  The last one does.  Also, I can take all of the code, copy/paste into Notepad & clear all formatting, then paste into the editor, and I still get the error. 

    The problem seems exclusive to opening weblog tags, because I can also use lines like this that contain quotes, without triggering an error:

    {assign_variable:my_template_group="v01"}
  • #13 / Mar 12, 2010 8:25pm

    Mark Bowen

    12637 posts

    Still seems a little weird to me. Did you see my post above where what you had put in your post had curly quotes but when I typed into the test part I did there were no curly quotes?

    Again if you can type the tag into the textarea and they work fine but code doesn’t work correctly when pasted in then I still don’t believe this is an ExpressionEngine problem. I’m off to bed now as it’s the early hours of the morning now here but hopefully one of the moderators will come in here and help out soon.

    You don’t by any chance have any type of WYSIWYG editor on the template editor do you?

    Still I think it’s odd that you can type it in fine but when you have typed it into an external editor and then paste in that to me anyway makes me think there’s something somewhere going odd with the paste and not ExpressionEngine directly. I could definitely be wrong on this one and so would love to know what this is if it is indeed ExpressionEngine as it does all sound rather odd.

    Hope you get it sorted soon.

    Best wishes,

    Mark

  • #14 / Mar 12, 2010 9:33pm

    Brandon Jones

    5500 posts

    Thanks for the assistance, Mark.

    4060men,

    I was not able to reproduce the issue when pasting from Dreamweaver CS4 into Firefox 3.6.  When you are copying from Dreamweaver, you are doing so from the Code View, correct?  Have you tried pasting with a different browser?

  • #15 / Mar 13, 2010 12:13am

    4060men

    14 posts

    Thanks Mark.  Brandon, I’ve tried pasting into Google Chrome & IE7.  Both give me the same error.  I’m copying from Dreamweaver CS4’s code view.

    I know what you guys are saying about the curly quotes, but I honestly don’t believe that’s it.  I just copied/pasted all my code again, replicating the error.  I went into the first weblog tag, and replaced only the quotes, but it still got hung up on that line.

    So, I copied/pasted the ENTIRE line (below) into Notepad, then back into the template, and it worked!  The error moved on down to the next weblog opening tag.

    Could any other characters in this code be causing the error?

    {exp:weblog:entries weblog="jokes" orderby="date" limit="1"}{exp:char_limit total="65"}{joke-content}{/exp:char_limit}<h5><a href="http://{title_permalink}">Read Entire Joke</a></h5><h6>Source: <a href="http://{joke-source}" target="_blank" rel="noopener">{joke-source}</a></h6>{/exp:weblog:entries}

    P.S. Mark - I think the reason my code had curlies in the snippet above is because I was copying the error message, which does display the code with curly quotes.  There are also curlies throughout the rest of the error message, which implies that maybe it’s just the way it outputs everything, including hash marks.  I’ve checked & triple-checked, and I’m convinced what I’m using are hashes. Totally a valid point, though.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases