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): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation()
#1 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('view-subscripti...')
#2 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(167): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('view-subscripti...')
#3 /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/TranslateWpmlString.php(109): WPML\ST\Trans in /var/www/htdocs/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139
I can only access the site after adding ".disabled" to the plugin folder (wpml-string-translation) name but this disables the plugin and the site needs it to work.
It is a problem that is occurring with the update to wordpress 6.1.
To fix it you need to update WPML to 4.5.12 and String Translation to 3.2.3
Source: https://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/
-- Edit:
After downloading the two updated plugins, rename the two folders related to the plugins and install the updated versions to solve the problem
I just removed string 139. Everything is working at the moment
Had the same issue today.
This issue is due to none updated version of WPML and compatibility with 6.1 WordPress. Since WPML website is today down and you can not download the plugin.
There is github repository:
https://github.com/youssef-lmw/wpml-string-translation
Download this version of the plugin
List item replaces current one in wpml-string-translation folder
I downloaded https://github.com/youssef-lmw/wpml-string-translation/archive/refs/heads/main.zip an remplace wpml-string-translation folder in wp-content/plugins/wpml-string-translation and fixed problem.
WPML String Translation for Wordpress 6.1
FIX error: Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset()
While the WPML.org site is down, you can downgrade WordPress itself to version 6.0, either
Related
While I am trying to set up Updraft Plus, for backup reasons I get this message:
PHP Fatal error (TypeError) has occurred during save settings. Error
Message: array_diff(): Argument #2 must be of type array, bool given
(Code: 0, line 39 in
/home/www/emprime/emprimevintage.com/www/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php)
I am new to WordPress and coding so it is very difficult for me to resolve this problem. The site was made by somebody else and I can't come in contact with him.
Can anybody help me to resolve the issue?
The error that you posted shows that there is some issue with the plugin called "WooCommerce Multilingual & Multicurrency with WPML" try deactivating that plugin and see if that resolves the issue.
As found here: https://wpml.org/errata/php8-fatal-error-uncaught-typeerror-array_diff-argument-2-must-be-of-type-array/
Overview of the issue
If you are running a server with PHP8, whenever you try to activate the Enable auto-updates option in Dashboard → Plugins, you will get the following error:
PHP Fatal error: Uncaught TypeError: array_diff(): Argument #2 must be of type array, bool given in …/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php:39
Workaround
As a workaround:
Go to Dashboard → Plugins.
Disable WPML Multilingual CMS.
Activate the Enable auto-updates option. (I did it for Updraftplus
plugin)
Re-enable WPML.
It worked for me, then I could save the settings for Updraftplus.
I have a wordpress install and when I click to edit a post/page to edit I get this error:
Fatal error: Uncaught Error: Class 'WP_REST_Application_Passwords_Controller' not found
in /Users/kawnah/Sites/website/wp-includes/rest-api.php on line 269
Call stack:
create_initial_rest_routes()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:484
do_action()
wp-includes/rest-api.php:521
rest_get_server()
wp-includes/rest-api.php:479
rest_do_request()
wp-includes/rest-api.php:2520
rest_preload_api_request()
array_reduce()
wp-admin/edit-form-blocks.php:82
require()
wp-admin/post.php:187
I went ahead and navigated to the file referenced and see:
And when I navigate to the actual class it is present:
My version of Wordpress is 5.6.2 - when I disable all plugins I get a TON of errors:
How do you even go about debugging this? What is the fix for this if any?
If anyone stumbles on this - what fixed this is downloading fresh core Wordpress (https://wordpress.org/download/) and replacing everything except wp-content directory to preserve your theme changes etc.
I updated Wordpress to 4.2 this morning, and now I can't access my Wordpress site, gteam.org.
I've searched the Wordpress help forum, but to no avail.
Thoughts or help:
Fatal error: Call to undefined function wp() in /home/team1874/public_html/wp-blog-header.php on line 14
I got the same error, problem was my wp-config.php file was somehow empty, just copied the example wp-config and added my configuration and it worked again.
I met the same problem this morning when trying to install wordpress v4.9.4 . The most likely reason is that the file which declared function wp() is somehow damaged. I solved it reload a new package and installed.
references:
https://wordpress.org/support/topic-tag/fatal-error-call-to-undefined-function-wp/
I have installed and configure my wordpress in my magento site using Fishpig extension.
In magento admin, the configuration of Fishpig extension shows perfect.
But when I am running the wordpress route in frondend, it is showing Fatal error and not displaying wordpress content anymore.
Attaching the screenshot of that page. And the error I got is:
Fatal error: Call to undefined method Mage::getResourceHelper() in /[MY_DIR_PATH]/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php on line 534
Any help is appreciated.
This was fixed by upgrading to the latest version (3.0.0.16 at the time of writing).
hi i am using cakephp media plugin and i got this error when i want to delete a file..
cakephp media plugin Fatal error: Call to undefined method Folder::ls()
any help?
TIA :D
I guess the version of the media plugin you use is not compatible with the CakePHP version you use because Folder::ls has been removed in CakePHP 1.3.x. Hence I would check whether there is a newer version of the media plugin available.