Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Having problems restoring site to get work done after new system install!!!

#2623
Avatar photo[anonymous]

In case any other Mac users have this issue: Publii will fail without any error message if the username is different and you simply copy the directory from Documents or sync it with iCloud . Turns out the user directory path is hard-coded in the config and site data. That makes no sense since storing the Publii folder in iCloud Documents makes it portable. Or should be. By storing the full user directory path in Publii’s config, that only works as long as the username is the same.

To fix it, run a search and replace and replace ‘Users/oldusername’ with ‘Users/newusername’. The easiest way to do it is to download TextMate (free) and use its Find-Replace feature.