Hi,
If I try to import a language file, after selected it and clicked import, it show only a white screen without text or confirm that the language was correctly imported.
Bye
Hi, If I try to import a language file, after selected it and clicked import, it show only a white screen without text or confirm that the language was correctly imported. Bye |
ok, found and solved! admin/lang_file.php contain this code:
I think the problem are caused by the require_once with a file in temp dir... Here is the temporary solution that I've used:
Before use it create tmp folder in root of your website with write permission, after you've imported lang remove lang.php inside tmp folder. Please open a ticket for this. thank |
up |
Rules → http://www.boonex.com/terms |
Hello |
In my post I've written: Here is the temporary solution that I've used Obviously it need some fix to be compliant with boonex classes etc... Yeah, files are in /tmp.... but lang.php will be in site/tmp not in the server tmp directory. (for example, /tmp/asdacs76 are normally, with my fix it would be /home/aaaa/public_html/tmp/lang.php) I can't include file that are in tmp folder of the server...I've maked tmp dir but it can be the language folder or any other folder, and after the import the file can be deleted using unlink PHP function. Bye |
Hello Thanks for clarification. Necessary changes were done. --- Best Regards AntonLV |
Thanks to you |
1. tmp folder with write permissions should be there by default.
2. The following code is unnecessary, because temporarily created language file is already in the tmp folder.
copy($aFiles['ImportLanguage_File']['tmp_name'],$_SERVER['DOCUMENT_ROOT'] . "/tmp/lang.php");
unlink($aFiles['ImportLanguage_File']['tmp_name']);
P.S. Looks like for some reason tmp folder was removed from your site, therefore language file cannot be imported.
---
Best Regards
AntonL