Array path not following a straight line

Hello,

I’m having some troubles using the array tool on Blender 4.0.2.

It’s (apparently) a simple problem, but I’m not finding a solution myself neither one online (probably because I’m not searching with the specific keywords).

When “arraying”, the array path is deviating from the origin, not following a straight line through the axis. I can’t find a fix for this, unless changing the axis where the object deviates, but it shouldn’t be needed…

I’ve attached two images that show what my problem is

Thanks in advance

The array modifier will work in terms of the local axes of the object, not the global axes.

Is there any rotation on the curve object itself?

Yes… that was it! I had imported it from another file and it had a rotation on the Z axis. Solved!