dinero icon indicating copy to clipboard operation
dinero copied to clipboard

Issue with artisan

Open LauriSalonen opened this issue 10 months ago • 5 comments

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!

LauriSalonen avatar Apr 16 '24 11:04 LauriSalonen

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

shojibflamon avatar Apr 18 '24 04:04 shojibflamon

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! :)

LauriSalonen avatar Apr 23 '24 14:04 LauriSalonen

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

shojibflamon avatar Apr 24 '24 04:04 shojibflamon

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! :)

LauriSalonen avatar Apr 24 '24 10:04 LauriSalonen

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.

shojibflamon avatar Apr 25 '24 11:04 shojibflamon