WordPress likes to use the Right Angle QUOte mark (raquo) as a directional indicator (shame on them!). The Glossary plugin doesn’t seem to know how to handle it. Here is the error it throws:
: DOMDocument::loadXML() [domdocument.loadxml]: Entity 'raquo' not defined in Entity, line: 8 in
Hopefully the next version of the plugin will support it, but until then, here’s the workaround for people like me who like to use the “read more” button.
index.phpfrom the folder containing your theme pages (i.e.,
At approximately line 40 and 14, respectively (it may vary from theme to theme), you’ll find:
<?php the_content('<span class="more">read more »</span>') ?>
Change the reference to the raquo to something else. I used a homemade ellipsis:
<?php the_content('<span class="more">read more...</span>') ?>
Save and enjoy. You shouldn’t need to worry about any other references to the left or right angle quotes because the Glossary plugin only cruises through the content area of WordPress.
Note to Glossary plugin author: millions of Europeans and a few other countries use angle quotes as their quote marks. Even though I’ve provided a workaround for the “read more” button, these quotes are still used often within content. Hopefully those Europeans are using CSS to mark up their quotations, but I wouldn’t count on it yet. Please update your code in order to not alienate non-English sites or sites that are translated. This is a really cool plugin you’ve got and I’d hate to see many (granted, the minority of) users abandon it. Keep up the good work!
- The topic ‘[Plugin: Glossary] Plugin bug: Using the “read more” button gives PHP raquo error’ is closed to new replies.