I had some trouble with the new activity2 dev release from last week. This morning I finally found out what caused the all my activity views to be empty. I had a new language set up (en-GB) so I can disable the default language and change the new English one to my liking. Since en-GB and all language codes with a regional variant name are valid language codes activity should support these in the targets table. Therefore the language column should take up to 5 characters and not only 2.

Comments

Scott Reynolds’s picture

Title: Empty views when language code contains regional variant name » Use proper HTTP 1.1 spec languange codes

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.10

where any two-letter primary-tag is an ISO-639 language abbreviation and any two-letter initial subtag is an ISO-3166 country code.

looks like that is what is required.

Scott Reynolds’s picture

Status: Active » Fixed

Run this code on your database.

 ALTER TABLE activity_targets MODIFY language char(5);

http://drupal.org/cvs?commit=291492

Status: Fixed » Closed (fixed)

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

Scott Reynolds’s picture

Status: Closed (fixed) » Fixed

Field needs to be a varchar(12).

ALTER TABLE activity_targets MODIFY language varchar(12)

http://drupal.org/cvs?commit=299982

Status: Fixed » Closed (fixed)

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

yosisays’s picture

I have the most recent version and i'm still seeing:
Fatal error: Call to undefined function activity_record_form() in C:\wamp\www\drupal\modules\system\system.module on line 1501

the error shows up when i go to admin/site config/actions/activity/config

(I'm using drupal v. 6.15, php v. 5.2.11, and MySQL v. 5.2.36)

Scott Reynolds’s picture

First off, that has nothing to do with language codes. So WAY off topic here.

And that hasn't been fixed yet #635264: Add back in activity_record_form ?

Do not use Actions to adjust your templates. Instead goto admin/build/activity

That is currently the only supported way to adjust your activity templates (and it will be the ONLY supported method going forward).

yosisays’s picture

sorry about that. i ran a search and found a thread that explained the fix was found and located on this thread , it had a link to this thread there.