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

ClassNotFoundException Filestore not found or class not saved with file! (Trac #2061) #2061

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 4 comments
Labels
Milestone

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/2061 on 40284012-08-09 by trac user jtilson, assigned to unknown.

Elgg version: 1.7

This error popped up out of nowhere and is occuring when trying to upload a file through the files plugin or a photo through Tidypics.

I've had a chat with Brett about this and he had me add some debug output to the filestore.php, we grabbed the guid and checked the metadata and turns out the filestore::filestore data was missing, but instead was trying to load the filestore::dir_root as a class.

@elgg-gitbot
Copy link
Author

cash wrote on 40305960-04-16

At a minimum - add a better error message to assist admin in debugging this.

@elgg-gitbot
Copy link
Author

Milestone changed to Elgg 1.7.2 by cash on 40305960-04-16

@elgg-gitbot
Copy link
Author

brettp wrote on 40384981-08-11

For the record, to correct this problem you need to do run:

$bad_entity = get_entity($bad_entity_guid);
$bad_entity->setMetadata('filestore::dir_root', $CONFIG->dataroot);
$bad_entity->setMetaData('filestore::filestore', 'ElggDiskFilestore');

@elgg-gitbot
Copy link
Author

cash wrote on 40505492-03-26

(In [svn:6624]) Fixes #2061 - missing filestore metadata causes fallback to default filestore rather than exception. If a bad filestore is specified, throw useful exception message

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

No branches or pull requests

1 participant