The aim of this comment is to show the solution of the KdVB equation used by Shah et al. (Astrophys. Space Sci. 335:529–537, 2011, doi:10.1007/s10509-011-0766-y) is not correct. So, the numerical results that are predicted in this manuscript should not be helpful for further investigations in a plasma laboratory. For this reason, we have employed the Bernoulli’s equation method to obtain the correct form of analytical solution to this equation, which is appropriate for the study of electrostatic compressive and rarefactive shocks and solitons in relativistic plasmas occurring in polar regions of pulsar.