Closed ghost closed 5 years ago
Hello, sorry for the late reply.
A quick google search seems to indicate that either the packages or PHP need to be updated. What version of PHP are you running?
I just reinstalled Debian so I'll see if I run into the same problem.
@pierobot I installed PHP and the packages straight from the PHP repository so it can't be that. I'm using PHP 7.3
I meant with the composer packages. I'm getting a different error. Hold on while I sort them out. Something must have changed in one of the packages.
I pushed a commit that fixed issues on my end. I did not run into your exact problem but did it, by any chance, fix it for you?
@pierobot I'm still getting the same error, unfortunately.
Can you paste the output of git log | grep commit | head -1
and git status
inside mangapie dir.
@pierobot Here's the output of those two commands:
What version of PHP are you using? Any other information you think might be worth mentioning?
@pierobot I'm using this version of PHP:
Not sure what else I can do at this point. Do you have Skype or maybe Discord? I'd like to walk you through how I set up my Debian virtual machine so we can see where the error is occurring.
I'd prefer to keep this over github so people that run into the same problem can have something to reference. If this project ever gets big enough I'll consider creating a discord server for it. I know it's tedious to keep going back and forth but bear with me.
What version of composer are you using?
@pierobot I'm using this version of composer:
Edit: I installed the version above from the official Debian repositories. Just now I installed the latest version from the PHP repositories. See screenshot below.
@pierobot It seems like the very old version of composer in the Debian repositories was the cause of the initial issue. Basically, if you're on Debian, you have to install composer with curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer
instead of with apt install composer
.
Running composer install --no-dev
inside the mangapie directory with the latest version of composer seemed to work at first but produced an error message at the end as well. See screenshots below.
Awesome, glad you figured it out. I will add it to the wiki.
As to the new issue you're having you can install redis-server and edit CACHE_DRIVER in your .env file to redis. I'm updating the wiki since it seems some stuff is out order.
@pierobot I installed redis-server and made the change in the .env file but I'm still getting the same error message when I run "composer install --no-dev" inside the mangapie root directory.
You're making the change to .env not .env.example, correct?
Might be worth trying php artisan config:cache
?
@pierobot Correct. I get the following error when I run that command in the mangapie folder:
root@debian:~/mangapie# php artisan config:cache
PHP Warning: require(/root/mangapie/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /root/mangapie/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/root/mangapie/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php') in /root/mangapie/bootstrap/autoload.php on line 17
Sorry for the late reply, I was in another city on important matters.
From the looks of it, your vendor folder is missing files.
Does vendor/autoload.php
exist?
I would try deleting the entire vendor folder and run the composer install command again.
@pierobot Same result, I'm afraid. I think I'll just wait for you to update the Docker container and use that.
I followed the instructions in the wiki to install mangapie on my Debian server earlier today and ran into the following error message after running the command
composer install --no-dev
in mangapie's root directory.Any idea what could be causing this issue?