I started receiving the following error on a WordPress site:      Warning: Declaration of SplitMenuWalker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /home/relati67/public_html/wp-content/themes/mentis/inc/mega-menu/split-menu.php on line 0   I have no idea what to do here. I found a thread with something similar, but the error pointed to a specific line (not line 0) and wasn't the exact same error.  I'm new to Stack Exchange -- thanks in advance for any help!
11903
I'm currently working on a WordPress site and whenever in the admin I go the Appearance > Menus page I get the following error:     ErrorException: Runtime Notice: Declaration of Walker_Nav_Menu_Edit::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl() in wp-admin/includes/nav-menu.php line 203   It seems like some sort of PHP compatibility issue. I'm running PHP 5.3.10 on my local dev machine.  What would be the best way to remedy this problem?
61707
I have built a custom menu in Wordpress that contains links to posts and pages. I am adding it to my header using this line of code:  &lt;?php   wp_nav_menu(     array(         'theme_location' =&gt; 'primary',          'depth'          =&gt; 0,          'menu_class'     =&gt; 'nav-menu',     )  );  ?&gt;   My problem is, if I add a child page to the top level ones on the menu, they don't automatically appear as sublinks on the nav. I know I can create them manually each time by rebuilding the menu, but I would like to be able to just add a child page in the pages section and have it show up in the nav without having to go to the menu and build it there also, if that makes sense?  I've tried using depth =&gt; 0, but that didn't work. Is there a way to have child pages show up without having to build it into the custom menu?
18224
I have this error message:  ! No room for a new \dimen . \ch@ck ...\else \errmessage {No room for a new #3}                                                 \fi   which I can not find a cure for.
114624
I noticed that the  is apparently abandoned and the  is back to WordPress.  I'd be interested to know what were the decisions that led to switching back. Was the content creation process hindered by Markdown + git? Were there growing pains that couldn't be solved?
77321
I have a menu defined in WP Admin that looks like this:    I want to be able to display all the child links on the sidebar whenever I am at a parent page. For example, if the user is on my "About Us" page, I want a list of the 4 links highlighted in green to appear on the sidebar.  I looked at the documentation for  and it doesn't appear to have any built-in way to specify a particular node of a given menu to use as the starting point when generating the links.  I created a solution for  which relied on the relationships created by the page parent, but I am looking for one which uses the menu system specifically.  Any help would be appreciated.
18854
\documentclass{beamer}  %\usepackage{pstricks,auto-pst-pdf} % works \usepackage[pdf]{pstricks} \usepackage{pst-tree}  \begin{document} \begin{frame}{Test}     \begin{postscript}         $\pstree{\TR{S}}{}$     \end{postscript} \end{frame} \end{document}   I get the following error:  Error: /typecheck in --div-- Operand stack:    1   0   0.0   -0.00706883   a   65781.8 Execution stack:    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostri ngval--   --nostringval--   false   1   %stopped_push   1926   1   3   %oparray_pop   1925   1   3   %oparray_pop   1909   1   3  %oparray_pop   1803   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   - -nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   4   --nostringval--  %repeat_continue   --nostringval-- Dictionary stack:    --dict:1169/1684(ro)(G)--   --dict:0/20(G)--   --dict:123/200(L)--   --dict:100/300(L)-- Current allocation mode is local Current file position is 120580 MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1   I use MiKTeX 2.9 and latest packages in Windows 7.
98236
I wanted a simple environment for making lists of equations, so I made one that includes an equation and a split environment. The code won't compile and the error seems unrelated. The most pressing thing I noticed was the &quot;You can't use `\end' in internal vertical mode.&quot; The problem is definitely the split environment. Here is a MWE. \documentclass{article} \usepackage{amsmath}  \newenvironment{env}     {\begin{equation}\begin{split}}     {\end{split}\end{equation}}  \begin{document} \begin{env}     x \end{env} \end{document}  If I remove the split environment from env, everything compiles just fine. Additionally, If the following example compiles just fine. What is the problem then? \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{equation} \begin{split}     x \end{split} \end{equation} \end{document}  Here is the LaTeX error upon running the MWE. math.tex|11 error| LaTeX Error: \begin{split} on input line 9 ended by \end{env}. math.tex|12 error| LaTeX Error: \begin{equation} on input line 9 ended by \end{document}. math.tex|12 error| Missing $ inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing \cr inserted. math.tex|12 error| Missing { inserted. math.tex|12 error| Missing { inserted. math.tex|12 error| Extra }, or forgotten $. math.tex|12 error| Missing $ inserted. math.tex|12 error| Missing } inserted. math.tex|12 error| You can't use `\end' in internal vertical mode. math.tex|12 error| LaTeX Error: \begin{equation} on input line 9 ended by \end{document}. math.tex|12 error| Missing } inserted. math.tex|12 error| Missing $ inserted. math.tex|12 error| Display math should end with $$. math.tex|| Emergency stop. math.tex|| ==&gt; Fatal error occurred, no output PDF file produced!
97664
I am using a plugin called "Types" to generate custom post types for drink/food recipes. I want to show booth drink and food recipes on the same page. The posts are displaying fine, but for some reason, when you click "newer posts" or "older posts" it will bring you to a new page, but the new page will have the same posts as page 1. Anyone have any ideas? Thanks in advance!  Here's my loop:  &lt;div class="postContainer"&gt;     &lt;ol class="news postList"&gt;         &lt;?php query_posts( array('post_type' =&gt; array( 'recipe', 'drink-recipe' ), 'cat' =&gt; array('12','8'), 'showposts' =&gt; 5 )); ?&gt;         &lt;?php if( have_posts() ): ?&gt;         &lt;?php while( have_posts() ): the_post(); ?&gt;         &lt;?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), 'single-post-thumbnail' ); ?&gt;         &lt;li class="row"&gt;             &lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title(); ?&gt;" style="background-image:url('&lt;?php echo $image[0]; ?&gt;')"&gt;                 &lt;div class="seven offset-by-five"&gt;                     &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;                     &lt;h4&gt;&lt;?php the_time('F j, Y') ?&gt;&lt;/h4&gt;                     &lt;?php echo the_excerpt(); ?&gt;                     &lt;div href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title(); ?&gt;" class="button"&gt;Read more&lt;/div&gt;                 &lt;/div&gt;             &lt;/a&gt;         &lt;/li&gt;         &lt;?php endwhile; ?&gt;     &lt;/ol&gt; &lt;/div&gt;  &lt;div id="pagenav"&gt;     &lt;span class="newer"&gt;&lt;?php previous_posts_link(__('Newer Posts »','blog')) ?&gt;&lt;/span&gt;     &lt;span class="older"&gt;&lt;?php next_posts_link(__('« Older Posts','blog')) ?&gt;&lt;/span&gt; &lt;/div&gt;     &lt;?php else: ?&gt;  &lt;div id="post404" class="noposts"&gt;      &lt;p&gt;&lt;?php _e('None found.','404'); ?&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;?php endif; wp_reset_query(); ?&gt;  &lt;?php get_footer(); ?&gt;
18655
So I made some custom posts and taxonomies..  http://example.com/?product_category=mytaxonomyterm&amp;lang=it  Till here, all fine: I get a 'mytaxonomyterm' taxonomy archive. Btw, lang is because I'm using polylang plugin.  If I try to add &amp;posts_per_page=15 to url, it doesn't work: it won't change number of post.   Even worse, if I add paged=1, It will reload into  http://example.com/?product_category=mytaxonomyterm&amp;lang=it (so stripping the page param).  Even worse, if I add paged=1, it will throw an error telling me that there's an error in post-template.php on line 279, 'Trying to get property of non-object'.  So what? What am I doing wrong?
15486
I'm trying to this:  \newcommand{\code}[1] {\begin{lstlisting} {#1} \end{lstlisting} }   But I keep getting this error:  Package Listings Warning: Text dropped after begin of listing   I'm calling \usepackage and all so, do any of you knows how to solve this?
74320
Over at , there is overlapping text in the Database Schema under Close-As-Off-Topic-Reason-Types:  that makes it really hard to read.  This is also happening underneath &quot;Pending Flags&quot;, and seemingly with every long line in the schema.  This would be fine if you could increase the width of the list as you can with the height, which would in theory separate the lines, but you can't.  Can we fix this, please?  UPDATE: I have found that  post is almost exactly the same as mine, but steady on with duplicate votes.   comment says that it will be fixed, but that question was asked more than five years ago, and in that time the problem has not been resolved.  UPDATE 2: It seems that  would help.  I changed a little CSS/HTML, and came up with this:  Although mine is a little cruder than it could be.  This is just an example.
16713
shows how to prevent a long listing from being split across several pages when the code is written directly into the tex file. I want to achieve the same effect when including code in separate files using \lstinputlisting like so:  \lstinputlisting[label=lst:mylist,caption=A Caption]{code/parametrised.xml}   How do I modify the listing environment definition given in the above question to do so?  \lstnewenvironment{code}[1][]%   {\minipage{\linewidth}     \lstset{basicstyle=\ttfamily\footnotesize,frame=single,#1}}   {\endminipage}   Any help would be greatly appreciated!  Edit: The question has been rephrased for clarity - The answers here relate to preventing a listing from being split across pages by ensuring it's treated like a unbreakable float. Howvever, this also means that listings longer than a page will not be paginated and will run off the bottom of the page.
116363
Note: I cannot specificly tell which version of which of the two conflicting packages fixed the issue, but as of 2016 mathpec and polyglossia no longer show the issue.   Basically, I have encountered the same error as  and the workaround suggested by Andrey Vihrov reenables me to compile the document. The problem now is, that any shorthand defined by the ngerman-package (most notably the non-breaking hypen "~) has now been disabled, and I see combinations of american style closing quotes followed by a non-break space where a non-breaking hyphen should be.  Is there any way possible of keeping the shorthand definition, or redefining it to something else (something like \nbhy pops up to mind)?  I am using XeLaTeX as supplied by TeXLive.
82828
I've searched and found variations of this question but I've never found an answer that seemed to work. I need to add a class to the &lt;li&gt; elements, currently the main menu is rendered like this:  print theme('links__system_main_menu', array(     'links' =&gt; $main_menu,     'attributes' =&gt; array(         'id' =&gt; 'slidemenu',         'class' =&gt; array(             'links',             'inline',             'clearfix'         )     ),     'heading' =&gt; t('') ));   As far as I can tell, this only sets up the &lt;ul&gt; element of the main menu, so I was wondering if there's a way to edit the attributes of the 'links' part.  ---EDIT---  Alright, I think I solved it. Apparently you can use theme_links__system_main_menu in templates to override the whole thing. I ended up doing this:  function mytheme_links__system_main_menu($variables) {     $html = '&lt;div id="mainmenu"&gt;';     $html .= '  &lt;ul id="slidemenu" class="clearfix"&gt;';      static $linkClass = 1;      foreach ($variables['links'] as $link) {                         $html .= '&lt;li class="themastyle' . $linkClass . '"&gt;' . l($link['title'], $link['href'], $link) . '&lt;/li&gt;';         ++$linkClass;     }      $html .= '  &lt;/ul&gt;';     $html .= '&lt;/div&gt;';      return $html; }   Not entirely sure if this is correct Drupal, though it did solve my issue!
110653
After update from WP 5.0.2 to 5.0.3 I had issues in wp-admin. I couldn't edit post data. There was JS error "Uncaught SyntaxError: missing ) after argument list", undefined "_" (lodash) etc.
4199
A   B   C   D   E   F             I don't even know. It just seemed weird.  Yes, I understand I could just avoid doing something like that. But the problem already exists with a single level.   Consider having 2 images in a post. Both exceed the maximum width of a post. One is nested in a list. Key to this issue is that my original images were much larger. They were automatically resized.  Image    List      I think it looks weird.
13855
I've been editing some wiki entries on the new Expatriates site, and started to get the following error:    When I go to a normal post, I see what is presumably the proper explanation:    Can the Wiki Tag edit error be updated to show a more meaningful error message?