Skip Navigation

[Resolved] I get an error when i try to edit an archive page i created for custom post type

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/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by terenceI-2 12 months ago.

Assisted by: Waqar.

Author
Posts
#2599697

1. I created a new custom post type with custom field
2. I created a template for this custom post type. Everything is OK.
3. I tryed to create an archive page for this custom post type. Thus i went to the toolset's dashboard, clicked on the "create an archive" button on my custom post type, gave a name to the archive, clicked on the create button.
4. Archive editing page opened then i got the following error :

TypeError: Cannot read properties of null (reading 'name')
at Se (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:2:19189)
at c (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:2:19537)
at mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:2:20176
at mywebsitelink/wp-content/plugins/toolset-blocks/public/js/wordpressArchive.js?ver=3.6.7:1:58397
at mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:9:3098
at f (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:9:2071)
at l (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:2:19683)
at Object.__unstableMarkListeningStores (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:2:20176)
at mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:9:2223
at p (mywebsitelink/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e:9:2121)

#2600015

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

Have you checked the server's error logs, for any other detailed errors or warnings?
( ref: https://wordpress.org/documentation/article/debugging-in-wordpress/ )

To troubleshoot this, I'll suggest the following steps:

1. Please ensure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can add the disabled items, one by one, to narrow down to a possible conflicting one.

3. If the issue persists, I'll need to see how Toolset settings and this archive are configured in the admin area. You're welcome to share temporary admin login details, in reply to this message.

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2600731

Hi Waqar,

I took the liberty of contacting you again because my situation is urgent. I gave you access to the site yesterday. Have you been able to look at the problem ?

waiting for your return.

Regards,

Terence

#2600745

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

You'll see the following error under the 'critical issues' at WP Admin -> Tools -> Site Health:
( screenshot: hidden link )


REST API Response: (http_request_failed) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Some configuration or security firewall on your website's server is not allowing the REST API calls to complete in a timely manner. REST API is needed when working with the blocks-based editor 'Gutenberg', including the views and WordPress Archives screens.

Here are some guides that share information about this error, along with the fixes:
hidden link
hidden link

I hope this helps and please let me know how it goes.

regards,
Waqar

#2600771

Waqar,

The error wasn't related with REST API calls. Indeed i fixed the Rest error but still had the issue.
It were related with incompatibility between one of my theme plugins (Callie Britt theme) and the toolset. When I switch on another theme archive editing works well. I will do it that way. First switch on a default theme, finish editing my archive page then switch back on Callie Britt theme.

Thank you !

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.