Giter Club home page Giter Club logo

Comments (15)

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024 1

I was able to reproduce the problem with a new account. The issue is due to a bug within the protocol buffer library https://github.com/google/protobuf

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

I can't reproduce the problem. Could you provide me with additional details as well as the full stack trace?

from pokemongoapi-php.

baskettcase avatar baskettcase commented on September 18, 2024

How would I go about doing that since this is a fatal error?

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

You can get hold of the trace using xdebug.

  1. Do any of the other examples work?
  2. What version of PHP are you running, 32bit or 64bit?

from pokemongoapi-php.

baskettcase avatar baskettcase commented on September 18, 2024

Ok I took a look at installing it and Im on a shared server so that wont work for xdebug. I tested the RetrievePokemonTraitExample without any of my modifications except for google/user/pass and I still get the same error.

I also tried GUI_BestCpPokemonDetails.php and I get the same error there also.

Im running 64 bit.

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

protocolbuffers/protobuf#2552

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

Try updating the dependencies. I have hopefully fixed the issue in my fork of google/protobuf repo. You might get some notice messages, I'll fix them later.

NicklasWallgren/protobuf@4f29e13

from pokemongoapi-php.

xmillies avatar xmillies commented on September 18, 2024

It goes further.

Some notices in code

Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 2 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 0 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 25 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Notice: Undefined offset: 128787628 in C:\WTServer\WWW\pogo\vendor\nicklasw\protobuf\php\src\Google\Protobuf\descriptor.php on line 158 Warning: unpack() expects parameter 2 to be string, object given in C:\WTServer\WWW\pogo\web\update.php on line 104

Then

Fatal error: Uncaught Error: Call to undefined method POGOProtos\Enums\PokemonId::toString() in C:\WTServer\WWW\pogo\web\update.php:161 Stack trace: #0 C:\WTServer\WWW\pogo\web\update.php(570): MyPogo->updateDataFromNiantic('user', 'password', 'ptc', 'C:\\Users\\admin\\...') #1 {main} thrown in C:\WTServer\WWW\pogo\web\update.php on line 161

I will try with offcial samples.

from pokemongoapi-php.

xmillies avatar xmillies commented on September 18, 2024

RetrievePokemonCandyCountExample.php works πŸ‘

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

The notice message has been suppressed as of 3.1.2 of google/protobuf.

The 'POGOProtos\Enums\PokemonId' class has been replaced with 'NicklasW\PkmGoApi\Api\Support\PokemonId'

And the 'toString' method is now called 'name'

PokemonId::name($id);

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

Can we close this issue?

from pokemongoapi-php.

baskettcase avatar baskettcase commented on September 18, 2024

I get this now:

Fatal error: Call to undefined method POGOProtos\Inventory\AppliedItems::getItemArray() in /home/account/public_html/games/pokemongo/vendor/nicklasw/pkm-go-api/src/Api/Player/Data/Inventory/AppliedItems.php on line 44

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

@baskettcase Fixed in https://github.com/NicklasWallgren/PokemonGoAPI-PHP/tree/v2.0.2

from pokemongoapi-php.

baskettcase avatar baskettcase commented on September 18, 2024

Awesome looks like it works now! It also looks like there are some strange things happening.. maybe a lot has changed. Ill look into it. Thanks again for getting this fixed!

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on September 18, 2024

Resolved.

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.