skip to Main Content

Can Twig & WPML coexist in a WordPress plugin?

Tried to add Twig to my WordPress-plugin I'm working on, but it seems like it clashes with my sites WPML installation. I get the following PHP Error: PHP Fatal error: Cannot redeclare twig_cycle() (previously declared in ***/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Extension/Core.php:288 Can't find any…

VIEW QUESTION

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted in sitepress-multilingual-cms – WordPress

I am facing on the error like PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2097160 bytes)in wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php line 138. I tried to increase the memory limit in wp-config.php by adding define("WP_MEMORY_LIMIT", "512M"), but it…

VIEW QUESTION

Call to undefined method WP_Textdomain_Registry::reset() – WordPress

My Wordpress site is broken and only shows this error message: Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139 Stack trace: #0 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPMLSTMOHooksLanguageSwitch->resetTranslationAvailabilityInformation() #1 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPMLSTMOHooksLanguageSwitch->changeMoObjects('view-subscripti...') #2 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(167): WPMLSTMOHooksLanguageSwitch->switchToLocale('view-subscripti...') #3 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(109): WPMLSTTrans in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line…

VIEW QUESTION
Back To Top
Search