[Radiant] undefined method `publish_associations' for class `Page'
Sean Cribbs
seancribbs at gmail.com
Sat Mar 22 17:26:41 CDT 2008
Jim,
It seems that bug has been removed from the trunk version of the
extension, but the extension has not been updated for 0.6.5. You should
be safe to use it, but you might want to "freeze" the extension to the
current revision using Piston or something like that. We may be
updating the views in the near future.
Sean
Jim Gay wrote:
> It points to line 16 of the
> related_content/lib/related_content/page_extensions.rb
> I've pasted the trace below the previous emails.
> Thanks for the help, Sean.
>
> On Mar 22, 2008, at 12:56 PM, Sean Cribbs wrote:
>
>> Jim,
>>
>> That's a stray artifact of something I did for Digital Pulp. Can you
>> give me a line number on which that occurs? Run the rake task with
>> --trace.
>>
>> Sean
>>
>> Jim Gay wrote:
>>> I'm adding extensions to a new instance of radiant and, when running
>>> "rake db:migrate:extensions", getting the error
>>> undefined method `publish_associations' for class `Page'
>>>
>>> Important info:
>>> version 0.6.4
>>>
>>> I've set:
>>> config.extensions = [ :shards, :all ]
>>>
>>> And I have these extensions from release 0.6.4:
>>> import_export, related_content, sass_filter, search, mailer,
>>> reorder, scheduler, shards
>>>
>>> The only reference to an error with publish_associations I can find
>>> is this thread from November of 2007.
>>>
>>> http://groups.google.com/group/radiantcms-dev/browse_thread/thread/9b0f429d27040133/cbb98784241b126c?lnk=gst&q=publish_associations#cbb98784241b126c
>>>
>>>
>>> I can paste the full stack trace if need be, but does anyone know
>>> what the problem is?
>>>
>>> -Jim
>
> -bash-3.00$ rake production db:migrate:extensions --trace
> (in /export/home/radiant/siteaddress.com)
> ** Invoke production (first_time)
> ** Execute production
> ** Invoke environment (first_time)
> ** Execute environment
> rake aborted!
> undefined method `publish_associations' for class `Page'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/module/aliasing.rb:28:in
> `alias_method'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/module/aliasing.rb:28:in
> `alias_method_chain'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/lib/related_content/page_extensions.rb:16:in
> `included'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/lib/related_content/page_extensions.rb:3:in
> `class_eval'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/lib/related_content/page_extensions.rb:3:in
> `included'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/related_content_extension.rb:12:in
> `include'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/related_content_extension.rb:12:in
> `send'
> /export/home/radiant/siteaddress.com/vendor/extensions/related_content/related_content_extension.rb:12:in
> `activate'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension.rb:39:in
> `activate'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension_loader.rb:118:in
> `activate'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension_loader.rb:106:in
> `activate_extensions'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension_loader.rb:97:in
> `select'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension_loader.rb:97:in
> `activate_extensions'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/extension_loader.rb:42:in
> `run'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/initializer.rb:45:in
> `initialize_extensions'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/initializer.rb:38:in
> `after_initialize'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/railties/lib/initializer.rb:118:in
> `process'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/railties/lib/initializer.rb:47:in
> `send'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/railties/lib/initializer.rb:47:in
> `run'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/radiant/initializer.rb:34:in
> `run'
> /export/home/radiant/siteaddress.com/config/../config/environment.rb:15
> /opt/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> /opt/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/vendor/rails/railties/lib/tasks/misc.rake:3
>
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
> `invoke_with_call_chain'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `synchronize'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `invoke_with_call_chain'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
> /opt/ruby/lib/ruby/gems/1.8/gems/radiant-0.6.4/lib/tasks/environments.rake:10
>
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
> `invoke_with_call_chain'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `synchronize'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
> `invoke_with_call_chain'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
> `invoke_task'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
> `top_level'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
> `top_level'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
> `standard_exception_handling'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in
> `top_level'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
> `standard_exception_handling'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
> /opt/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
> /opt/ruby/bin/rake:16:in `load'
> /opt/ruby/bin/rake:16
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>
More information about the Radiant
mailing list