Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+02:00)

This topic contains 11 replies, has 3 voices.

Last updated by Andrey 1 year, 1 month ago.

Assisted by: Andrey.

Author Posts
October 11, 2023 at 6:51 am #14555405

Vladimir

We had a few problems with this website already, can you create a private ticket so I can add new credentials?

The issue is that after the last update of WPML, while trying to edit the romanian language with wpml editor it returns Critical error.

hidden link

October 11, 2023 at 7:41 am #14555949

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello!

I'll try to help you with this ticket while a supporter takes your case

1) Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced.

1. Edit wp-config.php and insert the following lines:

      define( 'WP_DEBUG', true); //Enables the debug from WordPress
      define( 'WP_DEBUG_LOG', true);  // Enables the Log, it needs WP_DEBUG to be ste to true
      define( 'WP_DEBUG_DISPLAY', false ); // Errors and warnings will be visible on the front and back-end, it needs WP_DEBUG to be ste to true
      

2. Reproduce the issue.

3. Locate the debug log in: /wp-content/debug.log

4. Upload the debug.log file in your preferred platform (google drive, dropbox, wetransfer, etc) and send it to us.

This will help us figure out where the problem lies and what we can do about it.

----------------------------

2) Before we investigate this issue further, could you make sure your server conforms to our minimum requirements?
      https://wpml.org/home/minimum-requirements/

      Based on provided debug information, I can see the following - WP Memory Limit: 40M.

      Specifically, could you set WP Memory limit to at least 256MB and then let me know if this fixed your issue?
      https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

      So just add this into wp-config.php file:

     

      define('WP_MEMORY_LIMIT', '256M');
      

      before this line:
     

      /* That's all, stop editing! Happy publishing. */
      

      If unsure on how to set this, you can consult your host/server admin to do this. After you increase this value, you can confirm it by checking on WPML -> Support by finding the “Memory limit” value.

Regards.

October 11, 2023 at 2:54 pm #14560393

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for sharing the information. After reviewing the debug log you provided, I noticed that your current theme is calling an undefined function.

To resolve this, I suggest you navigate to your theme's functions.php file and comment out the function call123() on line 3. This should help resolve the issue.

Please backup your database before making any changes.

October 16, 2023 at 8:31 am #14582331

Vladimir

Hey, there is no such line in the functions.php file, can you login and check it out?

October 16, 2023 at 8:42 am #14582447

Vladimir

I am getting the error that is located in source WPML file. See screenshot.

wpml.PNG
October 16, 2023 at 8:46 am #14582543

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I couldn't log in to the site as I am getting the following: You have been temporarily locked out of this system. This means that you will not be able to log in for a while.

If the debug.log that you shared is actual, it says that there is Call to undefined function call123(). Please review it to spot the correct place.

October 16, 2023 at 8:53 am #14582573

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

OK, I see you attached a new log. Could you explain the exact steps on when the error happens? What are the results if you temporarily deactivate all the plugins except WPML?

Please paste the complete content of the error here.

October 16, 2023 at 9:51 am #14583229

Vladimir

The issue occurs whenever I try to edit anything that it's not in its native language, english is main language on the website, with romanian as secondary, Whenever I try to edit anything in romanian, this error is displayed.

Can you create next post private so I can set new credentials?

Here is the error log.

Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112 Stack trace: #0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'code', false) #1 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'code', false) #3 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #4 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic('propOr', Array) #5 [internal function]: WPML\FP\Obj::WPML\FP\{closure}('code', false) #6 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #7 [internal function]: WPML\FP\Obj::WPML\FP\{closure}('code', false) #8 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #9 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/jobs-list/class-wpml-tm-jobs-list-script-data.php(191): WPML\FP\Obj::__callStatic('prop', Array) #10 [internal function]: WPML_TM_Jobs_List_Script_Data->{closure}(false) #11 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array) #12 [internal function]: WPML\FP\{closure}('all', 0) #13 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(321): call_user_func_array(Object(Closure), Array) #14 [internal function]: WPML\FP\Fns::WPML\FP\{closure}('all', 0) #15 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array) #16 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #17 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #18 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #19 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) #20 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/jobs-list/class-wpml-tm-jobs-list-script-data.php(177): WPML\FP\Fns::__callStatic('map', Array) #21 [internal function]: WPML_TM_Jobs_List_Script_Data->{closure}(Array, 'en') #22 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(603): array_map(Object(Closure), Array, Array) #23 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/jobs-list/class-wpml-tm-jobs-list-script-data.php(182): WPML\Collect\Support\Collection->map(Object(Closure)) #24 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/jobs-list/class-wpml-tm-jobs-list-script-data.php(137): WPML_TM_Jobs_List_Script_Data->buildLanguagePairs(Array) #25 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Loader.php(24): WPML_TM_Jobs_List_Script_Data->get() #26 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Jobs\Loader->getData(Array) #27 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Array) #28 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Array) #29 /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #30 /home/speedwell/public_html/wp-includes/class-wp-hook.php(310): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}('') #31 /home/speedwell/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #32 /home/speedwell/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #33 /home/speedwell/public_html/wp-settings.php(654): do_action('wp_loaded') #34 /home/speedwell/public_html/wp-config.php(100): require_once('/home/speedwell...') #35 /home/speedwell/public_html/wp-load.php(50): require_once('/home/speedwell...') #36 /home/speedwell/public_html/wp-admin/admin.php(34): require_once('/home/speedwell...') #37 {main} thrown in /home/speedwell/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112
October 16, 2023 at 12:57 pm #14584909

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thanks for the update. I will set the next reply as a private.

October 18, 2023 at 6:56 am #14599425

Vladimir

Have you managed to look into it?

October 18, 2023 at 10:17 am #14601545

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I have got the access details, and I will take a look and update you as soon as I know more.

October 18, 2023 at 1:14 pm #14604519

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Is this the staging site? Could you please give me an example of a page that gives an error?

I tried with a few Romanian pages to edit them, but no error has occurred.

The topic ‘[Closed] Getting critical error while trying to translate pages/custom post type’ is closed to new replies.