update (polylang error): php7 error: uncaught typeerror: argument 1
-
Update: Polylang apparently crashed, and didn’t activate itself for some reason. cjhaas’ solution is only necessary if you want to restore it.
Step by step guide:
- add the solution from cjhaas
- delete pll_register_string from functions.php
- open wp-admin, and activate polylang
- restore your pll_register_string
- you can keep or delete step 1, doesn’t really matter
This morning after I updated the Polylang plugin, I suddenly got this error
Fatal error: Uncaught TypeError: Argument 1 passed to Ai1ec_Exception_Handler::handle_exception() must be an instance of Exception, instance of Error given in C:\xampp\htdocs\AmFang\wp-content\plugins\all-in-one-event-calendar\lib\exception\handler.php:191 Stack trace: #0 [internal function]: Ai1ec_Exception_Handler->handle_exception(Object(Error)) #1 {main} thrown in C:\xampp\htdocs\AmFang\wp-content\plugins\all-in-one-event-calendar\lib\exception\handler.php on line 191
After I Searched here, I Found cjhaas’ solution, but after implementing that, i got this error:
Fatal error: Uncaught Error: Call to undefined function pll_register_string() in C:\xampp\htdocs\AmFang\wp-content\themes\lekkerduidelijk-less-wordpress-390a9e3\functions.php:332 Stack trace: #0 C:\xampp\htdocs\AmFang\wp-settings.php(426): include() #1 C:\xampp\htdocs\AmFang\wp-config.php(91): require_once('C:\\xampp\\htdocs...') #2 C:\xampp\htdocs\AmFang\wp-load.php(37): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\AmFang\wp-admin\admin.php(31): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\AmFang\wp-admin\index.php(10): require_once('C:\\xampp\\htdocs...') #5 {main} Next Exception: Exception re-throw in C:\xampp\htdocs\AmFang\wp-content\plugins\all-in-one-event-calendar\lib\exception\handler.php:193 Stack trace: #0 [internal function]: Ai1ec_Exception_Handler->handle_exception(Object(Error)) #1 {main} thrown in C:\xampp\htdocs\AmFang\wp-content\plugins\all-in-one-event-calendar\lib\exception\handler.php on line 193
So, I deleted all pll_register_string form my functions, and now it works again.
However, This is NOT what I need, beacuse I need to register those strings to translate my site. Can this be overruled?
- The topic ‘update (polylang error): php7 error: uncaught typeerror: argument 1’ is closed to new replies.