tdm00 / cfwheels-dbmigrate-plugin

ColdFusion on Wheels DBMigrate plugin fork
https://github.com/tdm00/cfwheels-dbmigrate-plugin/wiki
21 stars 19 forks source link

Issue Installing on 1.1.7 #49

Closed SimeonC closed 12 years ago

SimeonC commented 12 years ago

I've been trying to install the dbmigrate on my current site and currently it doesn't install, every time I get the error:

Message invalid component definition, can't find plugins.talltroym.talltroym Stacktrace The Error Occurred in /Users/simeon/Sites/billings/wheels/Plugins.cfc: line 125 123: <cfset loc.wheelsVersion = SpanExcluding(variables.$class.wheelsVersion, " ")> 124: <cfloop collection="#loc.plugins#" item="loc.iPlugins"> 125: <cfset loc.plugin = createobject("component", $componentPathToPlugin(loc.iPlugins)).init()> 126: <cfif not StructKeyExists(loc.plugin, "version") OR ListFind(loc.plugin.version, loc.wheelsVersion) OR variables.$class.loadIncompatiblePlugins> 127: <cfset variables.$class.plugins[loc.iPlugins] = loc.plugin>

I have tried everything I can think of, including repackaging the plugin in different folder structures but I can't seem to get this to work. I am running Railo 3.3.2. Have I just missed something really simple?

tdm00 commented 12 years ago

make sure that the user account that you're running Railo as has write access to the /plugins directory

also I'm not sure why it's looking for a plugin named talltroym, it should be named dbmigrate, can you verify that's the name in the plugins/ folder?

-t

On Wed, Mar 14, 2012 at 5:01 PM, SimeonC < reply@reply.github.com

wrote:

I've been trying to install the dbmigrate on my current site and currently it doesn't install, every time I get the error:

Message invalid component definition, can't find plugins.talltroym.talltroym Stacktrace The Error Occurred in /Users/simeon/Sites/billings/wheels/Plugins.cfc: line 125 123: <cfset loc.wheelsVersion = SpanExcluding(variables.$class.wheelsVersion, " ")> 124: 125: <cfset loc.plugin = createobject("component", $componentPathToPlugin(loc.iPlugins)).init()> 126: <cfif not StructKeyExists(loc.plugin, "version") OR ListFind(loc.plugin.version, loc.wheelsVersion) OR variables.$class.loadIncompatiblePlugins> 127: <cfset variables.$class.plugins[loc.iPlugins] = loc.plugin>

I have tried everything I can think of, including repackaging the plugin in different folder structures but I can't seem to get this to work. I am running Railo 3.3.2. Have I just missed something really simple?


Reply to this email directly or view it on GitHub: https://github.com/talltroym/cfwheels-dbmigrate-plugin/issues/49

Troy Murray

SimeonC commented 12 years ago

Yes the account has write access to the /plugins directory, I have other plugins working correctly.

Using the zip 0.8.2 from https://github.com/talltroym/cfwheels-dbmigrate-plugin/tags (that is the correct place?) the folder structure is as follows: /plugins/talltroym/talltroym-cfwheels-dbmigrate-plugin-8e5335e/{plugin stuff is here}.

I repackaged the zip as dbmigrate-v0.8.2.zip (with the plugin files directly in the zip with no containing folder) and it works now, I get the folder structure: /plugins/dbmigrate/{plugin stuff here}

Part of the problem might be that the plugin is being downloaded under an incorrect file name and also it appears to have a nested folder in it. Thanks for the quick help, hope this info helps you somewhat. Also if you want me to test something specific on 1.1.7 give me a yell, I'll be using it anyway.

tdm00 commented 12 years ago

Probably best to download it from the cfwheels.org site since that's packaged correctly. What you're getting is a GitHub packaged version so it'll always be wrong.

On Mar 14, 2012, at 5:37 PM, SimeonC reply@reply.github.com wrote:

Yes the account has write access to the /plugins directory, I have other plugins working correctly.

Using the zip 0.8.2 from https://github.com/talltroym/cfwheels-dbmigrate-plugin/tags (that is the correct place?) the folder structure is as follows: /plugins/talltroym/talltroym-cfwheels-dbmigrate-plugin-8e5335e/{plugin stuff is here}.

I repackaged the zip as dbmigrate-v0.8.2.zip (with the plugin files directly in the zip with no containing folder) and it works now, I get the folder structure: /plugins/dbmigrate/{plugin stuff here}

Part of the problem might be that the plugin is being downloaded under an incorrect file name and also it appears to have a nested folder in it. Thanks for the quick help, hope this info helps you somewhat. Also if you want me to test something specific on 1.1.7 give me a yell, I'll be using it anyway.


Reply to this email directly or view it on GitHub: https://github.com/talltroym/cfwheels-dbmigrate-plugin/issues/49#issuecomment-4508700

SimeonC commented 12 years ago

Ah, Good point. Not sure why I didn't do that in the first place, I'll remember that in future, thanks.

EDIT: I realised why now, I edited the installation page in case anyone else thinks along the same lines I did and just searched the git hub for a zip after reading the rest of the tutorials and API's.

tdm00 commented 12 years ago

NP

On Mar 14, 2012, at 6:01 PM, SimeonC reply@reply.github.com wrote:

Ah, Good point. Not sure why I didn't do that in the first place, I'll remember that in future, thanks.


Reply to this email directly or view it on GitHub: https://github.com/talltroym/cfwheels-dbmigrate-plugin/issues/49#issuecomment-4509176