This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues accessing the Settings > Permalink page in the WordPress admin and encountering a PHP Fatal error related to type mismatch in
/wp-includes/class-wp-rewrite.php
, it might be due to a conflict with String translation. Solution: We recommend following these steps: 1. Navigate to Toolset Types >> Post Types page. 2. Edit the Slides and Specials post types. 3. In the Options metabox, add "EP_PERMALINK" in the "Permalink epmask" field. 4. Save the post type settings. This should resolve the issue. For more details, you can refer to a related discussion on our forum: Toolset support forum.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I am trying to access the Settings > Permalink page on the WordPress admin. The issue can be seen when attempting to access this page. The server log shows an error when trying to access: GET /wp-admin/options-permalink.php HTTP/1.0.
Symptoms:
I expected to access the page, but instead, I got a WordPress error. The server log shows a PHP Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /var/www/vhosts/scent-of-sicily.com/httpdocs/wp-includes/class-wp-rewrite.php:1036. It appears to be caused by String translation.
1. Went to Toolset Types >> Post Types page.
2. Edited the Slides and Specials post types one by one: hidden link hidden link
3. Open the Options metabox section as you can see in the attached screenshot.
4. Added the “EP_PERMALINK” text in the “Permalink epmask” field as you can see in the attached screenshot.
5. Pressed the Save post type button and the issue is gone.
Thanks for the feedback. Could you please try to follow the below steps on live site and let me know how it goes:
1. Take a backup of your site first for safety reasons.
2. Go to the Toolset Types >> Post Types page.
3. Edit each custom post type one by one (including Slides and Specials).
4. Open the Options metabox section of each post type.
5. Add the “EP_PERMALINK” text in the “Permalink epmask” field if it’s missing and press the Save post type button.
6. Clear all sorts of site/server/CDN cache and see if this resolves the issue.
7. If the above steps don’t help, please provide temporary access (WP-Admin and FTP Login info) to your site, so that I can look into your setup and debug the issue.
Your next answer will be private, meaning only you and I can access it.
=== Please backup your database and website ===
✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.