• Resolved Tom

    (@atomiktd)


    I get an error while I try to save settings. Error reads:

    Warning: in_array() expects parameter 2 to be array, string given in /home/.../public_html/wp-content/plugins/wp-seo-tamer/includes/lib/class-wordpress-seo-tamer-admin-api.php on line 112

    It only shows up when I try to save settings with both boxes (Post & Pages) unchecked.

    It desn’t matter if I try it for “Hide columns for these post types:” or “Hide meta box for these post types:”

    For “Hide fields for these taxonomies:” it happens after all 3 boxes are unchecked.

    After warning happens, no settings are updated.

    How do I fix it?

    https://www.ads-software.com/plugins/wp-seo-tamer/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    Thanks for the report – I’ll have a look into this today, but i suspect it will be a simple fix.

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    I just released v1.2.1 with a fix for this – you should have the update available in your WordPress dashboard any minute ??

    Thread Starter Tom

    (@atomiktd)

    Thank you, you are lightning fast!

    Warning vanished but still there is something weird going on.

    I’m not sure what causes it but it looks like Post box negates Pages box. To be specific, I get following effect i.e. for columns

    Posts [ ] Pages [ ] – all columns displayed
    Posts [ ] Pages [x] – Posts displayed, Pages not displayed
    Posts [x] Pages [ ] – Posts not displayed, Pages not displayed
    Posts [x] Pages [x] – Posts not displayed, Pages displayed

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    Interesting – give me some time to look into this and I’ll see what I can work out.

    Could you do me a quick favour and disable all of your plugins (except WordPress SEO and the Tamer) and then test this again? That would help rule out a plugin conflict. It would also be helpful if you could switch your site to one of the default themes (Twenty Twelve, etc.) just to be sure.

    Thanks!

    Thread Starter Tom

    (@atomiktd)

    And now another problem.. it refused to work at all ??
    No SEO columns are displayed on any combination.

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    I thought I had the same issue at one point, but it was actually because I had deselected the WP SEO columns from the screen options tab (the little tab at the top of the page when you’re viewing the post list tables). If you open up the screen options and the SEO tabs are available there then it means they would show if you selected them. The Tamer settings will remove the columns from the screen options entirely.

    Thread Starter Tom

    (@atomiktd)

    All plugins off except WP SEO and Tamer + 2014 theme + errors true

    Effect is very random, mostly not working. Working very rare and random. Re-installing doesn’t help. No errors.

    I’ll be back in 3 hours and have more time to test.

    Thank you for helping ??

    Thread Starter Tom

    (@atomiktd)

    When columns are off, no options exist on option screen.

    Plugin Author Hugh Lashbrooke

    (@hlashbrooke)

    OK – that’s what should be happening with the columns.

    Would you be able to give me your login details so I can test things out on your site directly? If you’re happy to do that then you can send them to me via the contact form on my site: https://www.hughlashbrooke.com/ (bottom of the sidebar).

    Thread Starter Tom

    (@atomiktd)

    Yes, it’s better way, than sending results over and over again.

    You have all details sent.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Warning while saving settings’ is closed to new replies.