@Sebastian-Roth Thank you very much for your help! After you pointed me to the right file, i found a very easy and good working solution.
/var/www/html/fog/lib/fog/fogbase.class.php:
Changed line 2305 from:
$size = filesize($file);
to:
$size = exec("stat -c %s ".$file);
I found this nice solution over here:
stackoverflow
Reverted my changes that i showed in the last post, restarted FOGImageReplicator service, and it works perfect!
We know that this can’t work for forever, and Updates are also nice and good, so we need to change a few internal things, and also reinstall this Server with x64 Debian.
Thanks for your great support. Keep up this very very nice project!