neo4j-php-client icon indicating copy to clipboard operation
neo4j-php-client copied to clipboard

ErrorException: Notice: Undefined index:

Open joaopbnogueira opened this issue 2 years ago • 6 comments

Describe the bug Executing a query in tight loop with increasing offset triggers this exception.

To Reproduce Steps to reproduce the behavior:

  1. Create client with neo4j scheme bolt
  2. Open read transaction
  3. Create a query with limit 1000
  4. Commit transaction
  5. Manually increase the offset
  6. repeat until it errors (or the resulting number of elements < limit).

Issue only happens when we get more results than the limit and we need to keep looping

Expected behavior Be able to call the query in a loop until no more results exist.

Screenshots Screenshot 2023-02-24 at 17 59 53

Desktop (please complete the following information):

  • Library version: 2.8.x - tried them all
  • Neo4j Version: 4.4.14 (enterprise)
  • PHP version: 7.4.33
  • OS: Linux 5.4.0-1086-gke

joaopbnogueira avatar Feb 24 '23 18:02 joaopbnogueira

How can I solve it?

Mahmoud-kamal12 avatar Apr 28 '25 13:04 Mahmoud-kamal12

Maybe it will be worth a shot to try out php 8.1 and latest version of library. To check if the problem persist.

stefanak-michal avatar Apr 28 '25 16:04 stefanak-michal

Fyi not sure if this issue still happens as I'm currently off the project

joaopbnogueira avatar Apr 28 '25 16:04 joaopbnogueira

I use version 2.5 and php 8 and neoelqent 1.8 I have problems 1- many connections with database 2- maxim rows are 1000 only

Mahmoud-kamal12 avatar Apr 28 '25 16:04 Mahmoud-kamal12

NeoEloquent from Vinelab is really outdated. There is a fork which is better at it https://github.com/ulobby/NeoEloquent Because as you can see this library is already ^3.

stefanak-michal avatar Apr 28 '25 16:04 stefanak-michal

this fork use laravel 10 and php 8.1 i use php8 and laravel 8

Mahmoud-kamal12 avatar Apr 28 '25 17:04 Mahmoud-kamal12