Viewing 9 reply threads
  • Author
    Posts
    • #4976
      ptiboir
      Member

      Hello! on my site, the piklist don’t save anything. no on piklist core settings page, not on my custom fields (defined in template). there may be data or file system permission errors?

    • #4979
      Steve
      Keymaster

      @ptiboir– Welcome to the Piklist Community!

      If you set wp_debug to true, do you see any errors?

    • #5019
      ptiboir
      Member

      thanks

      i didn’t find relevant error message, but i tried to search in piklist source where save the term meta.
      i found the class-piklist-form.php @ 1528 this: $_REQUEST[piklist::$prefix][‘fields_id’]
      but in my request doesn’t exists fields_id, but only fields under piklist prefix ( _ )

      some idea?

    • #5026
      Steve
      Keymaster

      @ptiboir– Can you zip up and email us your Piklist plugin or theme? Send to [email protected]

      Also, let us know what version you are using.

    • #5037
      ptiboir
      Member

      i tried the official piklist plugin, from wordpress.com
      and try download from http://piklist.com/trunk

      piklist cannot save the piklist core data, so first i want to fix this…

    • #5039
      Steve
      Keymaster

      You’re the first to report the .org version doesn’t save, so it may be something in your configuration.

      Do the built-in demos work?

      • #5084
        ptiboir
        Member

        &Steve! because the plug-in don’t save smoething (also) at core secttings, i cín’t enable the demo content. :\
        BUT

        @adrianm
        it’s works, thanks

    • #5081
      adrianm
      Member

      I had the same issue. I don’t know if the same cause but here’s what I’ve found:

      1. I have piklist 0.9.4.24 and the W3TC plugin with only the Object Cache enabled
      2. I’ve looked a little bit at the code and I’ve found that in class-picklist-validate.php your code is

      
      public static function check(&$stored_data = null)
        {
          if (!isset($_REQUEST[piklist::$prefix]['fields_id']) || !$fields_data = get_transient(piklist::$prefix . $_REQUEST[piklist::$prefix]['fields_id']))
          {
            return false;
          }
      

      which is not clearly readable (!$fields_data = get_transient(…) so I replaced it with

      
      public static function check(&$stored_data = null)
        {
          if (!isset($_REQUEST[piklist::$prefix]['fields_id']) || !($fields_data = get_transient(piklist::$prefix . $_REQUEST[piklist::$prefix]['fields_id'])))
          {
            return false;
          }
      

      The transient is not retrieved (ie: $fields_data data is always false)

      If I disable the W3TC Object Cache, everything works as expected.

      Apparently the cache file is not written by the W3TC plugin. I don’t know why. Maybe the transient’s lifetime is too short? The file to be written too big?

    • #5090
      Steve
      Keymaster

      @adrianm– I can’t reproduce the issue, even with W3TC.

      Does your update to the code fix the issue?

    • #5095
      adrianm
      Member

      @Steve, Disabling the W3TC Object Cache feature solved the issue. The issue appeared both on Windows and Linux.

    • #5113
      Steve
      Keymaster

      Thanks. We’ll take a look at W3TC Object Caching.

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