Magistar Posted June 16, 2017 Share Posted June 16, 2017 (edited) Today I continued working on my custom language override file. For some reason this makes WHMCS go crazy when you swap language. I double checked the file and did not find any syntax errors. What could cause this issue? Is there a maximum number of override WHMCS can handle? It is about 30 KB / 400 lines. Should overrides file have the same order as the parent file? If so is there a way to auto-arrange this? dutch.php.txt edit: I notice that the txt is set to UNIX EOL whereas the default PHP are apparently set to Windows. I changed the EOL to Windows and this resulted in a new line appearing between every variable. Now the website is working again. When I removed the empty lines it broke again. Not sure how to get this file right... Edited June 16, 2017 by Magistar 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 16, 2017 Share Posted June 16, 2017 i'm not aware of any maximum number (that'll only be limited by your server) and their order won't matter - nor, having tried this on a v7.2.2 dev, am I seeing any timeout issues. 0 Quote Link to comment Share on other sites More sharing options...
Magistar Posted June 16, 2017 Author Share Posted June 16, 2017 It seems to be related to the parsing of the file because now that I set the file to EOL Windows (without removing the empty lines) WHMCS works very fast (e.g. 50ms). When I clean up the blank lines it doesn't render at all, not even after 10 seconds. Maybe someone is willing to rename the text file I attached back to .php and place it in overrides and see if they can reproduce the error? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 17, 2017 Share Posted June 17, 2017 i'm still not seeing any issues when using your file... try downloading the attached file and see if that helps - i've just changed the // to # in the remark statements and checked the encoding. dutch.zip 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.