Whom did this happen to? 发生 and friends in sentence Beginning of an article on qiushibaike.com:


  这是一件发生在楼主身上的糗事，事情是这样的: ... (the story is explained)


My initial semi-literal translation:


  This embarrassing story happened to the OP (original poster) themselves. It was like this: ...


However, after reading into the first part more, I noticed the 是, which led me to think that it's one long noun phrase.

I would break it down like this:


  这。。。是。。。一件发生在楼主身上的。。。糗事。 


Breaking down the noun modifying phrase further:


  一件。。。发生在楼主身上。。。的


And further yet:


  发生。。。在楼主身上


where 在楼主身上 is a location complement of 发生.

Therefore, a second attempt at literal translation is:


  This is an embarrassing story that happened to the original poster. It was like this: ...


Questions:


Is the second translation more accurate? 
Does 发生 really take location complements? I only know of phrases like 发生了事故, where there is no location complement.
Is the following reasoning correct?



  
  在我公司发生了事故 is ambiguous as it can mean either "an accident has happened at my company" or "an accident that has happened at my company".
  The ambiguity is there because of a lack of a classifier 一件 or possessive particle 的.
  Clarity can be achieved by adding them, like so:
  
  
  在我公司发生了一件事故 - an accident has happened at my company
  一件在我公司发生了的事故 - an accident that has happened at my company
  
  的 in the second sentence is optional.
  



If (2) is true, can I move 在我公司 after 发生了 in (3) without changing the meaning?
Is the second translation more accurate?

Yes, it is.

Does 发生 really take location complements? I only know of phrases like 发生了事故, where there is no location complement.

The entire phrase: '发生在...的' is an adjectival phrase for the noun '事故'. '在' is the location complement. '的' is the adjectival suffix. (not possessive particle in this context)
(发生 is a verb, so it does take location complement 在)

Is the following reasoning correct?
在我公司发生了事故 is ambiguous as it can mean either &quot;an accident has happened at my company&quot; or &quot;an accident that has happened at my company&quot;

It can only mean &quot;an accident has happened at my company&quot;; to mean &quot;an accident that has happened at my company&quot; you need to write &quot;在我公司发生的事故&quot; (了 is optional)

The ambiguity is there because of a lack of a classifier 一件 or possessive particle 的.

There is no ambiguity, without adjectival suffix 的, &quot;在我公司发生了事故&quot; can only mean &quot;an accident has happened at my company&quot;

Clarity can be achieved by adding them, like so
在我公司发生了一件事故 - an accident has happened at my company
一件在我公司发生了的事故 - an accident that has happened at my company

It is correct

的 in the second sentence is optional.

In the second sentence, '的' cannot be omitted: only '了' is optional

If (2) is true, can I move 在我公司 after 发生了 in (3) without changing the meaning?

Yes, you can. The following are both correct as long as the adjectival suffix 的 is present at the end to indicate '[在我公司][发生]'or '[发生][在我公司]' is an adjectival phrase
一件在我公司发生的事故 = 一件发生在我公司的事故