Skip Navigation

[Resolved] A wysiwyg field won’t show if not empty

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user has some custom tabs that can be navigated through but the second tab isn't working. It is displaying blank

Solution:

Upon investigating this it seems there are some inconsistencies in the html that the user is using which is causing the second tabbed content to be placed in the first.

It is recommended that all html tags are correctly closed.

This support ticket is created 5 years, 10 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 14 replies, has 3 voices.

Last updated by charlie 5 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1186734
austria.JPG
andorra.JPG

I am trying to: to show all information about a stemma in a specific tab called but it's completely empty when type field "note-stemma" is not empity. The view used is "stemma-child". It works perfectly but when "note-stemma" is full of information, it won't load the view.

[wpv-conditional if="( $(wpcf-note-stemma) ne '' )"] <strong>Note Stemma</strong><br>
    [types field='note-stemma'][/types][/wpv-conditional]

Link to a page where the issue can be seen:
hidden link (tab stemma)
I expected to see:
hidden link (tab stemma)
Instead, I got:
nothing is shown

#1186759

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Charlie,

Thank you for contacting our support forum.

Is it that you want to display the view only if the field is not empty correct?

Please let me know.

Thanks,
Shane

#1186869

Yeah. I do really not know why when this field is not empty all the view is not working. Maybe because there are two wsywig in the same view (blasonatura-stemma and note-stemma)

#1186891

Diego Pereira
Supporter

Hi there,

Please try the following:
- Enable the PHP error log, see instructions here: https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
- Go to the edit screen of the view, do a small modification and save
- Go to the edit screen of the post (with the issue), add some content to the field with the issue and save
- Check the post on the front-end

After that. please copy the content of the error_log.txt file (at the WordPress root directory) and send us the content. We need to check if there is any PHP errors.

Kind regards,
Diego

#1186924

the log error is this

[18-Jan-2019 17:23:49 UTC] PHP Notice: A non well formed numeric value encountered in /web/htdocs/www.araldicacivica.it/home/stemmi/wp-content/plugins/wp-views/embedded/inc/wpv-query-debug.class.php on line 382
[18-Jan-2019 17:23:49 UTC] PHP Notice: Undefined index: section in /web/htdocs/www.araldicacivica.it/home/stemmi/wp-content/themes/astra/functions.php on line 2134

the second error is a function like this
function wpv_url_param_shortcode( $atts ) {
$param = $atts['var'];

return $_REQUEST[$param];
}
but the first one I donot really understand what is

#1186934

Diego Pereira
Supporter

Hi there,

The issue occurs only with this post, or with all posts using this view?

Please send us a duplicator package, so we can debug the issue. See instructions here: https://toolset.com/faq/provide-supporters-copy-site/

Kind regards,
Diego

#1187347

This issue occurs with all posts using this view. Thank you

#1188052

Diego Pereira
Supporter

Hi there,

I think you forgot to attach the duplicator package. See instructions here:https://toolset.com/faq/provide-supporters-copy-site/ - We need it to debug the issue.

Kind regards,
Diego

#1188171

DATABASE:
hidden link

PACKAGE:
hidden link

INSTALLER:
hidden link

LOG:
hidden link

#1188182
#1188184

Diego Pereira
Supporter
ts12.png

Hi there,

I tried to download the packages throug the links but I get a error 500 (internal server error - see screenshot). I think it's a permission issue.

Could you upload the duplicator files directly to our servers? I have sent the credentials through a private reply (previous answer).

Kind regards,
Diego

#1188257

Errore: Network error: Connection refused
Errore: Impossibile collegarsi al server

#1188287

Diego Pereira
Supporter

Hi there,

Thats odd, I tested here and it worked well. Did you tried using SFTP? (not the classic FTP) - sFTP Host: 142.93.143.140

If it does not work, please upload it to a file sharing service (like Google Drive or Dropbox) and send us the link to download.

Kind regards,
Diego

#1188352

Ok, i put the installer.zip and the archives. But I don't know how to install the web site

#1189053

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-01-22 at 10.02.44 AM.png

Hi Charlie,

I took over this ticket from Diego since he isn't available currently.

I looked at this in some more detail and found that this first tab had the content of your stemma tab, so it is being loaded in there.
<div id="Info" class="tabcontent">
[wpv-post-body view_template="stato-info"]
</div>

If I removed this tab it works perfectly fine. It seems to me that there is a div or something that is not closed correctly. So I would recommend tracing through this tab to find exactly the offender.

I hope I was able to point you in the correct direction. Apart from that the tab loads fine with all the content.

Thanks,
Shane