Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Shane Celis
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-08-23 23:41
Awesome. Thanks. This worked for me also. I was using an awful workaround where I would just reset my production server after every change--painful!

By: Johannes Vanderknyff
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-05-14 18:30
This also works for me on instiki trunk with Ubuntu.

By: Greg Tillbrook
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-05-11 01:09
Hi, I've also been having this problem but think I've found a workaround. Incidentally I'm using 0.11pl1 with rails 1.2.3, ruby 1.8.6 on WinXP.

After reading this thread I tried updating gems with no joy. I was however able to find another Chinese blog article that was slightly less cryptic when translated; http://translate.google.com/translate?u=http%3A%2F%2Fgaelen999.gjjblog.com%2Findex.php&langpair=zh%7Cen&hl=en&ie=UTF8

Based on that I tried editing wiki_content.rb and changing each reference of 'require_dependency' to 'require' and after a server restart everything seems to be working for me now.

I should state that I'm new to Ruby\Rails and there may be problems I've not foreseen with this workaround? However looking at some info at http://wiki.rubyonrails.com/rails/pages/RequireDependency it seems require_dependency just forces extra file reloading in dev mode and so the change should be fairly safe. Perhaps this is why we don’t see the issue in production mode?

Hope this helps as a temporary workaround.

Cheers, Greg

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-05-07 22:51
Is there anything specific that you did to your install? I'm running on OSX and am no longer having the problems - after doing 'gem update', which updated 'fastthread' to 1.0 from 0.6.4.1.

You should also be using the rails version that is linked to in the repository.. under instiki/vendor/rails .

Let me know if you are still having the problem and I can try to help you further.

By: David Welton
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-30 13:59
I tried updating all my gems, but it doesn't seem to have changed much. I'm running on the latest stable rails, with Ruby 1.8.5, on Ubuntu Feisty.

I tried running in the production environment, and things seem to work there, so I suspect that it's rails doing something funky in the development environment.

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-30 13:52
I struggled with this problem for a bit, but when I updated my related gems, it went away. The one I noticed was fastthreads (or something).

Try a global gem update and see if it solves your problem. I did find a few posts about a similar issue being a bug in one of the rails packages, but could never specifically isolate it.

By: David Welton
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-30 11:56
I tried changing the name of the class in chunks/wiki.rb to something else, and it appears to be the one with problems, even with a different name.

By: David Welton
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-30 10:13
This seems potentially relevant:

http://moof.wieldim.com/2006/11/03/rails-superclass-mismatch/

By: David Welton
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-30 09:42
It seems that there are indeed two WikiReference classes, one here:

app/models/wiki_reference.rb
class WikiReference < ActiveRecord::Base

and one here:

lib/chunks/wiki.rb
class WikiReference < Chunk::Abstract

That sounds like a bad idea to me...

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-11 12:59
This problem seems to have disappeared, might be related to an outdated fastthread gem. Whatever the reason, it's working now.

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-10 04:07
Did a little digging into this, and found that the instiki/vendor/rails version *seems* to be causing my problem when running instiki from trunk.

When I run instiki-0.11.0 (from svn) everything seems to work correctly.

When I use the instiki-0.11.0/vendor/rails directory in instiki-trunk, I no longer have the 'superclass mismatch for WikiReference' problem (run into a javascript problem, but that's much easier to deal with).

When I dropped the instiki-trunk/vendor/rails directory into instiki-0.11.0, I ran into the 'superclass mismatch' problem again.

So it seems to be related to the rails distro. If no one else is seeing a problem, it might be isolated to osx.

Found a note on ruby-forum about it - apparently others saw a similar problem a little while ago: http://www.ruby-forum.com/topic/53563#30458 and it was fixed for rails.

I tried updating to trunk for rails, and still had the problem. I'll dig into it a little more later.

By: Matthias Tarasiewicz
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 21:10
matt - great to hear, you got it working finally. i am researching on the problem you reported. please keep reporting any issues and feedback, you can use http://dev.instiki.org for reporting bugs.
maybe you can also fix stuff yourself, you might want to attach a patch in this case.

hope to hear from you,
matthias

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 20:28
I am able to run instiki for the 0.11pl1 release. It seems this problem only occurs when running with the latest source files from trunk..

I will wait for the 0.12 release before trying my luck with trunk again.

Thanks for the help Matthais.

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 20:15

I was using svn trunk.. I'll try 0.11pl1, see if that helps.

By: Matthias Tarasiewicz
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 20:09
which version of instiki are you unsing? 0.11.pl1 or the current svn trunk version?

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 19:43
hmm.. I upgraded to ruby 1.8.6 and rubygems 0.9.2, ran 'rake', then restarted 'script/server -e development' and had the same problem:

1. Surf to http://localhost:2500/wiki
2. Click 'edit page'
3. Click 'edit page anyways' (locked by me before)
4. Enter some random text.
5. Hit submit (as AnonymousCoward)

Then I'm left on the same page, with "superclass mismatch for class WikiReference" as an error message above the text box.

The server logs don't say much...

http://localhost:2500/wiki/locked/HomePage -> /wiki/edit/HomePage?break_lock=1
127.0.0.1 - - [08/Apr/2007:15:40:19 EDT] "POST /wiki/save/HomePage HTTP/1.1" 302 106
http://localhost:2500/wiki/edit/HomePage?break_lock=1 -> /wiki/save/HomePage
127.0.0.1 - - [08/Apr/2007:15:40:19 EDT] "GET /wiki/edit/HomePage HTTP/1.1" 200 5806
http://localhost:2500/wiki/edit/HomePage?break_lock=1 -> /wiki/edit/HomePage

I'll keep plugging away. Maybe I'll try rebuilding from scratch knowing that I've just upgraded ruby from 1.8.5 to 1.8.6.

By: Matthias Tarasiewicz
RE: problem: "superclass mismatch for class..." [ reply ]  
2007-04-08 18:46
hello matt, thanks for your report. can you tell me how to reproduce this problem?
i'm not getting anything like that. i am using ruby 1.8.6, rubygems 0.9.2, rails from the instiki distribution.
thanks, matthias

By: Matt MacGillivray
RE: problem: "superclass mismatch for class.. [ reply ]  
2007-04-08 18:26
Note - I found a reference to the same problem with instiki here - http://translate.google.com/translate?hl=en&sl=zh-CN&u=http://darrh00.blogspot.com/2006/11/superclass-mismatch-for-class.html&sa=X&oi=translate&resnum=1&ct=result&prev=/search%3Fq%3D%2522superclass%2Bmismatch%2Bfor%2Bclass%2BWikiReference%2522%26hl%3Den%26sa%3DG but the solution seems to be lost in the translation.

By: Matt MacGillivray
problem: "superclass mismatch for class..." [ reply ]  
2007-04-08 18:13

I just downloaded the source, compiled and am running through eclipse. I'm relatively new to ruby so some of these error messages are a little cryptic...

I was able to run, view and edit the homepage. However, when I save the page, I see the error "superclass mismatch for class WikiReference" and am left in 'edit' mode.

I suspect it's a versioning issue - I hear there is a problem like this with rails 1.2.2, so I upgraded to rails 1.2.3. What versions should I be running with in order to get it working? Has anyone else experienced this problem?

Here are the details of my environment (on the latest version of OSX):


> ./script/about
About your application's environment
Ruby version 1.8.5 (i686-darwin8.8.2)
RubyGems version 0.9.0
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2
Edge Rails revision 6504
Application root /Users/qmnonic/dev/instiki
Environment development
Database adapter mysql
Database schema version 2


Any help would be great. I'd love to get it running and contribute to the project if I could.

Thanks.