Ok so here's how you do this. I am total dummy when it comes to handling phpmyadmin, so I'll go through it step by step.
Open PHPmyadmin
click on the database number on top/right
click the tab Mysql
in the box for the MySQL query, enter:
INSERT INTO `jos_jf_content` ( `id` , `language_id` , `reference_id` , `reference_table` , `reference_field` , `value` , `original_value` , `original_text` , `modified` , `modified_by` , `published` )
VALUES (
'', '6', '125', 'content', 'introtext', 'test123', NULL , '', NOW( ) , '64', '1'
);
where the value '6' is the language ID nr. (find it in your jos_languages table)
and '125' is the article ID of the problematic article
Click go - done! Your article should now show the sample text 'test123' as defined int the above query text, and you can replace it with the proper translation.
Now, since you will most probably have a lot of articles/translations having the same issue (like I do), you will need to run this for each article and each language ID. But there is a shortcut to get this done:
Open two tabs of phpmyadmin, both with the Mysql tab.
Then, in tab1, run this query:
SELECT * FROM `jos_jf_content` WHERE reference_field = 'introtext'
and in the other:
SELECT * FROM `jos_jf_content` WHERE reference_field = 'title'
Where it says "Show", enter 100000 rows, starting with row 0
Then click on show. It will take a while to generate the whole list.
Now Tab 1 shows you all existing 'introtext' databases
and
Tab 2 shows you all existing articles.
Check Tab 2 against Tab 1 to make a list of article IDs and language IDs which are missing the introtext database. You can choose to export both tables to Excel in order to compare them. Extract all sets of language ID and reference ID that exist in the Tab 2, but do not exist in Tab 1
Then, copy the above Mysql query:
INSERT INTO `jos_jf_content` ( `id` , `language_id` , `reference_id` , `reference_table` , `reference_field` , `value` , `original_value` , `original_text` , `modified` , `modified_by` , `published` )
VALUES (
'', '6', '125', 'content', 'introtext', 'test123', NULL , '', NOW( ) , '64', '1'
);
into a text file and create xxx sets of this query by copy/pasting the query text xxx times, then change the values for the missing article ID and language ID for each set as required.
Once you have this, you have a query which allows you to create all the missing databases in one go, by simply copying the whole text into the query box and sending it by clicking go. Done!
You might want to do this in batches, like going for one language first and doing the second language later. Check whether the articles work after batch 1.
To those of you who know phpmyadmin, please bear with me for writing this down like for a 6th grader. Like I said, I am a total dummy and needed this explained step by step. Since it seems that there are quite a few guys here with the same problem, I assume that at least some of them are in the same shoes...
Hope this helps you - it sure did for me.
