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

Loading deleted object causes critical internal error #199

Open
flack opened this issue Mar 30, 2013 · 1 comment
Open

Loading deleted object causes critical internal error #199

flack opened this issue Mar 30, 2013 · 1 comment
Assignees
Milestone

Comments

@flack
Copy link
Member

flack commented Mar 30, 2013

To reproduce:

$t = new midgard_topic();
$t->create();
$t->delete();
$t = new midgard_topic($t->id);
echo midgard_connection::get_instance()->get_error_string();

Expected result:

"Object does not exist."

Actual result:

Fatal error: Uncaught exception 'midgard_error_exception' with message 'Critical internal error.Object doesn't exist'
@flack
Copy link
Member Author

flack commented Mar 30, 2013

Also, the error code is wrong, it says MGD_ERR_INTERNAL, but it should be MGD_ERR_NOT_EXISTS

@ghost ghost assigned piotras Apr 2, 2013
piotras added a commit to piotras/midgard-core that referenced this issue Apr 2, 2013
piotras added a commit to piotras/midgard-core that referenced this issue Apr 2, 2013
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

2 participants