Skip Navigation

[Waiting for user feedback] Can’t import Layouts

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 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 0 replies, has 1 voice.

Last updated by Mateus Getulio 3 days, 17 hours ago.

Assisted by: Mateus Getulio.

Author
Posts
#2789042

I am trying to: import layouts compressed in a zip or individually

/admin.php?page=toolset-export-import&tab=dd_layout_import_export

but the loader is infinite and not a single layout is imported

#2789056

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thanks for contacting us.

Can you please test minimal, using a default theme(if applicable) and with all non-Toolset and essentials plugins disabled to see if the import issue persists. If possible make a backup of the site before doing it or test on a staging copy.

In addition to that, I'd like your help enabling the debug mode to help us track the error down, please add the following code to the wp-config.php file:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
  
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
  
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
  
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

Please check following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, please try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder.

If you locate it there, please send us the last lines here in the ticket.

After you send the WP debug logs, we'll analyze them and get back to you with further steps.

Looking forward to helping you resolve this issue.

#2789076

Hi,

This is the fatal error I'm getting:

[20-Dec-2024 07:25:02 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/tgcfgo/public_html/wp-content/plugins/layouts/inc/theme/wpddl.theme-support.class.php:1140
Stack trace:
#0 /home/tgcfgo/public_html/wp-content/plugins/layouts/inc/theme/wpddl.theme-support.class.php(1123): WPDD_Layouts_Theme->write_archive_assignments()
#1 /home/tgcfgo/public_html/wp-content/plugins/layouts/inc/theme/wpddl.theme-support.class.php(912): WPDD_Layouts_Theme->manage_assignments()
#2 /home/tgcfgo/public_html/wp-content/plugins/layouts/inc/theme/wpddl.theme-support.class.php(198): WPDD_Layouts_Theme->layout_handle_save()
#3 /home/tgcfgo/public_html/wp-includes/class-wp-hook.php(324): WPDD_Layouts_Theme->import_layouts_ajax_callback()
#4 /home/tgcfgo/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /home/tgcfgo/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/tgcfgo/public_html/wp-admin/admin-ajax.php(192): do_action()
#7 {main}
thrown in /home/tgcfgo/public_html/wp-content/plugins/layouts/inc/theme/wpddl.theme-support.class.php on line 1140

#2789139

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

Thank you for sharing those logs.

To suggest the best way to fix this, I'll need to see how this view is set up in the admin area.

Can you please share temporary admin login details along with a link to a page where this view can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

I'd also like to ask permission to make a copy/staging version of your site where I can debug this closely without affecting the live site.

I'll make sure to delete this copy as soon as we get this issue fixed.

I'm afraid of debugging directly on the live site and cause issues to your visitors. Also, it is important to test a different setup as part of the troubleshooting.

Thank you, please let us know.
Mateus

#2790006

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Thomas,

I sincerely apologize for the delay in responding to your ticket due to the holiday period.

While investigating the issue with importing layouts, I noticed that I’m currently limited in my ability to debug further because my user role appears to be specific to a single site within your multisite network. This restriction prevents me from installing the plugins and tools I’d typically use for debugging or safely creating a local or staging environment.

To move forward:

Could you provide updated admin access with sufficient permissions to make network-wide changes?

Alternatively, if you have a staging or test environment replicating the issue, access to that would be even better. It would allow us to troubleshoot safely without any risk to the live site.

I enabled the private fields again in case you need to share new data. Thank you!

Best regards,
Mateus.

#2790028

Hi Mateus,

I've upgraded your account to an admin account for the whole multisite. Let me know if it's fine for you.

#2790034

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Please, take a look at my previous private reply and let me know when the migration process is done. Thanks.