404 and "Too many redirects" error after Migration
Support › MB Toolset Migration › 404 and "Too many redirects" error after Migration
- This topic has 3 replies, 2 voices, and was last updated 1 hour, 54 minutes ago by
Peter.
-
AuthorPosts
-
April 21, 2025 at 12:53 PM #48117
Khairul
ParticipantHi,
I'm having some trouble after successfully migrated to MB from Toolset.I've checked the backend, all data are successfully migrated, including relationships and repeated fields. However, there's:
1. Permalink settings page critical error message.
2. Error accessing all CPT frontends, some leads to 404 while others give too many redirects error.WordPress, Toolset (types and blocks) and MB AOI are the latest version before migrating.
Please advise, Thank you.
April 21, 2025 at 9:03 PM #48123Peter
ModeratorHello Khairul,
Thanks for reaching out.
Please enable WP debug and visit the Permalink settings page to see the critical error message again, then check the error log and share it with me. It will have some useful information about what happens on your site.
Refer to the WordPress documentation https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/April 21, 2025 at 9:20 PM #48124Khairul
ParticipantHi Peter,
Thank you for the reply.Here are the error messages:
Warning: Undefined array key "id" in /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Register.php on line 29 (Multiple Lines)
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Register.php:29) in /var/www/domain.com/htdocs/wp-includes/functions.php on line 7168
Warning: Cannot modify header information - headers already sent by (output started at /var/www/domain.com/htdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Register.php:29) in /var/www/domain.com/htdocs/wp-includes/functions.php on line 7144
Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /var/www/domain.com/htdocs/wp-includes/class-wp-rewrite.php:1036 Stack trace: #0 /var/www/domain.com/htdocs/wp-includes/class-wp-rewrite.php(1413): WP_Rewrite->generate_rewrite_rules() #1 /var/www/domain.com/htdocs/wp-includes/class-wp-rewrite.php(1513): WP_Rewrite->rewrite_rules() #2 /var/www/domain.com/htdocs/wp-includes/class-wp-rewrite.php(1888): WP_Rewrite->refresh_rewrite_rules() #3 /var/www/domain.com/htdocs/wp-includes/rewrite.php(282): WP_Rewrite->flush_rules() #4 /var/www/domain.com/htdocs/wp-admin/options-permalink.php(212): flush_rewrite_rules() #5 {main} thrown in /var/www/domain.com/htdocs/wp-includes/class-wp-rewrite.php on line 1036
April 21, 2025 at 9:41 PM #48126Peter
ModeratorHello,
It looks like the issue in this topic https://support.metabox.io/topic/fatal-error-uncaught-typeerror-unsupported-operand-types-string-int/#post-45145
Please follow the workaround in the topic to delete the CPT and recreate it with the same settings and let me know if it helps.
-
AuthorPosts
- You must be logged in to reply to this topic.