Buggy bug in Mantra 1.8.9

Okay, we’ve made a little doody here, and we’ve let a mean bug free. Don’t worry, it’s not too big, it’s just evil enough to prevent you from saving your theme options.

So if you’re using Mantra 1.8.8 and get the update news for 1.8.9, DON’T! 😀

But if you’re reading this, it is most likely too late. You’re probably seeing something like

Warning: Missing argument 2 for wp_kses(), called in /wp-content/themes/mantra/admin/mantra-sanitize.php on line 85 and defined in /wp-includes/kses.php on line 502

when trying to save the settings. This just confirms you’ve made that grave mistake of updating… not that updating is bad – but just this once it’s bad.

But hang on tight, 1.8.9.1 is already on the way! It’s just that unlike Microsoft (or some other big company) we do not control the update approval and publication, so the exact moment when 1.8.9.1 will become available depends completely on WordPress’ review theme. is already available!

 

Anyway, if you’re too impatient for the update to be published and are up for the task of fixing this yourself, then go right ahead and edit the wp-content/themes/mantra/admin/mantra-sanitize.php file and replace (line 85) from

$input['mantra_columnreadmore'] =  wp_kses($input['mantra_columnreadmore']);

to

$input['mantra_columnreadmore'] =  wp_kses($input['mantra_columnreadmore'],'');

Note the extra ,” at the end, before the closing bracket.

 

If you mess something up, do not despair – just re-download the theme… the bug will be right back.

Thank you for your understanding, and remember that hiccups like this happen even on (pricey) paid products. I think Mr. Kay is running low on coffee… 🙂

Mantra is a clean, highly customizable and totally free WordPress theme. For more info check out the theme's page.

21 Comments

  1. With this update 1.8.9.1 the web page is no-longer formatted to fit on the screen of an iphone / ipad. It is now distorted and no-longer shows the left side bar (well it does but it is way at the bottom under the home page information)

    I had previously changed the number of characters in the menu bar to ensure that it fitted.

    Do you have any code I can put in the appropriate place so that it works like in the previous version?

    I am using Mantra 1.8.9.1 with WordPress 3.3.2.

    Reason for not updating to the latest wordpress is that I have an event plugin that I know will not work once I upgrade wordpress and I am waiting for them to upgrade to a newer/changed/improved version.

    I acknowledge that the footer is now solved. So I changed the images from three spots back to four spots across the bottom. I also noted there were some other things not quite right, but was able to work around them as such.

    Thanks for a great theme.

    Thanks Karen

    1. What you see as a bug was actually an intended “feature” – making the site resize itself and wrap text to fit on a small screen, without the need to zoom-in/out.
      But several other users perceived this change as a bug, so we’re disabling it by default in the next version (but still leaving the option to turn it on).
      In the meantime, you can remove this behaviour by editing the style.css file and deleting everything starting with
      /* =Responsive Structure

  2. For some reason I can’t change my “Main Layout” under the “Layout Settings” in “Mantra Settings”. Right now it has “three columns, sidebars to the right” selected, but when I click on the other options, nothing happens …help?

  3. I updated the Mantratheme to version 1.8.9.1. and the problem with the footer is solved. Great!
    Great also the flexibilty of the Manta theme!
    But the menu isn’t working correctly; the submenu (2 level) has moved to much to the left side. Using WordPress 3.3.2.
    Also for the header on the homepage I use a slider plugin. It worked well in the older version, but using it in this version there are no submenu’s shown at all and is the slider itself not working properly.
    Hopefully there is a way to fix these problems.
    Thank you very much!

  4. I installed 1.8.9.1 on multiple sites – now on my home page the middle section is offset to the left, on top of my left column. I have three columns (links on both sides). If I click on the post – the page were the post is, is fine. Only the home page seems to have been effected.

    1. I have exactly the same problem, I think — except that for me, it works the opposite way. My front page looks fine, but on subsequent pages, my center content is shifted all over to one side. I’m also using three colums and have made lots of CSS customizations. I’ve been messing around with the CSS and I cannot for the life of me figure out what’s changed and why the front page looks fine but other pages have both of the sidebars stuck over on one side. Aaaaak!

      1. That’s a known bug. It will be fixed in 1.9.0 version which will be live really soon.

        And… ‘Aaaaak’ ? Really? That’s the best you could do? BTW really love what you did with the theme. Can’t believe that’s actually Mantra.

        The only part I really hate on the other hand is that you removed the copyright in the footer. Don’t ask for support if you remove the copyright. You won’t get any.

  5. Sorry if this is posted in the wrong place but I don’t see a general bug reporting page for Mantra. I think I may have found a solution to the header image upload failure problem a number of people have posted about elsewhere.

    I found I could not upload any new images to the Presentation Page after installing Mantra on an Amazon AWS Ubuntu 12.0 server. I tried changing permissions on the uploads folder and installing pgp5-gd on the server as per suggestions from others. It didn’t fix it.

    What did appear to fix it is deleting all versions of header image from the media gallery. Also I noticed that later versions appeared to have very similar or identical filenames e.g. header.png, header1.png, header11.png and then many more header11.png.

    Is this naming convention correct or is there a bug in the version naming for multiple uploads of a header image file?

    I still can’t get FavIcon to upload though. Maybe a separate issue?

    Your Mantra theme is still GREAT! Thankyou.

    1. Mantra uses WordPress’ own uploader, so if the uploader doesn’t work for the presentation page, it’ll probably not work anywhere else in WordPress either. Amazon probably uses some very unconventional settings on their servers to make the uploader fail. This has some steps that might help in solving the issue(s).

      And yes, that naming convention is standard for WordPress. If the filename already exists, numbers are added to it.

  6. I am using version 1.8.9.1. There is a fairly recent problem that surfaced a few days ago where the layout I have selected does not line up correctly. EG: text appears; comments field and finally the left sidebar (I use a 2-column layout). This only appears in a full post. Excerpted posts and pages appear as expected.

    I have not added any new plugins or widgets. Prior to this, everything was working fine up until version 1.8.8. I’m not sure if this behaviour started with the upgrade to 1.8.9, which did not return any errors for me, by the way.

    It is giving me the irrits. big time. Hope you can help me out. Thanks.

  7. I’m having a problem with a full post not displaying properly on the page. I am using version 1.8.9.1 My layout is two columns. Pages with excerpts are fine but once I go to the full post, the content appears first, then the comments and sidebar appear underneath. This is very recent. I need advice on this one urgently, since it makes a complete mess of the display. Thanks.

  8. How do I re-download the theme if I get this error when I try to login?

    Parse error: syntax error, unexpected T_STRING, expecting ‘]’ in /homepages/9/d375602859/htdocs/wp-content/themes/mantra/admin/mantra-sanitize.php on line 87

This article is closed to new comments.