After translating APK I have this warnings:
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.
* warning: preg_match() expects parameter 2 to be string, array given in /var/www/apache2/html/includes/bootstrap.inc on line 771.

Comments

michelle’s picture

Status: Active » Postponed (maintainer needs more info)

APK isn't ready for translation, yet. That said, if you can give me some clue what the problem is, I'd be happy to fix it. The error you're pointing to isn't in APK so it gives me no clue what might be wrong.

Michelle

Daniel A. Beilinson’s picture

Sorry.
I can see this warnings in the panel's user_view template.
This's 767-772 from bootstrap.inc:

function drupal_validate_utf8($text) {
  if (strlen($text) == 0) {
    return TRUE;
  }
  return (preg_match('/^./us', $text) == 1);
}
michelle’s picture

That really doesn't help me... That isn't APK code so the error could actually be coming from APK, Panels, CTools, Views, Content Profile, or anything else you have added to the user view page. Without someone doing some backtracing and seeing where the error is coming from, there's nothing I can do.

If it's still a problem when we get to RC and APK goes into string freeze, I'll do some debugging myself to try and repro it. If someone needs it fixed in the mean time, they'll need to do the leg work to find what, if anything, in APK is broken.

Michelle

Daniel A. Beilinson’s picture

Okay, thanx.

michelle’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

In reviewing this, I really doubt it's caused by APK. If someone can show otherwise, I'd be happy to fix it but I just don't have time to dig into it myself.

Michelle

Breakerandi’s picture

Same problem here

veritus’s picture

Maybe this will help you:

warning: Invalid argument supplied for foreach() in /www/htdocs/w00bcb3b/drupal/sites/all/modules/cck/includes/panels/content_types/content_field.inc on line 172.

You can see this warning when you go to panel and click on the "settings" of an block inside the panel.

I use the german drupal version. Could it be that this is the problem? i also see no profile information displayed on the user's profile although the user entered some information

Dominik

michelle’s picture

That error is coming from CCK. I don't know if the CCK/CTools integration was ever tested in other languages.

Michelle

chawl’s picture

subs

e-fee’s picture

The same here, have the problem in two installations with APK und ONLY using APK! If I manually create a panel page, everything is fine.
Also using the German version of Drupal.

Fidelix’s picture

I have the same problem. And i see it wont be corrected anytime soon.

Its a pity that other languages beside english cant use APK.

michelle’s picture

Well, maybe someone who uses a language besides English should try and fix the problem with CCK. Complaining on here doesn't do any good.

Michelle

Fidelix’s picture

Sorry about that. You are correct.

Anyway, i found a way to get around this.

I deleted all "content" items that had broken references in the "Content" tab in Page Manager, and rebuilt them.

Now the errors are gone.

michelle’s picture

Well, it's good to know there's a workaround. Would be better if someone could fix the CCK/Panels integration itself, though.

Michelle