Forums » Alpha Release Candidate

RC3: Error Class does not exist

(13 posts)
  • Started 11 months ago by mtebeau
  • Latest reply from kyleroth
  • This topic is closed
  • This topic is resolved
  1. 11 months ago # | |

    Ok. So, we're experimenting with creating collections (successfully) and have been trying to add items to our archive (we have been able to change the metadata for the items). However, for some reason, we cannot add any items to the archive.

    We get a message "Error: Class does not exist" underneath the "Find a File" box.
    What might we have going wrong here?

  2. 11 months ago # | |

    Hi, I've been looking into that to see if I can duplicate the error. Right now the error that the application is giving you is a bit too vague for me to be able to figure out. One way to get some more detailed info would be to turn on debugging, which you can do like this:

    go to the root of the application
    open up the file: application/config/config.ini
    change the value 'debug.exceptions' from false to true

    Then load up Omeka in your browser and do the exact same thing you did before to get that error. Hopefully it should give a more detailed error message.

  3. 11 months ago # | |

    After adding the debug.exceptions = true, I get the following:

    Error:Class does not exist#0 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Table.php(212): ReflectionClass->__construct(true)
    #1 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Connection.php(895): Doctrine_Table->__construct('File', Object(Doctrine_Connection_Mysql))
    #2 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Relation/Parser.php(233): Doctrine_Connection->getTable('File')
    #3 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Relation/Parser.php(353): Doctrine_Relation_Parser->getImpl('File')
    #4 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Relation/Parser.php(172): Doctrine_Relation_Parser->completeDefinition(Array)
    #5 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Table.php(575): Doctrine_Relation_Parser->getRelation('Files', true)
    #6 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Record.php(798): Doctrine_Table->getRelation('Files')
    #7 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/Record.php(249): Doctrine_Record->get('Files')
    #8 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/models/Item.php(197): Omeka_Record->get('Files')
    #9 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Doctrine/Access.php(75): Item->get('Files')
    #10 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/helpers/Functions.php(673): Doctrine_Access->__get('Files')
    #11 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/admin/themes/default/items/form.php(159): has_files(Object(Item))
    #12 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/admin/themes/default/items/add.php(9): include('/usr/www/users/...')
    #13 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/View.php(147): include('/usr/www/users/...')
    #14 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Zend/View/Abstract.php(768): Omeka_View->_run('/usr/www/users/...')
    #15 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/View.php(184): Zend_View_Abstract->render('items/add.php')
    #16 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/Controller/Action.php(557): Omeka_View->render('items/add.php')
    #17 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/Controller/Action.php(474): Omeka_Controller_Action->render('items/add.php', Array)
    #18 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Zend/Controller/Action.php(497): Omeka_Controller_Action->addAction()
    #19 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('addAction')
    #20 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #21 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/application/libraries/Omeka/Controller/Front.php(40): Zend_Controller_Front->dispatch()
    #22 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/dispatch.php(2): Omeka_Controller_Front->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #23 /usr/www/users/epsteini/epsteindesign/sandbox/omeka/admin/index.php(27): require_once('/usr/www/users/...')
    #24 {main}

  4. 11 months ago # | |

    Ok, thanks for the info. I'm still working on figuring it out. Could you give me more info on your server configuration, like what version of Linux, PHP, Apache, etc. are you running?

  5. 11 months ago # | |

    UNIX server with PHP Version 5.2.4, Apache/2.2.4, mysql 5.0.41.

    Here is the PHP info:
    http://epsteininteractive.com/info.php

  6. 11 months ago # | |

    Hi, I apologize but so far I've not been able to figure this problem out. I can't seem to duplicate it in any of our testing environments. I'm inclined to think that it is an obscure bug in some 3rd-party software that is used by Omeka. We are getting rid of that particular piece of software though, so by the next release it probably won't be an issue anymore.

  7. 10 months ago # | |

    I tried to re-install, tried to install rc2, and still get the same error. Maybe it is something to do with my web host? The server meets all of the requirements. hmmm.

  8. 10 months ago # | |

    My webhost is Pair Networks and when I inquired about the server settings, I got the following responses:

    kyleroth: [is] the ReflectionClass is enabled?
    pair: I am not familiar with this myself, but phpinfo says:
    Reflection enabled
    Version $Id: php_reflection.c,v 1.164.2.33.2.39 2007/05/29 08:44:05
    helly Exp $

    Then I explained what I am trying to do (set up omeka) and got the following response:

    pair: The error appears to be a coding error. It's not a standard PHP error, and it's not a module or library failure. The error is in the Omeka code
    itself.

    So maybe the next release will cure this?

  9. 10 months ago # | |

    Yes that jives with my original hunch. That bug is in a piece of 3rd party software we were using for database management, but we've gotten rid of that software in the upcoming release, so it shouldn't be a problem after that. Regardless of what Pair Networks says, I think it results from a combination of server configuration and software quirks, as we have been unable to get the same error on any of our testing equipment.

    Hope that helps.

  10. 9 months ago # | |

    RC4 has helped solve the initial problem. Now when I try to upload an asset, I get an error...

    Fatal error: Call to undefined method File::handleuploaderrors() in /omeka-rc4/application/models/Item.php on line 238

  11. 9 months ago # | |

    Ok, it's possible that some other php extension is loaded that could be causing problems, but I'm still not sure what.

    Do me a favor, and open up your index.php file in the root of the application. At the top, right after the opening php bracket, put the following:

    var_dump( get_declared_classes() );
    var_dump( get_loaded_extensions() );exit;

    Then load up your omeka installation in your browser, and send me the output from that.

  12. Hey Kyle,

    Just checking in to see that you've been able to resolve this problem.

    Best,
    Dave Lester

  13. 8 months ago # | |

    We did resolve this problem. Thank you.

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.