Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2621440 bytes) in /home/alhagavt/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/REST/RewriteRules.php on line 35

Fatal error: Uncaught Error: Call to a member function get_requested_lang() on null in /home/alhagavt/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1134 Stack trace: #0 /home/alhagavt/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language() #1 /home/alhagavt/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3482): WPML_Locale->locale() #2 /home/alhagavt/public_html/wp-includes/class-wp-hook.php(324): SitePress->locale_filter('en_US') #3 /home/alhagavt/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('en_US', Array) #4 /home/alhagavt/public_html/wp-includes/l10n.php(80): apply_filters('locale', 'en_US') #5 /home/alhagavt/public_html/wp-includes/l10n.php(165): get_locale() #6 /home/alhagavt/public_html/wp-includes/l10n.php(951): determine_locale() #7 /home/alhagavt/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain() #8 [internal function]: WP_Fatal_Error_Handler->handle() #9 {main} thrown in /home/alhagavt/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1134