alcaeus Posted March 22, 2011 Share Posted March 22, 2011 Hi,I am new to Prestashop,and just starting to install / configure.I'm struggling arund the language / translations as I want to install serbian for my client.I have followed the various guides but I keep hitting a problem, I'm not sure if I am missing somethingI get "An error occurred while updating object. lang ()" wen trying to update the language details, I created a serbian, as it was not on the list and tried to include the flag picture etc, but always got the problem.But I also tried just changing the default lanuage to french or german, and the font end still defaulted to english... and when I try and edit french or german language I also get "An error occurred while updating object. lang ()" so I am am suspicious.This is pretty early on in the build, am I doing something wrong? How (can I ) turn debugging on? Should I try an earlier version of Prestashop?Help appreciated. Alan Link to comment Share on other sites More sharing options...
alcaeus Posted March 28, 2011 Author Share Posted March 28, 2011 No help? Oh well, I guess I'll just try something else. Link to comment Share on other sites More sharing options...
alcaeus Posted March 28, 2011 Author Share Posted March 28, 2011 OK I have narrowed this down to a permission issue.The error no longer occurs now I have granted write permission to EVERYTHING, (note the installer was happy with my permissions!) it would be handy if someone could guide me on what files / directories are updated by updating languages, as it would speed up 'narrowing down' the issue.In any case I'll let you know when I find the culprit.Alan Link to comment Share on other sites More sharing options...
Alfalfa Kidz Posted April 1, 2011 Share Posted April 1, 2011 I also thought it was a uniquely permission issue - but after messing about for a while, I found that for some reason the flag is NOT generated correctly when uploading a flag file.So I saved the flag as .jpg with the language number as file name - from the list of installed languages i BO - (I have 1.jpg for English, 2.jpg for French etc.) - and uploaded it to the l folder in /img.And VOILA it worked.... for me at least!The NO IMAGE file was uploaded fine and working...I did, however, in the process of installing - have to (re)set the permissions to 777 on - themes/prestashop/lang- modules/productcategory- modules/blockmanufacturer- modules/blocklanguages- modules/blockcategoriesDo not know why they did not retain the CMOD already set....... But I know I´m not the only one to experience this issue.From my language files uploaded into /translations/xxlanguage/was also the index.php file missing - just made a copy of the one in en and put in there... seemed to work!Basicly I assume there is a problem with the core in this version og Prestashop?Will update if I encounter further problems... Link to comment Share on other sites More sharing options...
EQ10000 Posted April 1, 2011 Share Posted April 1, 2011 I got following error with no Flag and "No-picture" image created. Even after I set write permission to all directories. An error occurred while updating object.lang() This language is NOT complete and cannot be used in the Front or Back Office because some files are missing./www/mails/tw/contact_form.html/www/mails/tw/contact_form.txt../www/mails/tw/download-product.tpl../www/mails/tw/forward_msg.html/www/mails/tw/forward_msg.txt/www/mails/tw/guest_to_customer.html/www/mails/tw/guest_to_customer.txt../www/mails/tw/password_query.html/www/mails/tw/password_query.txt../www/mails/tw/reply_msg.html/www/mails/tw/reply_msg.txt Link to comment Share on other sites More sharing options...
EQ10000 Posted April 1, 2011 Share Posted April 1, 2011 An error occurred while updating object.lang()Set write permission to root directory 'www' to solve this error.But if we re-add the language, it failed to create...Theme files: /www/themes/prestashop/lang/tw.phpMail files: ....ALL files /www/mails/twNo tw created in /www/mails/Any advice... Link to comment Share on other sites More sharing options...
EQ10000 Posted April 1, 2011 Share Posted April 1, 2011 Just ignore the above errors...Go to Translation, do Copy or Import and it will create files in Themes and Emails.[sOLVED] Add Language problems Link to comment Share on other sites More sharing options...
GrzegorzZ Posted April 13, 2011 Share Posted April 13, 2011 I found what problem was, at last for me.Installator ( i think ) didnt ask me for prermissions for .htaccess. And update function in language class is upating .htaccess. That throws error. Link to comment Share on other sites More sharing options...
Udonthanitimes Posted April 16, 2011 Share Posted April 16, 2011 Thanks GacekSSJ4..My langugue error's solved with .htaccess permission as well. Link to comment Share on other sites More sharing options...
mcompte Posted December 18, 2012 Share Posted December 18, 2012 It seems to be a matter of privileges. It was in my case. I tried giving 777 to the img folder, since the flag was the problem I was having, to no avail. i tried giving privileges to other specific folders as well, to no avail again. Finally I've tried giving 777 to everything and now it works, but this is an unacceptable solution. The disk privileges in prestashop are awfully designed. There should be 1 unique folder to be given privileges, not 24. My first contact with prestashop and so far it is taking too much time to set it up ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now