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:

  <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>

This is a screengrab of the output:


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 ? Jan 30, 2014 at 9:43
  • Cheers Sean, PHP 5.3.28 and yep, same issue when adding a var_prefix
    – mcaulay
    Jan 30, 2014 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} Jan 30, 2014 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, 2014 at 10:32
  • Have you tried rolling back to an older version of Matrix? Jan 30, 2014 at 10:46

1 Answer 1


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 :(

  • 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; Apr 1, 2014 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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