Giter Site home page Giter Site logo

Comments (7)

arkaitzgarro avatar arkaitzgarro commented on July 20, 2024

Could you try composer require arkaitzgarro/elastic-apm-laravel --no-scripts?

from elastic-apm-laravel.

ivus84 avatar ivus84 commented on July 20, 2024

hello @arkaitzgarro , i had the same issue and the installation seems to be solved by using --no-scripts.
btw the component makes php artisan config:cache command fail

root@ip-172-26-2-29:/var/www/******# php artisan config:cache

TypeError

Return value of AG\ElasticApmLaravel\ServiceProvider::getAppConfig() must be of the type array, null re
turned

at vendor/arkaitzgarro/elastic-apm-laravel/src/ServiceProvider.php:231
227▕ if ($this->app->bound(VersionResolver::class)) {
228▕ $config['appVersion'] = $this->app->make(VersionResolver::class)->getVersion();
229▕ }
230▕
➜ 231▕ return $config;
232▕ }
233▕
234▕ private function isAgentDisabled(): bool
235▕ {

can u please find a solid solution ?
regards
I

from elastic-apm-laravel.

ivus84 avatar ivus84 commented on July 20, 2024

hello , any news about this ?

from elastic-apm-laravel.

arkaitzgarro avatar arkaitzgarro commented on July 20, 2024

Can you try publishing the configuration file, and clearing the cache after?

php artisan vendor:publish --tag=config

from elastic-apm-laravel.

ivus84 avatar ivus84 commented on July 20, 2024

running the command makes the "compiler" fail again. for the moment, I manually copied into the config folder the elastic-apm-laravel.php file, THEN I installed the plugin. doing this way seems to work. I hope it will help, but i guess there is room for improvement. regards. I

from elastic-apm-laravel.

arkaitzgarro avatar arkaitzgarro commented on July 20, 2024

Thanks for letting us know. We'll investigate further if it keeps happening.

from elastic-apm-laravel.

amrishkakadiya avatar amrishkakadiya commented on July 20, 2024

Try with deleting app/bootstrap/cache and try again, This solved my issue.

from elastic-apm-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.