We construct a square-octagon lattice model by considering the nearest-neighbor (NN) hoppings with staggered magnetic fluxes and the next-nearest-neighbor (NNN) hoppings, where zero-Chern-number topological insulator (ZCNTI) phases emerge. At 1/4 filling, by tuning the staggered fluxes and NNN hopping potential, this model supports the phase transition from a Chern insulator (CI) with Chern number C = 2 to a ZCNTI phase. At half filling, we observe that staggered magnetic fluxes can induce a higher-order topological insulator (HOTI) state. Interestingly, the ZCNTI appears at 3/4 filling when considering the NN and NNN hoppings in the absence of staggered fluxes, which has been rarely reported in previous work. Contrary to conventional HOTIs, this ZCNTI phase hosts both robust corner states and gapless edge states which can be identified based on the quantized dipole and quadrupole moments. Additionally, a topological flat band (TFB) with flatness ratio about 24 appears. We further investigate ν = 1/2 fractional Chern insulator (FCI) state when hard-core bosons fill into this TFB model.