My professional opinions based on limited information provided in photos.
IGSCC = Intergranular stress corrosion cracking (IGSCC) is a type of corrosion due to applied forces on the granular boundaries of a material; the molecular material that exists on the boundary is more susceptible than the internally placed molecules. (Stress related cracking/failure)
IGSCC on the orange square tube is my bet, you would need to get a micro view to verify. The location is at the toe of weld, heat effected zone, and at the point of concentrated high stress. Remove the stress or upgrade the material/design. Grind out defect, full pen weld, plate over, consider additional material but know that being that tube thickness is likely less than ideal... you will most likely change the location of the stress concentration to the end of your plate/gusset area and move failure down the line. Also note the weld start/stop at the corner of the tube. This creates a likely failure initiation point at the high stress corner combined with that start/stop.
The ram is a bad weld. Weld should not break in the weld unless it has inherent flaws, it should have torn base material away if the weld were not a flawed specimen. While I can not see porosity or inclusions in the visible part of the broken weld, I would really expect that something existed to create the origin for the fault line in the casting (weld). Remove all defective weld material, pre-heat and re-weld.
The plate steel is also most likely intergranular stress cracking, grind it out, full pen weld it, flat top it, plate it.