Skip Navigation

[Resolved] repeating image problem when higher count was there

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 2.87 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 12 replies, has 2 voices.

Last updated by Christian Cox 7 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#573800
Error-4thimage.jpg
correct3images.jpg

I am trying to: place images from a repeating image field

Link to a page where the issue can be seen: hidden link

I expected to see: the normal view without field

Instead, I got: Types field in frontend.

I place in a CPT a repeating image field and place it in Content template for the CPT with
[wpv-for-each field="wpcf-weitere-bilder"][types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='lefg' resize='proportional'][/types]

It works well if you add 3 repeating images. When you place the fourth repeating image was the complete Layout destroyed.
The images are not longer shown and the datas from toher fields on top was not longer presented. Instead of it you see the Views code directly and images and videos are not longer shown???
If i delete then again the 4th image all works perfect as before???

#573883

Hi can you try the following troubleshooting steps?
- Temporarily disable all plugins except Toolset, and activate your parent theme. Is the problem still occurring? If not, reactivate your child theme and other plugins one by one until the conflict is revealed.
- Is this the complete code? I noticed that you have used "lefg" instead of "left", you have double quotes inside double quotes, and the wpv-for-each tag is unclosed. Corrections below:

[wpv-for-each field="wpcf-weitere-bilder"]<a href="[types field='weitere-bilder' url='true' raw='true' size='full'][/types]">[types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='left' resize='proportional'][/types]</a>[/wpv-for-each]

If neither of these solve your problem, I may need to take a look inside your wp-admin area to see what's going on.

#574223

Hi sorry for the delay getting back to you. I was able to log in but all I can access in wp-admin is my user profile. Everything else is restricted. Can you check?

#574280

Try now, short error in multisite 🙂

#574565

Hi, there seems to be some conflict in the Content Template for this page. If I replace everything in the Template for Verzeichniseinträge with only this code, the images appear as expected:

[wpv-for-each field="wpcf-weitere-bilder"]<a href="[types field='weitere-bilder' url='true' size='full'][/types]">[types field='weitere-bilder' alt='%%ALT%%' title='%%TITLE%%' size='medium' align='left' resize='proportional'][/types]</a>
  [/wpv-for-each]

However, if I place that same code in the existing Content Template, shortcodes stop working. In order to determine what the conflict is, I need to add and remove code from the Content Template to try to isolate the conflicting elements. While I'm doing those tests, the design of each verzeichnis page will be changing. I will replace the original content once I'm done with the tests. Standby and I will update you soon.

#574567

great, tnx for your support!

#574590

Hi, it seemed to be having a problem with this line:

[types field='dateien' link='true' title='Hier PDF anzeigen  ' separator=' '][/types]

The attribute "separator" is not supported on a file field shortcode. I'm not exactly sure why it's breaking the shortcodes on the page, but removing it seems to have resolved the issue. Can you please test it and confirm this has fixed the problem?

Supported shortcode attributes here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#file

#574634

I changed it so and it works also on live System - till i place a fifth image, then it was again "broken"???
I place it in testsytem in the sample page too - and you can see that the site was again "ugly".

#574678
Screen Shot 2017-09-28 at 2.23.45 PM.png

That's strange. Again, if I remove the rest of the content in the Content Template and include only the repeating field, 5 images appear correctly. So my guess is there's some other content in this template that is conflicting somehow, and it's probably similar to what we saw before with invalid shortcode attributes. I'm having trouble deciphering all the conditionals in this template, so I don't think I'll be able to find a solution today. I will return on Sunday, when I can take another look. If you need more assistance before that, please feel free to open a new ticket and reference this ticket for the other supporter.

#575226

Okay I'm not able to isolate a single source of the conflict here. I think the next step will be to escalate this problem to my 2nd tier support team for further investigation. In order to do that, I need to be able to replicate this issue in a local environment. However, I have not been able to replicate it so far, and since this is a multisite installation I know clones can be difficult to create. Do you have any recommendations for creating a copy of this site so I can install it locally?

#576387

Hi Christian,

sorry - was out. I will see starting tommorrow to made an additional testsystem where i remove the multisite-installation and could send you then the datas for a clone? Could you work with updraft backup data for cloning?

#576627

Yes, I believe I could work with that. I will activate private reply fields here so you can share a download link with me.

#578770

Sure, we can pick up again when you are ready. Private reply fields are enabled again here.