2

After moving to a different server, i'm seeing strange output from Matrix. The output contains some of the ee tags and some of the html from within.

Here is the matrix tag pair:

{service_group_staff_quotes}
  <blockquote class="testimonial">
    {if photo}<img class="testimonial__media" src="{photo}" alt="{staff_credit}">{/if}
    <p class="testimonial__quote">“{staff_quote}”</p>
    <p class="testimonial__title">— {staff_credit}</p>
  </blockquote>
{/service_group_staff_quotes}

This is a screengrab of the output:

description

The '{s' at the beginning and the '/p>' at the end of the first para, then the '{sta' at the beginning of the second para are the problem. Anyone seen this before or got any ideas? I've tried running the EE server wizard on the new server which reports everything is fine and i've tried re-uploading the system folder incase anything got lost over FTP. Any help appreciated :)

EE 2.5.5, Matrix 2.5.10

  • What PHP version is running? Also does the same happen if you add a var_prefix ? – Sean Delaney Jan 30 '14 at 9:43
  • Cheers Sean, PHP 5.3.28 and yep, same issue when adding a var_prefix – mcaulay Jan 30 '14 at 9:49
  • Does this same snippet work in other templates? Are you using any other modules/plugins? What happens when you just try doing: {service_group_staff_quotes}{staff_quote}<br>{/service_group_staff_quotes} – Sean Delaney Jan 30 '14 at 9:51
  • yep, that works but if i add another tag, it starts breaking again. Tried it on another template and got the same issue. I should add that this all works fine on our staging server – mcaulay Jan 30 '14 at 10:32
  • Have you tried rolling back to an older version of Matrix? – Sean Delaney Jan 30 '14 at 10:46
2

The only time I've seen this behavior is when the text in the field contains foreign characters, like if its been pasted from Word but have seen it from other PC based apps with no rhyme nor reason.

Try deleting everything in the field and type it a new - don't copy paste.

PS. Just noticed the output - this may not help :(

| improve this answer | |
  • This is the correct answer; the template above has "curly double-quotes;" as copied above, you have “{staff_quote}”, but actually need "{staff_quote}" If the fancier quotes are desired as output, then html-entify them as &ldquo; and &rdquo; – Nick Benson Apr 1 '14 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.