• Resolved Gerard Blanco

    (@sixaxis)


    Hi guys,

    This is the situation:
    – WPML and The Events Calendar installed. Latest versions installed of everything.
    – Under “Theme and plugins localization”, I have the option “Translate the theme and plugins using WPML’s String Translation and load .mo files as backup” selected.

    If I scan The Events Calendar for strings, it gets stuck. I see the spinning wheel on the button but it never stops.
    If I open the console of Chrome, I see this error: “Failed to load resource: the server responded with a status of 500 (Internal Server Error)”
    If I enable the debug mode on WordPress, I see this error in the debug.log file:

    [22-Aug-2017 09:41:09 UTC] PHP Fatal error: Uncaught Exception: Could not add String with arguments: value: Please note that all hands-on support is provided via the forums. You can email or tweet at us… ​but we will probably point you back to the forums 😄 allow_empty_value: language: en in /var/www/clients/client425/web732/web/wp-content/plugins/wpml-string-translation/classes/filters/class-wpml-register-string-filter.php:190
    Stack trace:
    #0 /var/www/clients/client425/web732/web/wp-content/plugins/wpml-string-translation/classes/filters/class-wpml-register-string-filter.php(135): WPML_Register_String_Filter->save_string(‘Please note tha…’, false, ‘en’, ‘tribe-common’, ”, ‘6488bb6a44fc7c2…’)
    #1 /var/www/clients/client425/web732/web/wp-content/plugins/wpml-string-translation/inc/functions.php(217): WPML_Register_String_Filter->register_string(”, ‘6488bb6a44fc7c2…’, ‘Please note tha…’, false, ‘en’)
    #2 /var/www/clients/client425/web732/web/wp-content/plugins/wpml-string-translation/inc/gettext/wpml-string-scanner.class.php(363): icl_regis in /var/www/clients/client425/web732/web/wp-content/plugins/wpml-string-translation/classes/filters/class-wpml-register-string-filter.php on line 190

    Do you know what’s happening?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello and sorry for the late reply as I was on a vacation.
    The error that you are encountering seems to be because the plugin is trying to register a string with improper ID.
    This could happen if the string was already registered in String Translation or if you have migrated your site and there is some corrupted records in the icl_strings table (values with ID=0).
    I would suggest that you search your string translation for that string in WPML > String Translation and maybe delete it.
    If this does not help, perhaps it would be a good idea to open a new ticket in our support forum at wpml.org so that our support engineers are able to take a closer look at the problem and try to debug it.

    Please remember to backup your database first before you proceed with any action! You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

    Thread Starter Gerard Blanco

    (@sixaxis)

    Hi George,

    I hope the vacation was good.

    I can’t find that string; we are talking about “Please note that all hands-on support is provided via the forums. You can email or tweet at us… ​but we will probably point you back to the forums 😄”, right?

    Please open a ticket at our support forum.
    At this time, I can only guess without being able to see and debug further.

    Thread Starter Gerard Blanco

    (@sixaxis)

    OK, thank you then!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error with The Events Calendar’ is closed to new replies.