Versions:
MediaWiki | 1.31.1 |
PHP | 7.0.25 (cgi-fcgi) |
MySQL | 5.6.41-84.1 |
Wiki located at: https://GreyhawkOnline.com/greyhawkwiki
So, the thing is that I imported a lot of pages (via Special:Import) and none of the pages are populating in Categories. It's only generally showing 0 - 2 pages in each category. So, after some reading, I found "rebuildall.php", which from what I understand will refresh the tables that denote the pages in all the categories.
So, the problem is that when I use Putty to navigate to a command line in my wiki directory, and I enter:
php maintenance/rebuildall.php
… it won't run the file. Instead, I get:
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /path/to/wiki/greyhawkonline.com/greyhawkwiki/maintenance/rebuildall.php on line 47
Clearly, I am missing something here, and I need a little help figuring out what it is that I am missing here.
Or, if there's an easier way, using phpMyAdmin, or something, that'd be great!
Thanks, in advance for your help.