From: Chris W. <ch...@cw...> - 2003-05-04 17:20:35
|
Steve Sapovits wrote: >> I did some upgrading (TT and SPOPS) and now get this instead of the >> main page: >> >> Can't locate object method "id" via package "feeds::User" (perhaps >> you forgot to load "feeds::User"?) at >> /usr/local/lib/perl5/site_perl/5.6.1/OpenInteract/Auth.pm line 36. >> >> 'feeds' is my site name. I see a feeds::Handler::User package in >> feeds/tmplib, but can't find any references that indicate what >> might be configured wrong. Did you try to rename your website as part of the upgrade? This error indicates that the SPOPS class for the user object was not either not properly built or was built under a different name. > This went away when I flushed my browser cache. I assume there was > some cookie set with the old version that's incompatible with the new? If configured OI will do some object caching in a session for the 'user', 'groups' and 'theme' objects. If you flush your browser's cache (delete the cookie referring to a session) there's no danger of the session object and the object OI thinks it should have getting out of sync. BTW: If you're debugging it may be a good idea to turn this off. Just set the different 'session_info.cache_*' keys to 0. > But this leads to another error. I'm using the Apache set-up with a > modperl backend and a lightweight front end Apache server. The modperl > server is getting this error now: > > --EXITED WITH ERROR from main handler eval block > Error: Can't locate object method "throw" via package > "feeds::ErrorObject" (perh > aps you forgot to load "feeds::ErrorObject"?) at > /usr/local/lib/perl5/site_perl/ > 5.6.1/OpenInteract/Error.pm line 94. > > Again, I see now feeds::ErrorObject package anywhere even though that's > in the default server.ini configuration. I can't leave this empty or I > get a similar error: This sounds like the same type of error as above. Can you look in your server error logs (not the vhost error logs) and see if OI is complaining about anything at startup? The errors get placed in the server because generating SPOPS classes is part of the ChildInitHandler phase, before the vhost is entirely initialized. Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |