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

https://laravel-crm-starter.test - Attempt to read property "value" on null #3

Closed
luisurbinanet opened this issue Jan 16, 2024 · 7 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@luisurbinanet
Copy link

luisurbinanet commented Jan 16, 2024

Hi!,

I trying to install the package locally to evaluate and I couldn't do work. I followed all sted described in instalation steps and It fall down in the /public/index.php line 52
$response = $kernel->handle(

$request = Request::capture() // <<===== Fall down here!

)->send();

ErrorException
PHP 8.1.10
Laravel 9.52.15
Attempt to read property "value" on null

Environment Local with Laragon
Apache 2.4.47 win64-VS16
MySQL 5.7.33

This is the dd($request);
Illuminate\Http\Request {#50 ▼ +attributes: Symfony\Component\HttpFoundation\ParameterBag {#53 ▼ #parameters: [] } +request: Symfony\Component\HttpFoundation\InputBag {#52 ▼ #parameters: [] } +query: Symfony\Component\HttpFoundation\InputBag {#59 ▼ #parameters: [] } +server: Symfony\Component\HttpFoundation\ServerBag {#55 ▼ #parameters: array:45 [▶] } +files: Symfony\Component\HttpFoundation\FileBag {#56 ▼ #parameters: [] } +cookies: Symfony\Component\HttpFoundation\InputBag {#54 ▼ #parameters: array:2 [▼ "XSRF-TOKEN" => "eyJpdiI6IlB3ZXE3dFVreDJqQkhoc0ZMZnd6aFE9PSIsInZhbHVlIjoiUFJRY1ZQWnkwUk9XNHZDNytJaHlMSzh1VW5mYVBINXVnS0pEYWtOMFltUE5sK1VHZk9Ob2ROcGg4YmZXYXZlMXh5bVhpWGZPSHA1Sko4 ▶" "laravel_session" => "eyJpdiI6Ii9NTFdEcmR1bE0vclVoUnFqZG9jdmc9PSIsInZhbHVlIjoiSXJHb25RK2JsT2ovRkZBMkw2dTNZaFpyYzdwLzlPSVFKdDNOKzAxelVJczZuMzE4Z0Z2NWVaRFQreW9qaGplMDdsT0pVbFRyekVnamlB ▶" ] } +headers: Symfony\Component\HttpFoundation\HeaderBag {#57 ▼ #headers: array:16 [▼ "host" => array:1 [▼ 0 => "laravel-crm-starter.test" ] "connection" => array:1 [▼ 0 => "keep-alive" ] "cache-control" => array:1 [▼ 0 => "max-age=0" ] "sec-ch-ua" => array:1 [▼ 0 => ""Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"" ] "sec-ch-ua-mobile" => array:1 [▼ 0 => "?0" ] "sec-ch-ua-platform" => array:1 [▼ 0 => ""Windows"" ] "upgrade-insecure-requests" => array:1 [▼ 0 => "1" ] "user-agent" => array:1 [▼ 0 => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" ] "accept" => array:1 [▼ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "sec-fetch-site" => array:1 [▼ 0 => "none" ] "sec-fetch-mode" => array:1 [▼ 0 => "navigate" ] "sec-fetch-user" => array:1 [▼ 0 => "?1" ] "sec-fetch-dest" => array:1 [▼ 0 => "document" ] "accept-encoding" => array:1 [▼ 0 => "gzip, deflate, br" ] "accept-language" => array:1 [▼ 0 => "es-ES,es;q=0.9,en;q=0.8" ] "cookie" => array:1 [▼ 0 => "XSRF-TOKEN=eyJpdiI6IlB3ZXE3dFVreDJqQkhoc0ZMZnd6aFE9PSIsInZhbHVlIjoiUFJRY1ZQWnkwUk9XNHZDNytJaHlMSzh1VW5mYVBINXVnS0pEYWtOMFltUE5sK1VHZk9Ob2ROcGg4YmZXYXZlMXh5bVhpW ▶" ] ] #cacheControl: array:1 [▼ "max-age" => "0" ] } #content: null #languages: null #charsets: null #encodings: null #acceptableContentTypes: null #pathInfo: null #requestUri: null #baseUrl: null #basePath: null #method: null #format: null #session: null #locale: null #defaultLocale: "en" -preferredFormat: null -isHostValid: true -isForwardedValid: true -isIisRewrite: false #json: null #convertedFiles: null #userResolver: null #routeResolver: null pathInfo: "/" requestUri: "/" baseUrl: "" basePath: "" method: "GET" format: "html" }

Please Help
output.txt

@andrewdrake andrewdrake self-assigned this Jan 16, 2024
@andrewdrake andrewdrake added bug Something isn't working help wanted Extra attention is needed labels Jan 16, 2024
@andrewdrake
Copy link
Contributor

Can you send me the exception output? Make sure APP_DEBUG=true in your env file

@luisurbinanet
Copy link
Author

luisurbinanet commented Jan 16, 2024 via email

@andrewdrake
Copy link
Contributor

Did you come across any errors while running php artisan laravelcrm:install ?

It seems like the settings table is missing data.

Can you send me a screenshot of the data in your settings table, see this example:

image

@luisurbinanet
Copy link
Author

luisurbinanet commented Jan 17, 2024

Hi Andrew

In response to your questions:

You: Did you come across any errors while running php artisan laravelcrm:install ?
No, It was installed without any issue, It was a fresh install. It works fine and when I login-in and to see the dashboard for first time, it's when the error appear.

You: Can you send me a screenshot of the data in your settings table, see this example:
Sure!

image

I hope that could be useful.

If you wish, I could record a video with the installation process I followed following your instructions, I don't mind doing it again.

Thanks a lot!

@andrewdrake
Copy link
Contributor

Ah I can see the error. There is an API call the package makes to api.laravelcrm.com that checks for any version updates. If you are offline, or firewall blocking the calls, this error can occur. I will deploy a patch to get around this.

If you add this row of data you should get things working for now, the "version_latest" one.

image

@luisurbinanet
Copy link
Author

luisurbinanet commented Jan 17, 2024

Andrew,

Yes Great!, it's work!, so, I would like to translate it to spanish and learn to make some customizations, it's possible publish all packages files?

Aditionaly, I created a line install_id with some numbers like you have.

Kind Regards

@andrewdrake
Copy link
Contributor

Publish views with:
php artisan vendor:publish --provider="VentureDrake\LaravelCrm\LaravelCrmServiceProvider" --tag="migrations"

install id is not required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants