krayin / laravel-crm

Free & Opensource Laravel CRM solution for SMEs and Enterprises for complete customer lifecycle management.
https://krayincrm.com
Open Software License 3.0
11.55k stars 791 forks source link

Errors in installation. #1079

Closed KatiaSishost closed 1 year ago

KatiaSishost commented 2 years ago

Hello.

When i try to install

whit this: composer create-project krayin/laravel-crm

at the end when i run php artisan krayin-crm:install.

PHP Fatal error:  Uncaught Error: Call to a member function make() on null in D:\WebServer8\htdocs\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242
Stack trace:
#0 D:\WebServer8\htdocs\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:\WebServer8\htdocs\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:\WebServer8\htdocs\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242
Stack trace:
#0 D:\WebServer8\htdocs\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:\WebServer8\htdocs\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:\WebServer8\htdocs\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242

when i download the zip... run php artisan composer install and php artisan krayin-crm:install.. this install correctly... but when try to enter to http://localhost/admin/dashboard

Required parameter $id follows optional parameter $participants

 public function isDurationOverlapping($startFrom, $endFrom, $participants = [], $id)    {        $queryBuilder = $this->model            ->leftJoin('activity_participants', 'activities.id', '=', 'activity_participants.activity_id')            ->where(function ($query) use ($startFrom, $endFrom) {                $query->where([
Sanjaybhattwebkul commented 2 years ago

Hi there, Have you configure your database credentials in .env file before running this command? php artisan krayin-crm:install

KatiaSishost commented 2 years ago

error 500 log in laravel null.. and in apache php error:

PD Not is problem of php version... i try with other server with CentOS with PHP 7.4 to 8.1.. and all same problem.

[Mon Sep 05 11:04:44.662586 2022] [php:error] [pid 11652:tid 1876] [client ::1:50259] PHP Fatal error: Uncaught Error: Call to a member function make() on null in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242\nStack trace:\n#0 D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(88): Illuminate\Foundation\Exceptions\Handler->report(Object(Symfony\Component\ErrorHandler\Error\FatalError))\n#1 D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(130): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError))\n#2 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()\n#3 {main}\n thrown in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242, referer: htt

KatiaSishost commented 2 years ago

SOLVED:

Upgrade PHP version to 8.40 in composer.json and run composer install again.

and it work perfectly.

KatiaSishost commented 2 years ago

UPDATE: all work perfectly with the solution, now i try to install the Zoom integration... and it give the same error when i enter in domain/admin/zoom

ERROR 500

Apache PHP Log: [Mon Sep 05 13:07:46.818622 2022] [php:error] [pid 11652:tid 1888] [client ::1:54852] PHP Fatal error: Uncaught Error: Call to a member function make() on null in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242\nStack trace:\n#0 D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(165): Illuminate\Foundation\Exceptions\Handler->report(Object(Error))\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))\n#2 {main}\n thrown in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242, referer: http://localhost/admin/dashboard

Sanjaybhattwebkul commented 2 years ago

Hi there, I guess you skip some steps while integrating the zoom, Please verify all credentials and try it again,

KatiaSishost commented 2 years ago

Nope,

other example, when create lead product or other... work all..

but when u click in eye to show lead...

same error.

[Tue Sep 06 06:56:57.173491 2022] [php:error] [pid 11652:tid 1892] [client ::1:56605] PHP Fatal error: Uncaught Error: Call to a member function make() on null in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242\nStack trace:\n#0 D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(165): Illuminate\Foundation\Exceptions\Handler->report(Object(Error))\n#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))\n#2 {main}\n thrown in D:\WebServer8\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242, referer: http://localhost/admin/leads/1

Sanjaybhattwebkul commented 2 years ago

Hi there, Can you please let me know the php and composer version on your system?

Sanjaybhattwebkul commented 2 years ago

And is it possible to share the screen recording.?

KatiaSishost commented 2 years ago

Hi there, Can you please let me know the php and composer version on your system?

Hi bro! Yes.

PHP 8.0.11 (cli) (built: Sep 21 2021 18:26:06) ( ZTS Visual C++ 2019 x64 ) Copyright (c) The PHP Group Zend Engine v4.0.11, Copyright (c) Zend Technologies

Composer - Dependency Manager for PHP - version 2.2.7

Sanjaybhattwebkul commented 2 years ago

@KatiaSishost Can you please raise a query over krayin forum? I will guide you over the forum

https://forums.krayincrm.com/

leventilgin commented 2 years ago

http://localhost:8000/admin/quotes/create http://localhost:8000/admin/leads/create http://localhost:8000/admin/leads/create?stage_id=1

When we click on the links above same error .

PHP Fatal error: Uncaught Error: Call to a member function make() on null in C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242 Stack trace:

0 C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(165): Illuminate\Foundation\Exceptions\Handler->report(Object(Error))

1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Error))

2 {main}

thrown in C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242 [Tue Sep 20 20:42:19 2022] PHP Fatal error: Uncaught Error: Call to a member function make() on null in C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:242 Stack trace:

0 C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(165): Illuminate\Foundation\Exceptions\Handler->report(Object(Symfony\Component\ErrorHandler\Error\FatalError))

1 C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(209): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError))

2 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()

3 {main}

thrown in C:\xampp\htdocs\laravel-crm-master\laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php on line 242

prabhat-webkul commented 2 years ago

try installing the CRM again as we released version 1.2.4 that is compatible with higher version of PHP. If you still face any issue then apply this PR changes https://github.com/krayin/laravel-crm/pull/1114/files and share the error.

prabhat-webkul commented 2 years ago

kindly share the environment as well.

fajar7xx commented 2 years ago

Hy. i also get some error. i try clone the project. update composer and try to install. and it got some error too

prabhat-webkul commented 2 years ago

@fajar7xx share the error that you are facing.

Sanjaybhattwebkul commented 2 years ago

Hi there, Please raise a ticket Here I need to check on your instance

Sanjaybhattwebkul commented 1 year ago

@fajar7xx Hope your issue will be resolved, so closing this issue, And if still you are facing any issues then feel free to reopen it.

Draecal commented 1 year ago

Same error here: PHP 8.1.13 (cli) (built: Nov 22 2022 14:42:07) (NTS gcc x86_64) Copyright (c) The PHP Group Zend Engine v4.1.13, Copyright (c) Zend Technologies with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies Composer version 2.4.4 2022-10-27 14:39:29 Fedora 37

 sudo php artisan krayin-crm:install
Great! your environment configuration file already exists.
   INFO  Application key set successfully.

Loading configs...
Configuration loaded..
Step: Migrating all tables into database...

  Dropping all tables ...................................................................................... 10ms FAIL
PHP Fatal error:  Uncaught Error: Call to a member function make() on null in /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:262
Stack trace:
#0 /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(191): Illuminate\Foundation\Exceptions\Handler->report()
#1 /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(259): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#2 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#3 {main}
  thrown in /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php on line 262
PHP Fatal error:  Uncaught Error: Call to a member function make() on null in /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:262
Stack trace:
#0 /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(191): Illuminate\Foundation\Exceptions\Handler->report()
#1 /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(235): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
#2 /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(259): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#3 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#4 {main}
  thrown in /var/www/html/laravel-crm/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php on line 262
Sanjaybhattwebkul commented 1 year ago

Hi there, Please run the given command


php artisan vendor:publish --force --all
Draecal commented 1 year ago
   INFO  Publishing assets.

  Copying directory [vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views] to [resources/views/errors]  DONE
  Copying directory [vendor/laravel/framework/src/Illuminate/Notifications/resources/views] to [resources/views/vendor/notifications]  DONE
  Copying directory [vendor/laravel/framework/src/Illuminate/Pagination/resources/views] to [resources/views/vendor/pagination]  DONE
  Copying file [vendor/barryvdh/laravel-debugbar/config/debugbar.php] to [config/debugbar.php] .................. DONE
  Copying file [vendor/barryvdh/laravel-dompdf/config/dompdf.php] to [config/dompdf.php] ........................ DONE
  Copying file [vendor/fruitcake/laravel-cors/config/cors.php] to [config/cors.php] ............................. DONE
  Copying file [vendor/konekt/concord/config/config.php] to [config/concord.php] ................................ DONE
  Copying directory [vendor/laravel/sanctum/database/migrations] to [database/migrations] ....................... DONE
  Copying file [vendor/laravel/sanctum/config/sanctum.php] to [config/sanctum.php] .............................. DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/export.model.stub] to [stubs/export.model.stub] ...... DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/export.plain.stub] to [stubs/export.plain.stub] ...... DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/export.query.stub] to [stubs/export.query.stub] ...... DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/export.query-model.stub] to [stubs/export.query-model.stub]  DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/import.collection.stub] to [stubs/import.collection.stub]  DONE
  Copying file [vendor/maatwebsite/excel/src/Console/stubs/import.model.stub] to [stubs/import.model.stub] ...... DONE
  Copying file [vendor/maatwebsite/excel/config/excel.php] to [config/excel.php] ................................ DONE
  Copying file [vendor/prettus/l5-repository/src/resources/config/repository.php] to [config/repository.php] .... DONE
  Copying file [vendor/spatie/laravel-ignition/config/ignition.php] to [config/ignition.php] .................... DONE
  Copying file [vendor/spatie/laravel-ignition/config/flare.php] to [config/flare.php] .......................... DONE
  Copying directory [packages/Webkul/Admin/publishable/assets] to [public/vendor/webkul/admin/assets] ........... DONE
  Copying file [packages/Webkul/Core/src/Config/concord.php] to [config/concord.php] ............................ DONE
  Copying file [packages/Webkul/Core/src/Config/cors.php] to [config/cors.php] .................................. DONE
  Copying file [packages/Webkul/Core/src/Config/sanctum.php] to [config/sanctum.php] ............................ DONE
  Copying directory [packages/Webkul/UI/publishable/assets] to [public/vendor/webkul/ui/assets] ................. DONE
  Copying directory [packages/Webkul/WebForm/publishable/assets] to [public/vendor/webkul/web-form/assets] ...... DONE
  Copying directory [vendor/laravel/framework/src/Illuminate/Mail/resources/views] to [resources/views/vendor/mail]  DONE
  Copying file [vendor/diglactic/laravel-breadcrumbs/config/breadcrumbs.php] to [config/breadcrumbs.php] ........ DONE
  Copying directory [vendor/diglactic/laravel-breadcrumbs/resources/views] to [resources/views/vendor/breadcrumbs]  DONE
  Copying directory [vendor/laravel/sail/runtimes] to [docker] .................................................. DONE
  Copying file [vendor/laravel/sail/bin/sail] to [sail] ......................................................... DONE
  Copying file [vendor/laravel/tinker/config/tinker.php] to [config/tinker.php] ................................. DONE

And then? If I run php artisan krayin-crm:install again gives the same error

Sanjaybhattwebkul commented 1 year ago

No need to run the install command again.

Draecal commented 1 year ago

Hi, the error was a misconfiguration at Database credentials, now fixed and installed properly

Sanjaybhattwebkul commented 1 year ago

Hi There,

Thanks for the update.

Also, if you like our support, you may give us the review here: https://www.trustpilot.com/review/krayincrm.com That would be grateful for us.

Thanks & Regards,

Krayin Team

makowskid commented 1 year ago

Make sure you put db password and other wacky strings into double quotes.

matheenshariff-webo commented 1 year ago

I'm still facing the same issue.

Everything work fine I'm getting error when I'm trying to create a Lead and Quotes.

**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.

laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(246): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(Symfony\Component\ErrorHandler\Error\FatalError)).

laravel-crm\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown().

**

desod-vn commented 1 year ago

problems relate Lead and Quote because you missing intl extension, check your php.ini to fix it.

desod-vn commented 1 year ago

while you develop project but you can see exactly the error, just receive a message like: PHP Fatal error: Uncaught Error: Call to a member function make() on null in ..\vendor\laravel\fra mework\src\Illuminate\Foundation\Exceptions\Handler.php:262 simplely, you just overide report function in App\Exceptions\Handler.php: public function report(\Throwable $throwable) { Log::error($throwable->getMessage()); throw $throwable; }

makowskid commented 1 year ago

nope, it has nothing to do with it