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

Errors in installation.

Open KatiaSishost opened this issue 2 years ago • 11 comments

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([

KatiaSishost avatar Sep 05 '22 12:09 KatiaSishost

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

Sanjaybhattwebkul avatar Sep 05 '22 12:09 Sanjaybhattwebkul

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 avatar Sep 05 '22 14:09 KatiaSishost

SOLVED:

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

and it work perfectly.

KatiaSishost avatar Sep 05 '22 15:09 KatiaSishost

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

KatiaSishost avatar Sep 05 '22 16:09 KatiaSishost

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

Sanjaybhattwebkul avatar Sep 06 '22 05:09 Sanjaybhattwebkul

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

KatiaSishost avatar Sep 06 '22 09:09 KatiaSishost

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

Sanjaybhattwebkul avatar Sep 06 '22 10:09 Sanjaybhattwebkul

And is it possible to share the screen recording.?

Sanjaybhattwebkul avatar Sep 06 '22 10:09 Sanjaybhattwebkul

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

KatiaSishost avatar Sep 06 '22 13:09 KatiaSishost

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

https://forums.krayincrm.com/

Sanjaybhattwebkul avatar Sep 07 '22 05:09 Sanjaybhattwebkul

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

leventilgin avatar Sep 20 '22 17:09 leventilgin

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 avatar Sep 23 '22 12:09 prabhat-webkul

kindly share the environment as well.

prabhat-webkul avatar Sep 23 '22 12:09 prabhat-webkul

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

fajar7xx avatar Nov 12 '22 08:11 fajar7xx

@fajar7xx share the error that you are facing.

prabhat-webkul avatar Nov 14 '22 06:11 prabhat-webkul

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

Sanjaybhattwebkul avatar Nov 14 '22 07:11 Sanjaybhattwebkul

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

Sanjaybhattwebkul avatar Dec 08 '22 12:12 Sanjaybhattwebkul

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

Draecal avatar Dec 12 '22 16:12 Draecal

Hi there, Please run the given command

php artisan vendor:publish --force --all

Sanjaybhattwebkul avatar Dec 13 '22 04:12 Sanjaybhattwebkul

   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

Draecal avatar Dec 13 '22 06:12 Draecal

No need to run the install command again.

Sanjaybhattwebkul avatar Dec 14 '22 08:12 Sanjaybhattwebkul

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

Draecal avatar Dec 14 '22 08:12 Draecal

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

Sanjaybhattwebkul avatar Dec 14 '22 08:12 Sanjaybhattwebkul

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

makowskid avatar Feb 27 '23 04:02 makowskid

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().

**

matheenshariff-webo avatar Jun 26 '23 16:06 matheenshariff-webo

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

desod-vn avatar Aug 10 '23 07:08 desod-vn

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; }

desod-vn avatar Aug 16 '23 03:08 desod-vn

nope, it has nothing to do with it

makowskid avatar Aug 16 '23 11:08 makowskid