After trying a lot, I'v found the causes of error message running SMW_refreshData.php script ,the two extensions --MenuTabs &
Dynamic Page List.
Now I can run SMW_refreshData.php script successfully if I disable the both extensions in the LocalSettings.php before running the script. Everyone can find more information about the two extensions below.
Dynamic Page List:
Thank Yaron, Markus and S Page for your helps.