Comments (15)
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.
I can't reproduce the problem. Could you provide me with additional details as well as the full stack trace?
from pokemongoapi-php.
How would I go about doing that since this is a fatal error?
from pokemongoapi-php.
You can get hold of the trace using xdebug.
- Do any of the other examples work?
- What version of PHP are you running, 32bit or 64bit?
from pokemongoapi-php.
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.
from pokemongoapi-php.
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.
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.
RetrievePokemonCandyCountExample.php works π
from pokemongoapi-php.
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.
Can we close this issue?
from pokemongoapi-php.
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.
@baskettcase Fixed in https://github.com/NicklasWallgren/PokemonGoAPI-PHP/tree/v2.0.2
from pokemongoapi-php.
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.
Resolved.
from pokemongoapi-php.
Related Issues (20)
- Exception about reading the full length HOT 1
- Call to a member function getOptions() on null HOT 5
- Update vendor/nicklasw/pkm-go-api/src/Api/Pokemon/Data/PokemonMetaRegistry.php HOT 6
- Where did getType1String() go? HOT 2
- More problems with move sets and pokemon types. HOT 9
- PokΓ©mon Go 0.51.2 API using public hashing server HOT 2
- User Profile Details HOT 4
- When retrieving pokedex new baby eggs are missing HOT 2
- Authentification Exception (sometimes) HOT 3
- Hashing Server HOT 5
- language problem HOT 3
- Fatal error: Uncaught Exception: Retrieved a unknown status code 100 HOT 22
- Retrieved a invalid response. Response code: '403' HOT 2
- Slack and Status update? HOT 2
- Composer not run HOT 4
- Laravel begginer problem HOT 1
- Even after installing composer I'm getting the same error
- 403 Forbidden
- api credentials HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pokemongoapi-php.