Just found another thing,
If I add a link to the image, it is inserted properly with the right image url and the link.
but still, when no link is added the image, url is still “http://www.domain.com/undefined”
I also switched themes, deleted them, re-installed them. didn’t help.
Must be something from the database, when I used WordPress installer to recreate the database from scratch it’s working, but of course I lose my database.
wordpress version 3.8
That’s what I thought, but I’ve disabled and even deleted all of them.
Even installed wordpress files all over again, but still the same problem, only on one specific site.
Maybe there’s something in the wordpress database options that is interfering with it. But can’t figure what it might be