Open mattbedford opened 5 years ago
Issue-Label Bot is automatically applying the label Type: Bug
to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
I just noticed that this may be a duplicate of https://github.com/pods-framework/pods/issues/3507 Sorry if so.
5252 Issue Overview
Using PODS I noticed a strange behavior when trying to display images uploaded through the multiple file/image upload. It occurs when trying to reference the uploaded images on front-end and is only present when choosing the Plupload only option.
Expected Behavior
In a template file, if I call the field by using {@image_field}, as expected it prints a list of the urls of the uploaded files. If instead I try to iterate through them using an ELSE loop AND syntax to display the images, it iterates, but does not display images and instead Chrome Dev Tools suggests that it is printing instead of images.
Current Behavior,
My code to iterate through images would be this:
If I use same code, but select media upload/Plupload it correctly shows the images as expected, but using Plupload only it does not. When using Plupload only I get a screen with:
-->
-->
-->
Steps to Reproduce (for bugs)
I have pods set up like this:
Possible Solution
It's my feeling that perhaps there is another, different syntax to use when referencing images from a Plupload-only multi-file upload, instead of the usual {@_src.large}
WordPress Environment
WordPress Version: 5.2.2
PHP Version: 7.0.33
MySQL Version: 5.6.41
Server Software: Apache
Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36
Session Save Path: /tmp
Session Save Path Exists: Yes
Session Save Path Writeable: Yes
Session Max Lifetime: 1440
Opcode Cache:
Apc: No Memcached: No OPcache: No Redis: No Object Cache:
APC: No APCu: No Memcache: No Memcached: No Redis: No WPDB Prefix: da2_
WP Multisite Mode: No
WP Memory Limit: 40M
Current Memory Usage: 28.607M
Current Memory Usage (real): 30.000M
Pods Network-Wide Activated: No
Pods Install Location: /home2/elslandi/public_html/tb4u/wp-content/plugins/pods/
Pods Tableless Mode Activated: No
Pods Light Mode Activated: No
Currently Active Theme: GeneratePress Child
Currently Active Plugins:
Disable Gutenberg: 1.8.1 GP Premium: 1.8.2 My Private Site: 2.14.2 Pods - Custom Content Types and Fields: 2.7.13 Who's Online: 0.7.3
Workaround or Alternate Solution Until Bug is Addressed
I've just changed from Plupload only to Media upload/Plupload and the problem is resolved.