Code Monkey home page Code Monkey logo

Comments (12)

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024 1

@sensityy Update the dependencies

composer update

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

You might want to check the PHP error log of your server what the problem is.

from pokemongoapi-php.

sensityy avatar sensityy commented on August 11, 2024

I'm getting this error

[Fri Aug 05 10:18:08.073432 2016] [:error] [pid 1420] [CLIENT] PHP Fatal error: require(): Failed opening required '/var/www/html/PokemonGoAPI-PHP/examples/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/PokemonGoAPI-PHP/examples/RetrievePlayerStatsExample.php on line 3 I have installed with composer

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

You do have the file /var/www/html/PokemonGoAPI-PHP/vendor/autoload.php (and the web server process can access it?

from pokemongoapi-php.

sensityy avatar sensityy commented on August 11, 2024

I only have example files in the folder, this is the root structure.

https://gyazo.com/c9d0ed977a241570c72410508822e883

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

So, what's in the vendor folder?

from pokemongoapi-php.

sensityy avatar sensityy commented on August 11, 2024

https://gyazo.com/3531ffc680613c4654c1cca13ce82ae4 these

and this is the autoload.php file

`<?php

// autoload.php @generated by Composer

require_once DIR . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit413b91017c9ef58e1d182eb2c060fa08::getLoader();
`

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

Still looks like a permission problem to me. Normally you should get additional PHP warnings before the fatal error about the reason for the fatal error. Might be helpful to temporarily turn on display_errors to see all the output.

from pokemongoapi-php.

sensityy avatar sensityy commented on August 11, 2024

Apparently it invisible space in my $application = new ApplicationKernel - it works, sorta now. Now im getting Parse error: syntax error, unexpected 'ECHO' (T_ECHO), expecting identifier (T_STRING) in /var/www/html/PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Requests/RequestType.php on line 76

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

Damn, too slow, exactly that.

from pokemongoapi-php.

sensityy avatar sensityy commented on August 11, 2024

Many many thanks! You guys rock! :-) πŸ‘

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024

@Ni42 Better luck next time ;)

from pokemongoapi-php.

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.