Download & Extend

Batch API returns "An error occurred. /?id=&op=do [raw homepage HTML]"

Project:Drupal core
Version:6.22
Component:base system
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

I am having trouble installing the Spanish translation
I've got the Spanish files extracted into each of the module directories, e.g.:
drupal/modules/blog/translations/module-blog.es.po

On the Add Languages page, I hit Add Language and get the same "an error occured" followed by HTML on a red background. Embedded in the HTML is the message: " The language Spanish has been created and can now be used. More information is available on the help screen."

But I don't get any Spanish translation, 0/630 (or so)

Any help will be appreciated.

Steve

Comments

#1

I have exactly the same problem with my Swedish translation. Help...

#2

I am having similar non-functionality, but at least some labels are being converted, such as 'buscar' for 'search'. Try checking the path-to-language prefix (click on edit button next to spanish language entry in administer>site configuration>languages...list). It should look like the path shown on the website I'm setting up at www.drupalman.co.uk (when espanol is selected). Also, have you actually configured the language? the default setup is no translation! Its a good idea to set up for "Path prefix with language fallback" in administer>site configuration>languages...configure.

#3

Status:active» postponed (maintainer needs more info)

is this still an issue?
is this an issue of the Spanish translation only?

#4

Same problem.

I tried manually importing the .po file (admin/build/translate/import) and that seemed to work. Drupal is telling me that the built-in interface for Spanish has 210/214 elements translated (98.13%).

#5

@#4 the 210/214 is normal, since there are actually 4 unstranslated strings (related to OpenID)
http://localize.drupal.org/translate/languages/es/edit?project=drupal&st...

the error avoiding the language installation is what I'm concerned with
is that a Spanish problem only?
doesn't it happens with any other language?

I guess it should fail for any other language as well, since Spanish translation doesn't includes nothing special but translation strings.

how can I reproduce the reported errors?
I mean, more step by step details, since doing what is originally posted doesn't get me there

#6

Version:6.x-1.2» 6.x-1.4

Hi, I have the same issue. I tried 2 scenarios

1 A clean Drupal 6.14 installation and then update to 6.15, then deployt the es-6.x-1.4.tar.gz, add language and get the Red HTML error, the language is installed, is added on the list, but when selected as default does not work.

2 installing a Drupal 6.14, no update to 6.15, deploy es-6.x-1.4.tar.gz and still have the same error.

This is the error (HTML, but page is interpreting the tags:

An error occurred. /?id=&op=do Drupal Drupal

admin

The language Spanish has been created and can now be used. More information is available on the help screen. Welcome to your new Drupal website!

Please follow these steps to set up and start using your website:

  1. Configure your website Once logged in, visit the administration section, where you can customize and configure all aspects of your website.
  2. Enable additional functionality Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section.
  3. Customize your website design To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section.
  4. Start posting content Finally, you can create content for your website. This message will disappear once you have promoted a post to the front page.

For more information, please refer to the help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.

Powered by Drupal, an open source content management system

#7

@#6 could you please provide an screenshot of the error
(I will appreciate leaving out the sidebars & welcome message next time, all that text with so many links were ininteligibles as plain text mail)

could someone try the same procedure with es-6.3 or with other languages and report back if they are ok or giving the same error
(it might be a batch op error)

#8

Attached is the screenshot

I appreciate any help, I cannot get translated to Spanish, I have used Drupal in English but need it in Spanish right now.

Thanks,

AttachmentSizeStatusTest resultOperations
screen1.JPG270.51 KBIgnored: Check issue status.NoneNone

#9

Project:Spanish translation» Drupal core
Version:6.x-1.4» 6.15
Component:Documentation» locale.module
Category:support request» bug report
Priority:normal» critical
Status:postponed (maintainer needs more info)» active

according to #1 it is not Spanish-specific
plus #8 wow

has to be a batch API bug, AHAH printing output before finishing
since the actual error is
An error occurred. /?id=&op=do
and the rest of the page got printed into the error div, from the very begining

<!DOCTYPE html PUBLIC ...

PD: not sure in what version of D6 this is happening
assigning it to locale.module for review (don't know if it should be somewhere else)
translation team definitely can't deal with this

#10

The version I use is 6.14 updated to 6.15, only default modules active + locale. The environment is a new installation.

Is there any work around for installing the translation? The language appears to be installed, but I don´t see anything in Spanish.

#11

did the 6.14 installation had translation already?
are you upgrading the translation from es-6.x-1.3 to es-6.x-1.4?

#12

I was receiving this error as well. The workaround until the core development team can get this fixed is to import all of the *.[language abbreviation].po files by going to the translate interface and importing them manually. You'll notice that when you add a language you are essentially adding these files, and if it breaks, drupal can't load them.

#13

Priority:critical» normal
Status:active» postponed (maintainer needs more info)

Is this issue still occurring in the current version of Drupal v6?

#14

Priority:normal» major
Status:postponed (maintainer needs more info)» active

#15

Title:Can't install language translation» Batch API returns "An error occurred. /?id=&op=do [raw homepage HTML]"
Version:6.15» 6.22
Component:locale.module» base system

This actually appears to be a batch API issue. I'm having the same issue with trying to import a set of nodes from an excel spreadsheet. You can see my code here:

http://drupalbin.com/20335

I can't find anything obviously wrong with my code, but maybe I'm not looking in the right place. What I do know is that there are tons of posts around d.o encountering this issue or similar, and none seem to have found any solution.