Check the final answer first, then review the worked steps.
$x = \frac{x-8}{3} \implies 3x = x-8 \implies 2x = -8 \implies x = -4$. $\log_{8}(-4)$ is undefined.