Title: [Plugin: Page.ly MultiEdit] Minor Errors
Last modified: August 19, 2016

---

# [Plugin: Page.ly MultiEdit] Minor Errors

 *  [haydenhancock](https://wordpress.org/support/users/haydenhancock/)
 * (@haydenhancock)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-pagely-multiedit-minor-errors/)
 * I am having some minor errors with this plugin for WP 3.0.3.
 * I was getting an echoed array at the end of my pages. I fixed this by adding 
   the following to the multiedit.css file:
 * `#multiEditHidden { display: none; }`
 * I am also getting 3-4 php errors at the bottom of pages that aren’t using the
   MultiEdit template.
 * I noticed that the HTML output for certain elements in a multiedit region are
   not correct. For instance, when using a list it seems that on some of the li 
   elements there is a br tag (it’s random and weird). This is specific to the multiedit
   region because I tried hard-coding it into my template and it displayed the HTML
   properly.
 * The br markup is as follows:
 * `<br mce_bogus="1">` or just `<br>`
 * It also seems to be putting in p tags for no reason.
 * I love the plugin but these issues need to be addressed.

Viewing 1 replies (of 1 total)

 *  Anonymous User
 * (@anonymized-7333845)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-pagely-multiedit-minor-errors/#post-1827886)
 * Hi !!
    I was having the same 2 issues. For the php errors, I fidex it this way(
   I did only want the plugin on pages, anyway you can’t use templates on posts 
   without plugins I think): 1. I check to see if the post is a page (I only got
   the errors on posts) 2. If it is a page I use the plugin 3. If not, I do nothing.
   This prevents errors, [here](http://wordpress.pastebin.com/6L8hbMyj) is the code
   I changed for the function doMultiMeta() fonction. Not super clean, but works
   for me ^^ + the your display hiddent trick ^^
 * For the mce bug, it’s a conflict with tinymce. Mine was different, I got some
   mce_href tags for images and links which made my code note w3c valid. I found
   a regex posted by a guy [here](http://forum.joomla.org/viewtopic.php?p=2248264)(
   yeah joomla forum but the regex works fine) and changed the pagely function multieditDisplay(
   $index) function to this to remove the tags froms templates:
 *     ```
       // api for templates
       function multieditDisplay($index) {
       	if ($GLOBALS['multiEditDisplay'] === false) {
       		$GLOBALS['multiEditDisplay'] = get_post_custom(0);
       	}
       	$index = "multiedit_$index";
       	if (isset($GLOBALS['multiEditDisplay'][$index])) {
         // stéphanie bugfix1: fixing the mce_ (adds mce_href code to new tabs) issue with a regex yeah !!
       	$str = $GLOBALS['multiEditDisplay'][$index][0];
       	$str = preg_replace( '#mce_[a-z]+="[^"]+"#', '', $str );
       	echo $str;
       	}
       }
       ```
   
 * Maybe you could try something similar ?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Page.ly MultiEdit] Minor Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pagely-multiedit.svg)
 * [Pagely MultiEdit](https://wordpress.org/plugins/pagely-multiedit/)
 * [Support Threads](https://wordpress.org/support/plugin/pagely-multiedit/)
 * [Active Topics](https://wordpress.org/support/plugin/pagely-multiedit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pagely-multiedit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pagely-multiedit/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-pagely-multiedit-minor-errors/#post-1827886)
 * Status: not resolved