We have moved to Github. Please open tickets there.

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#274 closed Defect (fixed)

Viewing modules language file gives strange error

Reported by: timalsina Owned by: ben
Priority: high Milestone:
Component: Core Version: 1.0
Severity: major Keywords: corrupted
Cc: brettp Difficulty:

Description

I had Elgg 1.0 full installed and did a lot of testing till I found this interesting bug.

If I open en.php files while the site is running, I am getting this strange error.

I shut down the server and re-loaded and the error is still there. (Something gets corrupted) It's making me to re-install Elgg from scratch. It happened twice already.

Environment:
Apache 2.x
PHP 5.2.x
PHP Memory: 256M
MySql: 5.x

I've attached the screenshot.

Attachments (1)

bug1.gif (39.4 KB) - added by timalsina 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by timalsina

comment:1 Changed 5 years ago by timalsina

I narrowed it down to what was causing the problem. If I open language files for any module, even just closing the files without modifying gives the attached screen error. I dumped just the language directory and everything is fine thereafter. Now, I copied language directory from unpacked full version of elgg and copied it into the associated modules directory and everything worked fine.

I tried saving the files in different formats: UTF-8, UTF-16, UTF-8 no BOM etc. etc. and having no luck.

I even created en.php language file from scratch and I am getting this error.

comment:2 Changed 5 years ago by timalsina

Even worst, in OS X 10.5 if I browse languages directory, the above error occurs. I used terminal and fired vi editor to edit en.php files. Under engine/start.php I added '.DS_Store' to exclude it from loading and having no luck.

comment:3 Changed 5 years ago by ben

  • Owner set to ben
  • Status changed from new to assigned

Which text editor are you opening the file with?

comment:4 Changed 5 years ago by timalsina

I use TextWrangler (http://www.barebones.com/products/textwrangler/)

Even browsing the directory in OS X 10.5.4 causes this error. It only applies to languages folder.

comment:5 Changed 5 years ago by marcus

  • Resolution set to invalid
  • Status changed from assigned to closed

This looks to be a OS X issue. I would suggest that you might have something running which is silently trying to convert files in the background.

If the issue only manifests when you edit/lookat en.php I would suggest that you refrain from doing so. :)

Also look at hosting Elgg on a different machine, as there is clearly something funky going on.

Closed since this is not an Elgg problem.

comment:6 Changed 5 years ago by marcus

  • Resolution changed from invalid to fixed

(In [svn:2044]) Closes #313, Fixes #274: Resolved strange OSX language file browsing, including speculative windows fix. Thanks for the patch!

Note: See TracTickets for help on using tickets.