hi
please, when i try to update i am getting the below error, whatever the method i trie : local or server+local can somebody help ?

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=2887&op=do StatusText: Service unavailable (with message) ResponseText: Recoverable fatal error: Argument 2 passed to format_string() must be of the type array, null given, called in /Applications/MAMP/htdocs/brainrhdgddi/sites/all/modules/contrib/l10n_update/includes/gettext/PoStreamReader.php on line 510 and defined in format_string() (line 1803 of /Applications/MAMP/htdocs/brainrhdgddi/includes/bootstrap.inc).

Comments

delacosta456 created an issue. See original summary.

sutharsan’s picture

The error you are getting in not the root problem. I suspect that you have a malformed translation file.

The error you get is cause by a bug that will be solved with the attached patch. Once that is resolved you will get information in the log about the file and line number were the error is found during import.

sutharsan’s picture

  • Sutharsan committed 37d65de on 7.x-2.x
    Issue #2922809 by Sutharsan: When trying to update i have "Recoverable...
delacosta456’s picture

hi
thanks i will check and get back to you

sutharsan’s picture

StatusFileSize
new521 bytes

Additional patch to make sure the line number is always correct.

  • Sutharsan committed bb1bec6 on 7.x-2.x
    Issue #2922809 by Sutharsan: When trying to update i have "Recoverable...
delacosta456’s picture

StatusFileSize
new74.91 KB
new91.52 KB
new90.39 KB
new98.46 KB
new96.07 KB
new75.33 KB

Back to you @Sutharsan

Well Just after the fisrt patch (because i am just seeing the second patch now while writing to you) , there were no more error and most of update where successfully done...

-- Most because some ftp// server where not reachable , for some they were no available translation ..(that looks to be normal)

-- however i am still getting some little warning (below cattached files) ... but suppose they me be related to the above non-reachableserver/ non-avilable file

Thanks for the second patch that i will also apply and see what will happen

sutharsan’s picture

My approach is usually to start with the first error, fix it and usually the following errors disapprear. The first one is "Missing or malformed header" on the workbench_access-7.x-1.5.fr.po Check the content of this file, compare is with other .po files. Delete the file, download it manually from localize.drupal.org or download it via the interface.

AritoMelo’s picture

Hi @Sutharsan and @delacosta456 for simplicity and also to avoid some mistakes by trying to use only one of two patches I suggest this new patch that is the result of both together.

Tested on version 7.x-2.2!

sutharsan’s picture

Have you tried the latest dev? The code is as you suggest it to be changed.

AritoMelo’s picture

I have tested it on the latest stable version, not on dev!
Till the next version the projects that only update to last stable version can use it.

sutharsan’s picture

Status: Active » Fixed

I don't understand what you are asking me.
Closing the issue as there is nothing more I can do.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.