Hello Radiant list,

I'm going through the online tutorial on creating extensions and am getting errors. I've tried creating the extension with a project using the Sqlite3 adaptor (project_1) and with another project using the PostgeSQL adaptor (project_2). Both give errors, albeit different ones. Project 1 gives errors when I try to run the migration. Project 2 gives errors when I attempt to generate the extension. Below are the error messages. (I'm doing this on a Leopard system.)

Any advice would be much appreciated.

Thank you,
Jose

The Sqlite3 error:

[mb2:CMS/radiant/project_1] hg% rake db:migrate:extensions --trace
(in /Users/hg/Sites/Rails/CMS/radiant/project_1)
** Invoke db:migrate:extensions (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate:extensions
rake aborted!
Could not find table 'extension_meta'
/Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/connection_adapters/sqlite3_adapter.rb:29:in `table_structure' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/core_ext/object/misc.rb: 28:in `returning' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/connection_adapters/sqlite3_adapter.rb:28:in `table_structure' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/connection_adapters/sqlite_adapter.rb:189:in `columns' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1080:in `columns' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1093:in `column_names' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1106:in `column_methods_hash' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1555:in `all_attributes_exists?' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/inflector.rb:257:in `all?' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1555:in `each' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1555:in `all?' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1555:in `all_attributes_exists?' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/base.rb:1506:in `method_missing' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/extension.rb: 56:in `meta' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/extension.rb: 27:in `meta' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_migrator.rb:38:in `current_version' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/migration.rb:414:in `irrelevant_migration?' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/migration.rb:345:in `migrate_without_extension_support' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/migration.rb:339:in `each' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/migration.rb:339:in `migrate_without_extension_support' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_migrator.rb:33:in `migrate' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_migrator.rb:6:in `migrate_extensions' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_migrator.rb:5:in `each' /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_migrator.rb:5:in `migrate_extensions'
/Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/tasks/extensions.rake:8
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ 1.8/monitor.rb:242:in `synchronize' /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19


The PostgreSQL error:

[mb2:CMS/radiant/project_2] hg% script/generate extension LinkRoll
/Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/ lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log': PGError: ERROR: relation "pages" does not exist (ActiveRecord::StatementInvalid) : SELECT DISTINCT class_name FROM pages WHERE class_name <> '' AND class_name IS NOT NULL from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/ vendor/rails/activerecord/lib/active_record/connection_adapters/ postgresql_adapter.rb:407:in `execute' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/ activerecord/lib/active_record/connection_adapters/ postgresql_adapter.rb:782:in `select_raw' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/ activerecord/lib/active_record/connection_adapters/ postgresql_adapter.rb:384:in `select_rows' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/ activerecord/lib/active_record/connection_adapters/abstract/ database_statements.rb:27:in `select_values' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/app/models/page.rb: 195:in `load_subclasses' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ extension_loader.rb:96:in `activate_extensions' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ initializer.rb:110:in `after_initialize' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/railties/ lib/initializer.rb:114:in `process' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/railties/ lib/initializer.rb:49:in `send' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/vendor/rails/railties/ lib/initializer.rb:49:in `run' from /Library/Ruby/Gems/1.8/gems/radiant-0.6.9/lib/radiant/ initializer.rb:89:in `run' from /Users/hg/Sites/Rails/CMS/radiant/project_2/config/ environment.rb:12 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
        from script/generate:3
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to