Here is an alternate way to fold an octagon from a square piece of paper.
Fold the square in half along both diagonals. Open.
Fold the edge of the paper to the diagonal so the crease goes through the corner of the paper. Open.
Repeat step 3 for each corner and each diagonal.
Those creases form a regular octagon.