Skip Navigation

[Resolved] Field and view shortcodes not loading after selecting Layout cell type

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

Problem:
I do not able to add shortcodes using Fields and views button

Solution:
In general - it happens when there is Javascript conflict or server is not respecting the AJAX request.

You can find proposed debug steps with the following reply:
=> https://toolset.com/forums/topic/field-and-view-shortcodes-not-loading-after-selecting-layout-cell-type/#post-610557

You can find proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/field-and-view-shortcodes-not-loading-after-selecting-layout-cell-type/#post-610617

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

This support ticket is created 6 years, 11 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 7 replies, has 2 voices.

Last updated by Charles 6 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#610478
Screen Shot 2018-01-28 at 11.42.55 PM.png

I am trying to:
Use Layout cells to insert short codes for post content, images, etc, but the short codes aren't loading. The window freezes as shown in the atttached screen shot.

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

I expected to see:
Types short-code being inserted

Instead, I got:
Layout window frozen.

#610530

I'm hosting WordPress on a newly installed Linux server. Am I missing some PHP modules? I'm have following modules installed at the moment:

php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc php-zip

#610557

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - In order to minimize the cause of the issue, could you please try to follow following steps:
1)
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?

2)
Could you please activate WP_DEBUG from wp-config.php file and send me possible errors for review.

3)
Do you see any error on your server's error log file?

To enable PHP debugging in WordPress, edit your wp-config.php file and add the following:

PHP Debugging in WP

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

This produces a file error_log.txt in your WordPress root directory. Make sure that the web server can create and write this file. If it cannot, use an FTP program to create the file and make it writable to Apache (normally, the www-data user).

After this is enabled, all errors that occur when using your website’s front-end and backend, are logged into that error_log.txt file.

More info:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

#610590
Screen Shot 2018-01-29 at 4.36.35 PM.png

Hi Minesh,

I have enabled WP_DEBUG in wp_config.php. I have also created error_log.txt. chown to www-data and chmod to 664. However, I get HTTP ERROR 500 after inserting the ini_set directives in wp_config.php. I'm running it on nginx for your info.

#610593

Minesh
Supporter

Languages: English (English )

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

That is strange. Please remove the php_ini directives you added to file.

Could you please send me problem URL and steps to reproduce the issue as well as it possible for you to send me access details?

#610601

To reproduce the issues:

You can try creating View or insert any field short codes in Layout. It will just hang there. Also the main page hidden link featured articles loop slider at the bottom not working too.

#610617

Minesh
Supporter

Languages: English (English )

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

Ok - it seems the issue is from your server. I see the following notice when I try to add any view's shortcode from "Fields and Views" button.

Loading mixed (insecure) active content "<em><u>hidden link</u></em> on a secure page

Also, I see the 400 error:

400 Bad Request 

Could you please consult your server admin authority and share all these required information ask them to check this issue accordingly.

#610953

Thanks Minesh. It was something to do with HTTPS setup.