Viewing 4 reply threads
  • Author
    Posts
    • #895
      Marcus
      Member

      So I have piklist on a clients install of WP older than 3.5.2,
      And I go to install it myself on a new install of WP 3.5.2, and I get the following errors:

      At Gist:
      https://gist.github.com/anonymous/5995485

      Is anyone else going through this, and if so, did you fix it? Thanks
      (as still a few days away from Beta)

      Marcus

    • #899
      Steve
      Keymaster

      Please change line 32 in C:\html\master\personal\ssgnewwp\wp-content\plugins\piklist\parts\shared\admin-page.php to:

      <a class="nav-tab <?php echo (isset($tab['page']) && (isset($_REQUEST['tab'])) == $tab['page']) || (!isset($_REQUEST['tab']) && !isset($tab['page'])) ? 'nav-tab-active' : null; ?>" href="?<?php echo http_build_query(array_filter($url)); ?>">

      Let me know if that works

    • #900
      Marcus
      Member

      Works perfect.

      So thats all it was. Just a couple of issets and done.
      Thanks Steve.

      Marcus

    • #901
      Marcus
      Member

      As soon as I made the change you suggested above, I could add the demo piklist types, but when I did, the ‘Add Demo Types’ page under the new piklist taxonomy produced errors.

      Having a look at /piklist/includes/class-piklist-cpt.php line 573, I changed it from:
      if ($status->capability_type == $object_type)
      to
      if (isset($status->capability_type) && $status->capability_type == $object_type)

      And the errors for that page are gone. Now everything works.

      Thanks again Steve.

      Marcus

    • #903
      Steve
      Keymaster

      Great. Closing this ticket.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.