Background of the issue:
I have a live website with English and French languages set up. The site is not in development, and the issue is urgent. The French links are not working and show English content instead. In the WPML dashboard, under WPML > Languages, no languages are displayed. Clicking 'Add / Remove language' or 'Change the default language' shows empty spaces. A fatal error occurs in WPML > Settings: Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/hpvinfo/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112. Link to a page where the issue can be seen: hidden link
Symptoms:
French links show English content. WPML > Languages page shows no languages. Clicking 'Add / Remove language' or 'Change the default language' results in empty spaces. Fatal error in WPML > Settings: Uncaught InvalidArgumentException.
Questions:
How can I get the French working again?