Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"__setMeta" of class "__PHP_Incomplete_Class" #112

Open
ander7agar opened this issue Feb 3, 2017 · 3 comments
Open

"__setMeta" of class "__PHP_Incomplete_Class" #112

ander7agar opened this issue Feb 3, 2017 · 3 comments

Comments

@ander7agar
Copy link

A long time ago I use this library in some of my projects with Neo4j. The little time of using it, this error began to appear in some of the functions that I have implemented. The error appears when I try to get multiple nodes of the same tag, but does not always appear. Only sometimes. The problem I have is that this function is executed to display certain data to the user and at the times that it fails nothing is displayed. Here I put the error which I have captured in the log:

[2017-02-03 12:44:31] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "__setMeta" of class "__PHP_Incomplete_Class"." at /home/api/api/vendor/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Proxy/Factory.php line 68 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedMethodException(code: 0): Attempted to call an undefined method named \"__setMeta\" of class \"__PHP_Incomplete_Class\". at /home/api/api/vendor/hirevoice/neo4jphp-ogm/lib/HireVoice/Neo4j/Proxy/Factory.php:68)"} []

I have been trying to fix the error since August 2016 and already I give up.

@lphuberdeau
Copy link
Owner

This is definitely strange. Looks like it may be cache-related. __PHP_Incomplete_Class points towards towards unserialization.

The library is badly outdated as I have not worked on it in years. Have you tried updating the Doctrine dependencies?

@ander7agar
Copy link
Author

Yes, I use:

doctrine/orm                         v2.5.6             Object-Relational-Mapper for PHP
doctrine/doctrine-bundle             1.6.7              Symfony DoctrineBundle
doctrine/doctrine-cache-bundle       1.3.0              Symfony Bundle for Doctrine Cache

@ikwattro
Copy link
Contributor

ikwattro commented Apr 9, 2017

@ander7agar Proxies are not autoloaded in debug mode, you would have to create an autoloader for them in the boot method of your main Bundle.

References :

graphaware/neo4j-php-ogm#122

symfony/symfony#3907

doctrine/DoctrineMongoDBBundle#85

ikwattro/neo4j-ogm-symfony-security@b7a8581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants