I have a Drupal 7 site that had a database meltdown on its previous host server. I had a backup that was about a year old, so I restored that. This is on a new host provider's server. I didn't remember all the versions the old server was configured with - MySQL, PHP, etc. - but I was pretty sure the one time I tried to move to PHP 8.x I had problems. So when I set up the new server, I set PHP at 7.4. I only mention that because some of the posts I found in my research mentioned these issues might be due to the PHP version (but those posts were from 10-11 years ago).
In any case, there are only a few tokens available: These are the only sections showing in "Browse available tokens" on the pathauto config page (actual tokens omitted for brevity):
Current date - Tokens related to the current date and time.
Current page - Tokens related to the current page request.
Random - Tokens related to random data.
When I load the pathauto patterns config page, I get these errors:
Default path pattern (applies to all content types with blank patterns below) is using the following invalid tokens: [node:title].
Default path pattern (applies to all vocabularies with blank patterns below) is using the following invalid tokens: [term:vocabulary], [term:name].
Pattern for user account page paths is using the following invalid tokens: [user:name].
I had many more errors on that page, but in trying to fix the issues, I uninstalled/reinstalled the pathauto and token modules. So the URL alias settings I had for other content types were lost.
And on the Status Report, I see these "errors":
Token types are not defined but have tokens
- $info['types']['node']
- $info['types']['term']
- $info['types']['vocabulary']
- $info['types']['file']
- $info['types']['user']
- $info['types']['current-user']
Tokens or token types missing name property
- $info['types']['date']
- $info['tokens']['node']['url']
- $info['tokens']['file']['size']
- $info['tokens']['user']['url']
- $info['tokens']['date']['custom']
Can someone tell me how I can correct these issues?