[Resolved] I'm faceing an issue flags are not showing on language switcher
This thread is resolved. Here is a description of the problem and solution.
Problem: You are setting up a language switcher using WPML on your site under development, but the flags are not showing. Solution: The issue might be due to the missing "wp_icl_flags" database table. Here's how you can address this: 1. Ensure you back up your site first for safety. 2. Insert the following code at the bottom of the functions.php file in your theme's root folder:
3. After adding the code, visit your site's homepage at least once. 4. Remove the code afterward. If the problem persists, we may need to install the wp phpMyAdmin plugin on your site to add the missing database table.
Please note that this solution might be outdated or not applicable to your 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 continues, 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.
I'm sorry to hear that your site is experiencing issues. Deactivating all plugins can sometimes cause a site to break, especially if certain plugins are essential for its functionality.
Please reactivate all the plugins and the theme that you deactivated. If the issue persists, please restore the backup you took before making changes.
I have set up a fresh WP site on cloudways. Can you please migrate your site to the cloudways server so that we can see if it's a server-specific issue? I have shared the migration details in a previous private reply.
I'm sorry to hear that you're still having issues. I understand how stressful this situation can be, but I'm here to help you through it. We'll get your site back up and running as quickly as possible. Let's get this sorted out step-by-step:
1. Did the backup restore completely? Sometimes, problems can persist if the backup wasn't fully restored.
2. Can you tell me exactly what problems you're seeing now other than missing flag images? Details will help me find the cause of this issue.
3. Additionally, please let me know once the migration process is completed so that we can debug the missing flag images issue further on the test server.
[24-Jun-2024 23:04:26 UTC] E_DEPRECATED: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/customer/www/daycharteribiza.teatimeagency.com/public_html/wp-content/themes/houzez/framework/Mobile_Detect.php on line 1257
I have reviewed the situation and I am not able to find what exactly you have done here as I believe you cloned an application maybe and it is not loading correctly.
However, that issue might be due to the clone not being successful as you have exceeded the disk space of your plan currently as the size of the website teatimeagency.com is 51545MB which only that website is more than the available disk space of your plan.
32G daycharteribiza.teatimeagency.com
3.2G dreamboats.teatimeagency.com
10G teatimeagency.com
There are 22GB of the website daycharteribiza.teatimeagency.com of Updraft backups: u6-gzrdaeqr7kxx@gmadm1015.siteground.biz:~/www/daycharteribiza.teatimeagency.com/public_html/wp-content$ du -sh updraft
22G updraft
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.