Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with artisan #8

Open
LauriSalonen opened this issue Apr 16, 2024 · 5 comments
Open

Issue with artisan #8

LauriSalonen opened this issue Apr 16, 2024 · 5 comments

Comments

@LauriSalonen
Copy link

I am not sure if i am stupid enough to work with this but I cannot get what I am doing wrong

When I am trying to run whole thing i get always this error:
C:\dinero>php artisan migrate --seed
PHP Warning: require(C:\dinero/vendor/autoload.php): Failed to open stream: No such file or directory in C:\dinero\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\dinero/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\dinero\artisan:18
Stack trace:
#0 {main}
thrown in C:\dinero\artisan on line 18

I have tried to switch php version to 8.1 didn't work, 8.3 didn't work, composer is installed successfully and php works fine, but this isn't

Thanks!

@shojibflamon
Copy link
Contributor

Hi, @LauriSalonen,
Good Day !!!

The issued you have faced is not related to PHP versioning. Instead, it indicates that the required dependencies were not installed using composer install.

As stated in the readme file, it's essential to run composer install after cloning the repository to ensure that all dependencies are properly installed.

Also don't forget to copy .env file from .env.example

I trust this clarifies the matter for you. If you have any further questions or concerns, please don't hesitate to reach out.

Thanks

@LauriSalonen
Copy link
Author

LauriSalonen commented Apr 23, 2024

Hello!

As stated in the readme file, it's essential to run composer install after cloning the repository to ensure that all dependencies are properly installed.

I used composer installer that can be found from composer website. I installed to my PHP directory of course. Then I even tried to install with CMD straight to dinero folder. I have reinstalled composer and PHP around 5 times to make sure I didn't miss anything. Still i got same error
"C:\dinero>php artisan migrate --seed
PHP Warning: require(C:\dinero/vendor/autoload.php): Failed to open stream: No such file or directory in C:\dinero\artisan on line 18
PHP Fatal error: Uncaught Error: Failed opening required 'C:\dinero/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\dinero\artisan:18
Stack trace:
#0 {main}
thrown in C:\dinero\artisan on line 18"

Also don't forget to copy .env file from .env.example
I have made it, and I should have done everything right, still I don't get it why this won't work. I have DB open, I have made database, also I have tried in different directories still nothing.

Just to ask did I do everything correctly this is how I installed everything:

  1. Installed PHP to C:\PHP, added it to system environment
  2. Installed dinero with git clone
  3. Installed composer from their site with exe setup
  4. Installed composer via command line into dinero directory (also tried without this step)
  5. Made env file correctly
  6. Did database & opened server
  7. Then I used php artisan migrate --seed in dinero directory
  8. Got that error

Do you have any idea what to try next? Have I missed something?

Thanks a lot! :)

@shojibflamon
Copy link
Contributor

Hi @LauriSalonen
I am confused about your composer installation. Install composer in your machine using .exe file & install composer with dependency install in project directory are two different thing.

did you do this step before php artisan migrate --seed?

C:\dinero>composer install
C:\dinero>php artisan migrate --seed

image

@LauriSalonen
Copy link
Author

Hi @shojibflamon
Sorry for confusion, I meant I have installed composer with exe from their site

Also I did run composer install in cmd at dinero directory
that run me this error aswell:
image

What should I try next?
Thanks for your help really much! :)

@shojibflamon
Copy link
Contributor

hi @LauriSalonen,
You have to install ext-int & ext-fileinfo extension in php as seen in problem
or you can run application without required extensions.

Read all the problem you have found.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants