This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to install WPML for site translation but encounters an error that prevents the menu from functioning. The client has tried deactivating plugins and switching to the basic WordPress menu, but the issue persists.
Solution: First, we asked the client to enable the debug log to identify the specific error by adding the following lines to the wp-config.php file:
Next, considering that the client had just installed WPML and had not started translating yet, we suggested performing a complete reset of WPML: 1. Navigate to WPML → Support and click the Troubleshooting link. 2. In the Reset section, select the checkbox 'I am about to reset all translation and language data' and click the 'Reset and deactivate WPML' button. We also provided a link to our documentation on resetting WPML: https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/#step-3-do-the-wpml-reset We emphasized the importance of creating a backup before performing the reset, as it cannot be undone and all translations sent to remote services will be lost.
If the solution provided here is not relevant to your case, either because it's outdated or not applicable, 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: Contact WPML Support.
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.
I am trying to install wpml so i can transalte the site.
I tried to deactivate and i found the "problem".
I used elements kit lite in the header and there was an error.
I said okay, let's go with the basic wordpress menu and used it but the same error occured.
It doesn't let me to have a menu.
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
hidden link But i have deactivated the wpml plugins so the site can work
Could you please upload screenshots showing the problem?
Please enable the debug.log. You can do this by adding a few lines to the site’s wp-config.php file. With error log enabled, you will see what the actual problem is.
To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);
In order to enable the error logging to a file on the server you need to add yet one more similar line:
define( 'WP_DEBUG_LOG', true );
In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.
First of all, thank you very much for your immediate response
The errors on the back of the site
-------------------
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 3456
lang="">
Skip to main contentSkip to toolbar
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 179
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 183
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 196
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 198
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 199
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 200
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 251
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 252
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/flegrarooms/public_html/wp-includes/kses.php on line 1745
Warning: Trying to access array offset on value of type null in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-admin-lang-switcher.class.php on line 252
-------------------
The errors on the front of the site
-------------------
Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37
Deprecated: Creation of dynamic property Whip_RequirementsChecker::$messageManager is deprecated in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 38
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/flegrarooms/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 3456
lang="" prefix="og: hidden link">
About WordPress
Flegra Rooms
Customize
33 updates available
00 Comments in moderation
New
Edit Page
Rank Math SEO
Maintenance is Off
Performance
Elementor Debugger
Search
Howdy, flegra_adm_rooms
Skip to content
I think that you are using an outdated version of WPML plugins. To benefit from the latest bug fixes and improvements, it is recommended that you update your WPML plugin to the latest version, 4.6.10, and add-ons. This update may not necessarily solve your problem, but it will help us troubleshoot it better with the latest code available.
You can check the latest released versions under the "My Account -> Downloads" section on this website. To update, you can follow the instructions provided in this URL: http://wpml.org/faq/install-wpml/. If you do not see the updates, click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.
Before updating, please make sure to backup your database first. You can use a plugin for this purpose if you like (e.g. http://wordpress.org/plugins/duplicator/).
Please let me know if the issue persists after the update has been done.
You mentioned initially that you have just installed WPML, and probably no translations have been done yet.
Could you try to reset WPML completely and configure it again?
1. Go to WPML → Support and click the Troubleshooting link.
2. In the Reset section of the Troubleshooting page, select the I am about to reset all translation and language data checkbox. Then, click the Reset and deactivate WPML button.
Thank you for your help.
The last solution seemed that solved the issue.
Thank you for all!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.