Skip Navigation

[Resolved] PHP 7.2 not compatible with Content Templates

This support ticket is created 5 years, 9 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Amr 5 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1206631

Amr
Screen Shot 2019-02-26 at 3.45.52 PM.png
Screen Shot 2019-02-26 at 3.33.22 PM.png

We upgraded PHP to 7.2 and now all content templates are not showing properly. The Type field place holders like:

[types field='educator-name'][/types] are not interpreted and are showing "as is" as opposed to showing the actual field content.

See screenshot
Screen Shot 2019-02-26 at 3.33.22 PM.png

Other Views are working fine.

See screenshot :
Screen Shot 2019-02-26 at 3.45.52 PM.png

#1206756

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I checked on my local test install with minimum setup (Only Toolset plugins active with default theme active) but I do not able to reproduce this issue.

To debug this issue further and rule out any side effect of any third party plugin or theme you are using:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?

If the above step does not help: I need access to details of your install.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#1207237

Amr

Hello Minesh,

The code in the content template that I am using is the following. This code works perfectly well with PHP 5.6 but not with PHP 7.2. However,I noticed that if I remove the <span> from the {su_tab] title shortcode, it works.

Why would that matter especially if this was not an issue with PHP 5.6?

[su_tab title="<span style='background:#d09c39!important;color:#ffffff!important;border-radius:4px;font-weight:500 !important;'><center>More Info</center></span>" disabled="no" anchor="" url="" target="blank" class=""]

[wpv-conditional if="( $(wpcf-employer-account-status) eq '0' ) OR ( ( '[wpv-user field="user_login"]' eq '[wpv-post-author format="meta" meta="user_login"]' ) AND ( $(wpcf-employer-account-status) eq '1' ) )"]

<div class="row profile">

<div class="col-sm-4">
[wpv-conditional if="( '[types field='employer-logo' output='raw'][/types]' ne '' )"]
[types field='employer-logo' title='%%TITLE%%' alt='%%ALT%%' align='left' size='large' resize='proportional' class='photo' style='border-radius:4px;'][/types]
[/wpv-conditional]
[wpv-conditional if="( '[types field='employer-logo' output='raw'][/types]' eq '' )"]
<img class="attachment-thumbnail alignleft photo" src="/wp-content/uploads/2018/08/Blank-Headshot.png">
[/wpv-conditional]
</div>

<div class="col-sm-8">
<b>[types field='employer-name'][/types]</b><br>
<div style="font-size: 80%;line-height: 1.5em;">
<b>Program Name</b>: [types field='employer-name-of-program'][/types]<br>
[types field='employer-street-address'][/types]<br>[types field='employer-city'][/types], [types field='employer-state'][/types] - [types field='employer-zipcode'][/types]<br>
<b>Languages taught</b>: [types field='employer-languages-taught' separator=', '][/types]<br>
<b>Institution Type</b>: [types field='employer-institution-type' separator=', '][/types]<br>
<b>Instructional Format(s)</b>: [types field='employer-instructional-format' separator=', '][/types]<br>
<b>Education Levels Served</b>: [types field='employer-education-levels-served' separator=', '][/types]<br>
<b>Student Body</b>: [types field='employer-student-body' separator=', '][/types]
</div>
<div style="padding-top:5px;">[toolset-edit-post-link content_template_slug="edit-employer-profile"]<button type="button" class="btn btn-warning">Edit Profile</button>[/toolset-edit-post-link] </div>
</div>

</div>

<div style="clear:both"></div><hr>

[su_tabs class="sutabsclass"]

[su_tab title="<span style='background:#d09c39!important;color:#ffffff!important;border-radius:4px;font-weight:500 !important;'><center>More Info</center></span>" disabled="no" anchor="" url="" target="blank" class=""]
<div class="block">
<div class="sectionheadings">Institutional History<br></div>
<div class="sections">
[types field='employer-institutional-history'][/types]
</div>
</div>

<div class="block">
<div class="sectionheadings">Key Staff<br></div>
<div class="sections">
[types field='employer-key-staff'][/types]
</div>
</div>

<div class="block">
<div class="sectionheadings">Department Point of Contact and Contact Information<br></div>
<div class="sections">
[types field='employer-department-point-of-contact-name'][/types]<br>
[types field='employer-department-point-of-contact-email-address'][/types]
</div>
</div>
[/su_tab]

[su_tab title="<span style='background:#d09c39!important;color:#ffffff!important;border-radius:4px;font-weight:500 !important;'><center>Jobs Listing</center></span>" disabled="no" anchor="jobs" url="" target="blank" class=""]
<div class="sections joblisting">
[wpv-conditional if="( '[wpv-user field="user_login"]' eq '[wpv-post-author format="meta" meta="user_login"]' )"]
<div style="padding-bottom:8px;"></div>
[/wpv-conditional]
[wpv-view name="jobs-listing"]
</div>
[/su_tab]

[/su_tabs]

[/wpv-conditional]

#1207599

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - [su_tab] is not the shorcode that belongs to Toolset.

If you remove the [su_tab] shortcode and the Toolset shortcodes you added to content template works fine - that means this issue do not belong to Toolset but the [su_tab].

Can you confirm - what you see when you remove [su_tab] shortcode. If this issue confirms, you should contact [su_tab] plugin/theme support.

If the issue is from Toolset, we are happy to help you further. Could you please try the above steps and let share your feedback.

#1207880

Amr

My issue is resolved now. Thank you!