Problem installing extension page_attachments

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all :slight_smile: (newbie at radiant here)

I tried

$ script/extension install page_attachments

It fails running the migrations, like these:

$ rake db:migrate:extensions
(in /home/gomix/radiant)
rake aborted!
undefined method `has_attachment’ for PageAttachment(Table doesn’t
exist):Class

(See full trace by running task with --trace)

The extension rake task should actually create the table, does someone
whats going on here?

regards

Guillermo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX
=FJ5b
-----END PGP SIGNATURE-----

I tried this with the 0.70rc, and script/extension install doesn’t seem
to do anything for me. Is it disabled in the RC?

–cro

----- Original Message -----
From: “Guillermo Gómez” [email protected]
To: [email protected]
Sent: Thursday, January 8, 2009 4:29:25 PM GMT -07:00 US/Canada Mountain
Subject: [Radiant] problem installing extension page_attachments

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all :slight_smile: (newbie at radiant here)

I tried

$ script/extension install page_attachments

It fails running the migrations, like these:

$ rake db:migrate:extensions
(in /home/gomix/radiant)
rake aborted!
undefined method `has_attachment’ for PageAttachment(Table doesn’t
exist):Class

(See full trace by running task with --trace)

The extension rake task should actually create the table, does someone
whats going on here?

regards

Guillermo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAklmjFUACgkQcSOFtc3tqRWMnQCgpcTqpWFQRG3VCoh9Mi/r7811
wsoAn0NVuprHj4G0hfTTvD/iuZuNnudX
=FJ5b
-----END PGP SIGNATURE-----


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant

I’m not certain about the 0.7RC script/extension problem, but if you’re
using 0.6.9, and use script/extension install, go into
vendor/extensions/page_attachments and run this:

git reset --hard 0.6.9

This will put the extension back onto a (hopefully) 0.6.9-compatible
version. Now run git submodule init && git submodule update to get
attachment_fu, and then run rake db:migrate:extensions radiant:extensions:update_all from the root of your project.

Going forward, we should be adding support for selecting specific
tags/forks/etc from the extension installer. I’m going to reiterate my
call for contributions to the extension registry. It essentially hasn’t
changed since I deployed it in August.

Sean

On Thu, Jan 8, 2009 at 5:50 PM, Sean C. [email protected]
wrote:

Going forward, we should be adding support for selecting specific
tags/forks/etc from the extension installer. I’m going to reiterate my call
for contributions to the extension registry. It essentially hasn’t changed
since I deployed it in August.

Sean, I had to go back to 81124e93 to get page_attachments to work
properly.
The very next commit broke the ability to destroy page_attachments. I
think
it was the changes in the model “page_attachment_associations.rb” that
removed both the :delete_attachments and :destroy_attachment attribute
accessors. I tried a number of releases and 81124e93 was the first that
worked exactly as it was supposed to.

That my experience any way. I spent a lot of time trying to get this to
work
and nothing more recent would.

~Nate

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sean C. wrote:

I’m not certain about the 0.7RC script/extension problem, but if you’re
using 0.6.9, and use script/extension install, go into
vendor/extensions/page_attachments and run this:

git reset --hard 0.6.9

This will put the extension back onto a (hopefully) 0.6.9-compatible
version. Now run git submodule init && git submodule update to get
attachment_fu, and then run rake db:migrate:extensions radiant:extensions:update_all from the root of your project.

step2 gives me this:

$ git submodule init && git submodule update
Submodule ‘vendor/plugins/attachment_fu’
(git://github.com/technoweenie/attachment_fu.git) registered for path
‘vendor/plugins/attachment_fu’
Initialized empty Git repository in
/home/gomix/radiant/vendor/extensions/page_attachments/vendor/plugins/attachment_fu/.git/
remote: Counting objects: 1479, done.
remote: Compressing objects: 100% (645/645), done.
remote: Total 1479 (delta 792), reused 1462 (delta 784)
Receiving objects: 100% (1479/1479), 215.36 KiB | 96 KiB/s, done.
Resolving deltas: 100% (792/792), done.
error: pathspec ‘42a37fab15c6d1dacc6043ee40b25de12b63ac04’ did not match
any file(s) known to git.
Unable to checkout ‘42a37fab15c6d1dacc6043ee40b25de12b63ac04’ in
submodule path ‘vendor/plugins/attachment_fu’

stopped there until further feedback for step 3 (rake)

and yes, im using

$ gem list radiant

*** LOCAL GEMS ***

radiant (0.6.9)

seem to do anything for me. Is it disabled in the RC?

exist):Class

(See full trace by running task with --trace)

The extension rake task should actually create the table, does someone
whats going on here?

regards

Guillermo


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAklmk+QACgkQcSOFtc3tqRU2VACgnfik1hp0GiurUQfrlI2WwUrS
hPUAoIEpFuNBoPSvfyrG5a6QsxZlwgKC
=oVtt
-----END PGP SIGNATURE-----

Thanks, Nate, I’ll re-tag the repo.

Sean