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: Exception
This topic contains 12 replies, has 3 voices.
Last updated by Marcel 1 year, 8 months ago.
Assisted by: Marcel.
Author | Posts |
---|---|
April 22, 2023 at 12:11 pm #13521039 | |
sltlG |
When i active the wmpl plugin on my staging website i am getting error |
April 22, 2023 at 1:07 pm #13521339 | |
Mihai Apetrei Supporter
Languages: English (English ) Timezone: Europe/Bucharest (GMT+02:00) |
Hi there. Before your ticket is assigned to one of my colleagues, can you please enable the WordPress debug log? This will allow us to see if any PHP errors are being produced. More Info: https://codex.wordpress.org/Debugging_in_WordPress In order to do that, edit the wp-config.php file inside your WordPress directory and insert the following lines: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); Now please reproduce the issue once again. Locate the debug log in: /wp-content/debug.log Paste the content (if any) on a site like pastebin.com and then share the link here with us (only you and us will see the URL you are sharing). We will be waiting for your response. Kind regards, |
April 24, 2023 at 5:20 am #13524265 | |
sltlG |
I have added these line in wp-config.php file but still same issue |
April 24, 2023 at 7:24 am #13524685 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi,
Those lines are not solving your problem. As described, they activate the WP debug log to see what is causing the issue. Please post us the log entries you see, so we can see what error exactly is happening and tell you the next steps to solve it. 🙂 Best Regards |
April 24, 2023 at 8:12 am #13524997 | |
sltlG |
Please check the content from wp-content/debug.log |
April 24, 2023 at 9:31 am #13525745 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, you site is missing important WPML database tables. Did you install WPML completely new, or did you have it already installed in the past? Depending on whether you have translated content, the solution will look different. Please let me know. Best Regards |
April 24, 2023 at 9:46 am #13525901 | |
sltlG |
already installed in the past then i have removed now again installed |
April 24, 2023 at 10:04 am #13525975 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Thanks for the info. Your installation is missing these two tables: - wp_icl_translations If you already have translations, you can use the following workaround and continue to work with WPML. #1 Make a full backup of your site (files and database). function wpml_fix_missing_icl_tables() { if( function_exists( 'icl_sitepress_activate' ) ) icl_sitepress_activate(); } add_action( 'wp_footer', 'wpml_fix_missing_icl_tables' ); #3 Visit your site’s homepage at least one time. Does this work for you? If not, you can also add them manually, as described here in our table schema: https://wpml.org/documentation/support/wpml-tables/. Best Regards |
April 24, 2023 at 10:12 am #13526039 | |
sltlG |
Its very complicate. can I remove all the wpml data and install again? |
April 24, 2023 at 10:18 am #13526049 | |
sltlG |
I did this process as per your guideline but still getting same issue |
April 24, 2023 at 10:23 am #13526063 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, #1 You can remove all tables manually after a full backup. Look in your database for tables with the 'icl_' prefix such as wp_icl_flags, wp_icl_languages, wp_icl_translate etc. #2 Then go to wp_options table and remove all option keys that have the following strings as part of their name: "sitepress", "wpml", "icl". Afterwards, reactivate WPML and you can re-start the setup wizard. Best Regards |
April 27, 2023 at 10:08 am #13548447 | |
sltlG |
I have installed the plugin and selected languages. Now what is the next process to translate page in in each language. I am using Custom field pro plugin. Please suggest New threads created by Marcel and linked to this one are listed below: https://wpml.org/forums/topic/translation-of-custom-fields-pro/ |
April 27, 2023 at 4:13 pm #13551629 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, thanks for the confirmation. I created a new ticket to handle your new question regarding translation of Custom Fields Best Regards |