backdrop-ops / localize.backdropcms.org

Host translation files for Backdrop CMS.
2 stars 4 forks source link

multiple errors on /translate #15

Closed robertgarrigos closed 5 years ago

robertgarrigos commented 6 years ago

I'm having multiple errors accessing the url /translate:


    Warning: ksort() expects parameter 1 to be array, null given in l10n_community_get_l10n_packager_string_count() (line 763 of /home/localize/repo/www/sites/all/modules/contrib/l10n_server/l10n_community/pages.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6061 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6099 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6061 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6099 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6061 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6099 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6061 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6099 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6061 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#children' in drupal_render() (line 6099 of /home/localize/repo/www/includes/common.inc).
    Warning: Illegal string offset '#printed' in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6594 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6051 of /home/localize/repo/www/includes/common.inc).
    Warning: Cannot use a scalar value as an array in drupal_render() (line 6106 of /home/localize/repo/www/includes/common.inc).

Is this related to #14 ?

olafgrabienski commented 6 years ago

Yes, #14 seems to be related. The issue came up after a "Start over" and a "Clean up" on the Releases page of the Localization server configuration.

After the two actions it wasn't longer possible to repackage projects on the "Packaging tools" page. Instead I got the following error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=58&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'public://l10n_packager/1.10.1/backdropcms/backdropcms-1.10.1.de.' for key 'uri': INSERT INTO {file_managed} (filename, uri, filemime, filesize, status, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => backdropcms-1.10.1.de.po [:db_insert_placeholder_1] => public://l10n_packager/1.10.1/backdropcms/backdropcms-1.10.1.de.po [:db_insert_placeholder_2] => text/plain [:db_insert_placeholder_3] => 719349 [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => 1535454485 ) in drupal_write_record() (line 7387 of /home/localize/repo/www/includes/common.inc).

I've read the SQL error means that while the values of a table column must be unique, there is the attempt to insert a duplicate row. So maybe something went wrong with temporarily keeping project information?

I've however made a database backup before the "Start over" and "Clean up" action, so I'm looking forward to the database restore which should fix the errors for the moment.

olafgrabienski commented 5 years ago

@robertgarrigos The database restore (see #14) has been successful, and as expected, the errors on https://localize.backdropcms.org/translate are gone.