• Resolved vallie24

    (@vallie24)


    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:

    1. add the solution from cjhaas
    2. delete pll_register_string from functions.php
    3. open wp-admin, and activate polylang
    4. restore your pll_register_string
    5. 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?

    • This topic was modified 7 years, 2 months ago by vallie24.
    • This topic was modified 7 years, 2 months ago by vallie24.
    • This topic was modified 7 years, 2 months ago by vallie24.
    • This topic was modified 7 years, 2 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Hi @vallie24,

    I am unable to provide an answer as I am not familiar with how the plugin Polylang operates. I recommend contacting their support staff for this question.

    Alternatively, I can suggest a clean reinstall of the 2 plugins.

    To reinstall your Core calendar while preserving events, follow these instructions:

    – Perform a complete back up of your database before proceeding further
    – Delete the file uninstall.php from the plugin directory that is currently on the server (found under /wp-content/plugins/all-in-one-event-calendar). Deleting this file ensures that when you uninstall the current version of the plugin, your event data and calendar settings will be preserved when you delete the plugin (don’t skip this step – it’s important!)
    – Deactivate the All-in-One Event Calendar using your WordPress Dashboard.
    – Delete the All-in-One Event Calendar using your WordPress Dashboard.
    – Database -> wp_options, click option_name to sort and delete everything with ai1ec_, this will delete plugin settings but events will remain in the database.
    – Now install the latest version.

Viewing 1 replies (of 1 total)
  • The topic ‘update (polylang error): php7 error: uncaught typeerror: argument 1’ is closed to new replies.