[Resolved] Fatal error: Uncaught Error: Class 'WPML\FP\Relation' not found
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing a fatal error after installing a new version of WPML on top of an old version without updating it. The error message indicates that the class 'WPML\FP\Relation' is not found. Solution: We recommend installing WPML plugins using the OTGS Installer to ensure all necessary files are present. For detailed instructions, please follow our documentation: https://wpml.org/faq/install-wpml/
If this solution does not resolve the issue, please do not hesitate to open a new support ticket with us: 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.
A few years ago, I was using WPML. The site had version 4.2.7.1 installed.
Today, I made a new payment and installed version 4.6.9, while the old version remained.
(I did a fresh installation, not an update.)
During that time, an error like this was displayed. What should I do?
-----
Fatal error: Uncaught Error: Class 'WPML\FP\Relation' not found in /home/path3/iricosky.com/public_html/wp/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-query-filter.php:82 Stack trace: #0 /home/path3/iricosky.com/public_html/wp/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(2518): WPML_Term_Query_Filter->get_terms_args_filter(Array, Array) #1 /home/path3/iricosky.com/public_html/wp/wp-includes/class-wp-hook.php(310): SitePress->get_terms_args_filter(Array, Array) #2 /home/path3/iricosky.com/public_html/wp/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #3 /home/path3/iricosky.com/public_html/wp/wp-includes/class-wp-term-query.php(408): apply_filters('get_terms_args', Array, Array) #4 /home/path3/iricosky.com/public_html/wp/wp-includes/class-wp-term-query.php(308): WP_Term_Query->get_terms() #5 /home/path3/iricosky.com/public_html/wp/wp-includes/taxonomy.php(1308): WP_Term_Query->query(Array) #6 /home/path3/iricosky.com/public_html/wp/wp-includes in /home/path3/iricosky.com/public_html/wp/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-query-filter.php on line 82
-----
Furthermore, no specific errors have occurred since then.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
The issue is mostly related to the file missing when installing the plugin WPML. I suggest you install WPML plugins through the plugin OTGS installer and recheck this issue.
Please follow the documentation https://wpml.org/faq/install-wpml/
While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:
After increasing the memory limit and installing from the OTGS installer, the issue did not occur.
Thank you very much.
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.