Skip Navigation

[Resolved] The toolset is messed up after upgraded from 2.2.18 to 3.27

This support ticket is created 5 years, 12 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 5 years, 12 months ago.

Assisted by: Luo Yang.

Author
Posts
#1206667
3.PNG
2.PNG
1.PNG

I am trying to:
Upgrade to latest 3.27 after subscribed the license

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

I expected to see:
The link should work without show up the link (Not yet upgrade)
hidden link
hidden link
hidden link

Instead, I got:

hidden link" target="_blank">
but it is not work as well

#1206702

Hi

I find out that the Toolset added the following in the page after upgraded

<div class="col-sm-6 col-xs-6 irYAIconout">
<div class="irYAIconbg">hidden link" title="hidden link">hidden link;" target="_blank">2016-17 ANNUAL REPORT</div>
</div>

The one without upgrade show as below from the page source code

<div class="col-sm-6 col-xs-6 irYAIconout">
<div class="irYAIconbg">hidden link" target="_blank">2016-17 ANNUAL REPORT</div>
</div>

#1206804

Hello,

I assume you are using a custom file/URL field to setup the PDF files, and you have setup the HTML link manually, please edit it, add attribute to shortcode [types], like this:

<a href='[types field="my-file" ouput="raw"][/types]' target='_blank'>[wpv-post-title]</a>

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#file

output:
'raw' | 'normal'(default)
‘raw’=Display raw data stored in DB. No other formatting attributes (e.g. custom separator) will be respected.

#1206881
after modified the code still no luck.PNG

Dear Luo Yang,

I rewrote the php, but it still showing incorrect information

Here is the rewrite code
<div class="col-md-4">

<div class="irYDD irYDDs" <?php
if($item['interim_report_url']==null) {
echo 'style="display:none"';
} ?>>
" output="raw"][/types]' target="_blank">
</div>
</div>
</div>

the webpage still error (Interim Reports column)
hidden link

#1206890

Since it is a custom PHP codes problem, please provide your test site credentials and FTP access, also point out where I can edit your PHP codes, I need to test it in a live website. thanks

#1206960

Thanks for the details, I can login into your website, the custom field "interim-report-en" is a URL field, so you just need to edit theme file "annual-interim-reports.php", line 28,
From:

'interim_report_url' => types_render_field('interim-report-'.$current_lang, array('url'=>true)),

to:

'interim_report_url' => types_render_field('interim-report-'.$current_lang, array('output'=>'raw')),

And restore all other codes back.

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#url
output:
'raw' | 'normal'(default)