Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(6 guests in past 15 min.)

Access Understanding Web Accessibility to learn about accessibility, or Register to take the course for FREE.

Support Forums

ATutor Bug Reports

1.4.2 RC2 unable to import language


You must be signed-in to post.

AuthorSubject
  Page: 1
langis
Subject: 1.4.2 RC2 unable to import languageQuote this post in your reply
OS: Windows XP Home
Apache version : Apache/1.3.31 (Win32)
PHP version : 4.3.8
MySQL version : 4.0.18-nt-log
ATutor 1.4.2 RC2

I was unable to import any additional languages. After looking at the impor_lang.php code and comparing it to the similar code in ims_import.php, I can tentatively blame part of the problem to the following code:
if ($archive->extract( PCLZIP_OPT_PATH,
$import_path,
PCLZIP_CB_PRE_EXTRACT,
'preImportLangCallBack') == 0)
{
dir ("Error : ".$archive->errorInfo(true));
exit;
}

in ims_import.php the code says:

if ($archive->extract( PCLZIP_OPT_PATH,
$import_path,
PCLZIP_CB_PRE_EXTRACT,
'preImportCallBack') == 0)
{
require(AT_INCLUDE_PATH.'header.inc.php');
echo 'Error : '.$archive->errorInfo(true);
require(AT_INCLUDE_PATH.'footer.inc.php');
clr_dir($import_path);
exit;
}

The significant difference in these two groups of comparative statements is in the 'preImportLangCallBack' versus the 'preImportCallBack". When the Lang is removed from that first group, the language.csv file gets extracted at least. The error message changes from a blank page containing the following message
Warning: 'fopen('c:\wamp\www\ATutor\content\import/language.csv','r') stream not open file not found.
to the clean normal ATutor error page with the
ERROR: Language import failed.
frown
Posted: 2004-09-17 21:08:03
joel

Avatar for joel
Subject: 1.4.2 RC2 unable to import languageQuote this post in your reply
a fix for this will be available in 1.4.2-stable
Posted: 2004-09-20 11:17:34
LeSa
Subject: Language Import fails also with final 1.4.2.Quote this post in your reply
Language Import fails also with final 1.4.2.!

The data gets included in AT_lang2, but the new languages is not listet in ATutor.
I installed 1.4.2 (new, not as an update)

My sytem:
Windows 2000 SP 4
Apache/1.3.26 (Win32)
PHP Version 4.2.3
MySQL 3.23.32
Posted: 2004-09-27 08:08:28
joel

Avatar for joel
Subject: The fixQuote this post in your reply
please see:
atutor.ca/view/4/2530/1.html

for a fix.
Posted: 2004-09-27 13:33:51
LeSa
Subject: All rightQuote this post in your reply
Works! Thanks for the fast solution!
Posted: 2004-09-28 08:32:56
LeSa
Subject: butQuote this post in your reply
now I still have problems.
When I deleted the cache, the languages that I tried to import first where displayed correct (de, es).
I made both of the changes you suggested (and i changed DEFAULT_LANGUAGE. to 'de').

But now I try to import the french language file and still get import errors - and now the new language even gets not included in at_lang2 anymore. (I tried it with the system as specified in my first post above and with the browsers firefox 1.0pr and IE 6.0.)

Any ideas?
Posted: 2004-09-28 08:58:54
joel

Avatar for joel
Subject: LeSaQuote this post in your reply
^^

Sorry, but i'm not sure i completely understand the new problem. I suggest you install ATutor 1.4.2 again but save the config.inc.php file and copy it over instead of going through the installation steps. You might have made some changes you shouldn't have.
Posted: 2004-09-28 10:47:46
LeSa
Subject: okQuote this post in your reply
joel,

now I only changed the CACHE_DIR constant in include/config.inc.php to empty

And recovered line 164 in phpCache.inc.php again to
cache_lock($thefile, TRUE);
(First I had made both changes, your suggested fixs a AND b)
Now I do only a and now it works. (But maybe the problem was, that I was signed in in my ATutor as admin with IE and Firefox simultan? Maybe that caused the trouble?)

Thanks again, seems that ATutor is getting better and better!
Greetings from Munich, Germany
Posted: 2004-09-28 11:52:19
 Page: 1

You must be signed-in to post.