Tagged: ,

Viewing 23 reply threads
  • Author
    Posts
    • #8821
      nnovosad
      Participant

      Hello.
      I updated the plugin according to the instructions – https://piklist.com/support/topic/9-9-data-update-script-not-triggered/#post-8808
      My code for the field.

      /*
      Title: Images
      Post Type: service
      Lock: true
      Order: 15
      */
      
      piklist('field', array(
          'type' => 'file',
          'field' => 'services_images',
          'label' => __('Upload or choose an images', 'vts'),
          'columns' => 12,
          'options' => array(
              'modal_title' => __('Add File', 'vts'),
              'button' => __('Add', 'vts')
          ),
          'attributes' => array(
              'data-multiple' => 'true',
          )
      ));

      I select several pictures but after saving only one last picture remains.
      Also after the update, this output of the image does not work <?php echo wp_get_attachment_url($item['img'][0]); ?>
      Works like this – <?php echo wp_get_attachment_url($item['img']); ?>

    • #8824
      Steve
      Keymaster

      Did the update script run? Were there any errors?

      • #8826
        nnovosad
        Participant

        I updated as follows:
        1) deactivate and delete Piklist
        2) open your database. In the wp_options table, look for this field: piklist_active_plugin_versions
        3) Delete that field
        4) Install 0.9.4 and activate. piklist_active_plugin_versions should come back to your db.
        5) Upgrade to 0.9.9.15

        There were no errors during the update.

    • #8827
      Steve
      Keymaster

      Please try deleting the services_images field in your database, and see if that works.

    • #8831
      Web Guy
      Member

      We have the same “Only one image is saved” issue here, but it’s still there after downgrading Piklist.
      Our client updated their Piklist plugin.
      When they attempt to add images, any existing images disappear and only the last one they attempt to add gets saved.
      We reverted to piklist.0.9.4.31 but the “only one image” issue remains.

      We use basically the same code for two fields that have the issue:

        piklist('field', array(
          'type' => 'file'
          ,'field' => '_thumbnail_id'
          ,'scope' => 'post_meta'
          ,'label' => __('Click the checkmark to delete an image.','products')
          ,'options' => array(
            'title' => 'Add image(s)'
            ,'button' => 'Add image(s)'
          )
        ));
      
        piklist('field', array(
          'type' => 'file'
          ,'field' => 'bmi_upload_media'
          ,'scope' => 'post_meta'
          ,'label' => __('Add \'In The News\' Images','products')
          ,'options' => array(
            'modal_title' => __('Add File(s)','products')
            ,'button' => __('Add','products')
          )
        ));
      
      

      Please LMK if you need further information.

    • #8832
      Steve
      Keymaster

      If you try a NEW post, can you save multiple items?

    • #8833
      Web Guy
      Member

      No, I can select multiple images, but when I Save, only the last selected image is saved.

    • #8834
      Steve
      Keymaster

      Please try our latest beta. I just tested with your code and it worked fine:
      https://github.com/piklist/piklist/releases

    • #8838
      Steve
      Keymaster

      Sorry about that. We just release v0.9.9.16 which should fix the issue.

    • #8851
      Web Guy
      Member

      Steve, I just went into my admin and see we are now running v0.9.9.16. Looks like it fixed the single image issue.

      However, I’m wondering how we got v0.9.9.16 because I was hiding Piklist from the client to prevent them accidentally updating before I had time to run the script and troubleshoot.

      Did v0.9.9.15 update itself to v0.9.9.16?

    • #8852
      Web Guy
      Member

      Also I’m still seeing this message: “The data structure for Piklist Add-More and Workflow tabs have changed in this version and require an update.”

      If v0.9.9.16 does the upgrade script, should that message still appear?

      And if we’re good to go, how do I get rid of the message?

      Sorry for my confusion… too many spinning plates at the moment!

    • #8915
      cdcorey
      Member

      I’m having this problem under Piklist 0.9.9.17… Any ideas?

    • #8916
      Web Guy
      Member

      Me too. This issue is back again in 0.9.9.17.

    • #8917
      Web Guy
      Member

      Me too. This issue is back again in 0.9.9.17.

    • #8918
      Steve
      Keymaster

      Please try our latest Beta will is due to be released soon. It should solve your issues:
      https://github.com/piklist/piklist/releases/tag/0.10-beta.5

    • #8929
      Web Guy
      Member

      I saw the 10.0 release in my plugin page and updated.

      The update bricked the site with a white page server error.

      Fortunately I kept a copy of 9.9.17, and even though it’s broken, I was at least able to get the site to load.

      Thoughts?

    • #8930
      Steve
      Keymaster

      Sorry, to hear that. We’ve been testing 0.10 for months and this is the first time we’ve heard of a white screen.

      Can you implement WP_DEBUG and let us know what error you are getting?

      That will help us resolve it.

    • #8931
      Web Guy
      Member

      Nothin on screen but this is all over the DEBUG_LOG:

      [10-May-2018 00:45:51 UTC] PHP Fatal error: Call to undefined function is_user_logged_in() in /home3/bigmouthinc/public_html/wp-content/mu-plugins/endurance-page-cache.php on line 370
      [10-May-2018 00:45:52 UTC] PHP Fatal error: Can’t use function return value in write context in /home3/bigmouthinc/public_html/wp-content/plugins/piklist/includes/class-piklist.php on line 2715

    • #8933
      Steve
      Keymaster

      Looks like you’re running on older version of PHP. You probably want to have your webhost upgrade that since WordPress is recommending PHP 7.2.

      In the meantime, we just released v0.11 which supports PHPv5.3+ and should fix your issue.

    • #8938
      cdcorey
      Member

      FYI upgrading to the beta did resolve the issue for me. Thanks.

    • #8945
      Steve
      Keymaster

      Great!

    • #8947
      Web Guy
      Member

      Steve, we’re good as well with 0.11. Thanks for the quick responses!

    • #8995
      Web Guy
      Member

      Steve, now that we have 0.11.1, should I still be seeing the “IMPORTANT MESSAGE FROM PIKLIST” notice on the Plugins page? I assume not, so How can I disable it?

    • #9062
      Web Guy
      Member

      Steve, we’re running 11.4 and still seeing the box “IMPORTANT MESSAGE FROM PIKLIST…”

      Is it still relevant?

      We’re not using any Add-More or Workflow tabs.

    • #9064
      Steve
      Keymaster

      If you upgraded from a version older than 0.9.9, then you get the message. Run the upgrade and you will be all set.

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