I am dealing with the one-dimensional spatial wave equation $$\frac{\partial^2 \phi}{\partial z^2}-\frac{1}{v^2}\frac{\partial^2\phi}{\partial t^2}=0,$$ where $\phi=\phi(z,t)$ is required to solve.
According to the algebraic approach on Wikipedia (essentially change of variables), we obtain the general solution should be in the form: $$F(z-vt)+G(z+vt)\tag{1}$$
Looking back to the wave equation, there is a trivial solution: $$\phi(z,t)=(a+bz)(c+dt)\tag{2}$$ where $\{a,b,c,d\}$ are arbitrary constants. But it seems that this solution (2) is not compatible with $F(z-vt)+G(z+vt)$.