This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing an 'Invalid post type' error when WPML was active, which disappeared upon deactivating WPML. The issue was suspected to be related to a conflict with another plugin.
Solution:
We recommended the client to test their site in a minimum environment by deactivating all plugins except for WPML and its add-ons. This would help identify if the issue was indeed due to a plugin conflict. The client was advised to reactivate the plugins one by one to pinpoint which one caused the issue. It was important to make a full site backup before proceeding with these steps. If the site was live, we suggested performing these procedures in a staging environment or a snapshot on a local or another server.
If you're experiencing similar issues, we recommend trying these steps to see if it resolves the problem. However, this solution might be outdated or not applicable to your specific case. 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 the issue persists, please open a new support ticket at WPML support forum.
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.
Tagged: Compatibility
This topic contains 5 replies, has 2 voices.
Last updated by Itamar 1 year, 4 months ago.
Assisted by: Itamar.
| Author | Posts |
|---|---|
| June 17, 2024 at 9:54 am #15744409 | |
|
Sinisa |
Background of the issue: Symptoms: Questions: There are also some other issues, such as inconsistent breadcrumbs Custom post type names, and inability to switch languages in case we choose Tours from the main menu (but in case we are on specific language - please check demonstration in the video). |
| June 17, 2024 at 12:23 pm #15745225 | |
|
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for the video! We focus on one issue per ticket in our technical support forum. Otherwise, tickets can get cluttered and confusing for both users and supporters. Please select the most pressing issue; we will continue working on it. The Bricks theme is officially compatible with WPML. https://wpml.org/theme/bricks/ However, there are a few known issues. Please see them in the above link and see if they relate to your issues. Also, please ensure to follow the guide on working with Bricks and WPML. hidden link Regards, |
| June 18, 2024 at 10:55 am #15748553 | |
|
Sinisa |
Hello Itamar, In that case, I would focus on the first and most important issue - the error "Invalid post type" in case I wish to open Bricks template "Tours" in Bricks builder. You can check the issue description and demonstration in the video above. P.S. I heave read guide - How to working with Bricks and WPML earlier. Thank you very much. |
| June 18, 2024 at 4:04 pm #15750053 | |
|
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, Thanks for focusing on one issue. I can see this issue in your video at around 6 minutes. Right? Please share WordPress's debug log (not WPML debug information). Please check this page for instructions. https://wpml.org/documentation/support/debugging-wpml/ To enable it, open your wp-config.php file and look for
define('WP_DEBUG', false);
Change it to:
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);
After this, repeat the action that causes the problem on your site (trigger the Invlaid post type message). The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. Thanks, |
| June 18, 2024 at 5:08 pm #15750430 | |
|
Sinisa |
Hello Itamar, Thank you for your feedback. Please, check the debug messages: [18-Jun-2024 17:04:02 UTC] PHP Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see <a>Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/shimoda/public_html/izrada/sunturist-new/wp-includes/functions.php on line 6078 Thank you very much. Best regards, Sinisa S. |
| June 19, 2024 at 5:07 am #15752548 | |
|
Itamar WPML Supporter since 02/2016
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for trying my suggestions. This could be a collision with a third-party plugin. It might be the eci_travelapps plugin, but I can't be sure yet. Please proceed with the following procedure, we call minimum environment. If possible, get your site into a minimum environment, Which means, in your case, deactivating all the plugins except WPML. Please deactivate all plugins except the WPML and its add-ons. Then please check if the problem persists. If it does not continue, start by activating the plugins individually, check when the issue comes back, and then report to me which plugin was the culprit. |
| June 19, 2024 at 9:15 am #15754413 | |
|
Sinisa |
Thank you very much Itamar! I was able to find the plugin which was in conflict with WPML. It was Custom permalinks. I deactivated and everything is fine now. I am going to create another ticket, for the only one problem which still left. Best regards, Sinisa S. |