I had a talented developer who helped me resolve this issue (from fiverr).
Foreword:
The dev installed the Flamoji extension on his new install (locally) and he was able to install it without a glitch.
He suspected that this extension may have clashed with another code or extension on my end. There were too many variables to decipher and on top of that, my forum was a migration from SMF.
Upon greater investigation, turns out once I had installed the Flamoji extension, something deleted/ modified a bunch of files and extensions in my vendor folder.
Here's how we solved this issue:
Firstly, we deleted the entire vendor folder that didn't contain the right dependencies (yes, all of it). The dev then made me a new composer.json that contained the correct content/extensions for my Flarum.
Luckily, I'd posted a list of php flarum info
here which the dev was able to use to create the new composer.json file.
This time without including the Flamoji extension. 😂 This is because, my original composer.json file seemed to have been modified (it was almost a blank template for some reason)?! And then we had to run these commands: composer install (I had already done this so I skipped this) & composer update.
Once we had done this, the vendor folder was populated with the correct files/ extensions. However on my website, I was only able to see the header and login on flarum. I could also access the flarum's admin dashboard and it would display correctly but the posts were not displaying (like below):
We got the posts working by enabling the top 5 extensions from the farum's admin dashboard (which was correctly working) and that's when all the posts populated and we're now operating as normal.
BIG LESSON I LEARNT HERE IS ALWAYS TEST ON YOUR LOCAL AND KEEP BACKUPS! I use to do this rigerously with simplemachines.org. I had a local install, and a live test bench with my host. For some reason, I thought Flarum would be different.