I noticed that my Cloudflare Turnstile extensions did not appear to be working. I just happened to test the signup, and Cloudflare never showed up on the signup page. I checked the extension, and it said active, but it had no settings. I thought I remembered adding my Cloudflare credentials in the extension way back, and all was working with it.
The extension mentioned it was created by "flectar" but I did not see that directory in the /vendor folder. So I ran the composer require flectar/flarum-turnstile:"*" command. That seemed to go okay. I then ran the php flarum cache:clear and got some errors. I then looked in my /vendor folder, and there was only one folder remaining (flectar). It looks like everything was wiped out. Of course the site is down.
Below is everything I ran from the command line leading up to this:
`[root@server core]# composer require flectar/flarum-turnstile:"*"
./composer.json has been updated
Running composer update flectar/flarum-turnstile
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking flectar/flarum-turnstile (1.1.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Downloading flectar/flarum-turnstile (1.1.0)
- Installing flectar/flarum-turnstile (1.1.0): Extracting archive
Package blazite/flarum-turnstile is abandoned, you should avoid using it. Use flectar/flarum-turnstile instead.
Package doctrine/cache is abandoned, you should avoid using it. No replacement was suggested.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating autoload files
116 packages you are using are looking for funding.
Use the composer fund command to find out more!
Found 1 security vulnerability advisory affecting 1 package.
Run "composer audit" for a full list of advisories.
You have new mail in /var/spool/mail/root
[root@server core]# php flarum cache:clear
Clearing the cache...
[root@server core]# php flarum cache:clear
PHP Warning: require(/home/mywebsite/public_html/core/vendor/autoload.php): Failed to open stream: No such file or directory in /home/mywebsite/public_html/core/site.php on line 22
PHP Fatal error: Uncaught Error: Failed opening required '/home/mywebsite/public_html/core/vendor/autoload.php' (include_path='.:') in /home/mywebsite/public_html/core/site.php:22
Stack trace:
#0 /home/mywebsite/public_html/core/flarum(11): require()
#1 {main}
thrown in /home/mywebsite/public_html/core/site.php on line 22
[root@server core]# php flarum cache:clear
PHP Warning: require(/home/mywebsite/public_html/core/vendor/autoload.php): Failed to open stream: No such file or directory in /home/mywebsite/public_html/core/site.php on line 22
PHP Fatal error: Uncaught Error: Failed opening required '/home/mywebsite/public_html/core/vendor/autoload.php' (include_path='.:') in /home/mywebsite/public_html/core/site.php:22
Stack trace:
#0 /home/mywebsite/public_html/core/flarum(11): require()
#1 {main}
thrown in /home/mywebsite/public_html/core/site.php on line 22
[root@server core]#`
How do I get the site back? Flarum version 1.8.0