laravel-crm icon indicating copy to clipboard operation
laravel-crm copied to clipboard

ERROR WHEN RUNNING php artisan krayin-crm:install

Open kangichu opened this issue 2 years ago • 9 comments
trafficstars

Following the instruction on the website that is

  1. composer create-project krayin/laravel-crm
  2. php artisan krayin-crm:install

while also configuring the .env file. p.s using postgres I get this error

image

PHP Fatal error:  Uncaught Error: Call to a member function make() on null in D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242
Stack trace:
#0 D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(88): Illuminate\Foundation\Exceptions\Handler->report(Object(Error))
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))
#2 {main}
  thrown in D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242
PHP Fatal error:  Uncaught Error: Call to a member function make() on null in D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242
Stack trace:
#0 D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(88): Illuminate\Foundation\Exceptions\Handler->report(Object(Symfony\Component\ErrorHandler\Error\FatalError))
#1 D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(130): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError))
#2 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#3 {main}
  thrown in D:\Projects\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242

You can see from the attached picture that the migrations are running ok until it gets to Migrating: 2021_09_30_154222_alter_lead_pipeline_stages_table Where it bombs. Another issue is it runs even when i delete the schema in the DB but still gets that error and none of the migrated tables actually show up in the DB.

kangichu avatar Mar 10 '23 14:03 kangichu

Hi there, Please verify once. are all the required dependencies available on your server?

Sanjaybhattwebkul avatar Mar 13 '23 08:03 Sanjaybhattwebkul

Hi there, Please verify once. are all the required dependencies available on your server?

running on local, and yes, installed all dependencies

kangichu avatar Mar 22 '23 19:03 kangichu

Hello everyone, I am experiencing a similar issue and would appreciate any help in resolving it.

mehdihesamzadeh avatar May 23 '23 11:05 mehdihesamzadeh

I have a similar issue. Works locally, but won't install on newly provisioned production server (through Laravel Forge).

JasonJensenDev avatar Aug 30 '23 21:08 JasonJensenDev

HI, I am experiencing a similar issue and would appreciate any help in resolving it. version php : php 8.1.23 PHP Fatal error: Uncaught Error: Call to a member function make() on null in /laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:262

vieramason avatar Oct 01 '23 12:10 vieramason

The step that is missing between in the documents is to edit .env and enter in your MySQL database details between these two commands

composer create-project krayin/laravel-crm and php artisan krayin-crm:install

michaelkrieger avatar Dec 21 '23 19:12 michaelkrieger

Hello everyone, I am experiencing a similar issue and would appreciate any help in resolving it.

The issue was with the php version you're using, try using like 8

kangichu avatar Jan 03 '24 18:01 kangichu

HI, I am experiencing a similar issue and would appreciate any help in resolving it. version php : php 8.1.23 PHP Fatal error: Uncaught Error: Call to a member function make() on null in /laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:262

For me, once we updated our php version to 8 it worked, so play around with the php versions

kangichu avatar Jan 03 '24 18:01 kangichu

I have a similar issue. Works locally, but won't install on newly provisioned production server (through Laravel Forge).

Maybe dockerize it, cause in my situation the issue was due to php version

kangichu avatar Jan 03 '24 18:01 kangichu

tested the following commands, working for me

composer create-project krayin/laravel-crm php artisan krayin-crm:install

if you face this again, then apply these changes https://github.com/krayin/laravel-crm/pull/1114/files and share the error.

prabhat-webkul avatar Mar 20 '24 07:03 prabhat-webkul