There was a problem with js.php file somewhere in applications folder, the new host for some reason doesn't like 777 permission, it wants folders to be 755 and 644 for files, so I did CHMOD on them and it fixed the first problem. I did the same with the gallery, I can upload pictures, watch them, everything is normal besides that it only shows about 20 pages, I have about +900 images on the gallery and I can't see the oldest ones. It stops around 2015 May, the oldest image dates back to around 2013. Let's say if I go to my profile and see images that just I uploaded, there, I can see every image, but if I go to main gallery category, it's not there. It's also not hidden or anything like that.
EDIT: So it was IPB problem. https://community.invisionpower.com/4docs/knowledgebase/417-broken-sort-order-r251/