Plugin Installation

Ask help about existing plugins, or find advice about the way to build up your own.

Moderators: dwhittle, Ian

Plugin Installation

Postby srhenry3 » Thu Oct 14, 2010 3:44 pm

Okay, am I doing something horribly wrong? I followed directions to install plugins via extracting the zip or using the command line, but I get this error in my browser...

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The plugin "sfAssetsLibraryPlugin" does not exist.' in C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php:460 Stack trace: #0 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(483): sfProjectConfiguration->getPluginPaths() #1 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(80): sfApplicationConfiguration->getPluginPaths() #2 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(62): sfProjectConfiguration->loadPlugins() #3 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(47): sfProjectConfiguration->__construct('C:\development\...', NULL) #4 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(614): sfApplicationConfi in C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php on line 460


I followed the configuration for sfAssets library too.

Here is my ProjectConfiguration.class.php file...

Code: Select all
<?php

require_once dirname(__FILE__).'/..\lib\vendor\symfony\lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array('sfDoctrinePlugin', 'sfAssetsLibraryPlugin'));
  }
}


When I tried it in the command line I get this type of feedback...

C:\development\sfprojects\myproject>php symfony plugin:install sfAssetsLi
braryPlugin
>> plugin installing plugin "sfAssetsLibraryPlugin"



It gives me no confirmation that it has in fact been installed. I actually tried this method first and expected the plugin to appear in the plugins folder, but non had...that's when I went and downloaded and extracted it there.

Am I totally missing something with this installation process? What is going wrong?
Symfony 1.4
Windows XP
MySQL
PHP 5.3.0
srhenry3
Member
 
Posts: 35
Joined: Sun May 30, 2010 4:49 pm

Re: Plugin Installation

Postby defaka » Thu Oct 14, 2010 4:15 pm

sfAssetsLibraryPlugin only work for propel. You can use this plugin if you are using doctrine

http://www.symfony-project.org/plugins/ ... agerPlugin
defaka
Senior Member
 
Posts: 148
Joined: Mon Feb 19, 2007 5:56 am

Re: Plugin Installation

Postby srhenry3 » Fri Oct 15, 2010 5:34 pm

defaka wrote:sfAssetsLibraryPlugin only work for propel. You can use this plugin if you are using doctrine

http://www.symfony-project.org/plugins/ ... agerPlugin


Thanks! I'll give that one a try...If only I can get it installed...
Symfony 1.4
Windows XP
MySQL
PHP 5.3.0
srhenry3
Member
 
Posts: 35
Joined: Sun May 30, 2010 4:49 pm

Re: Plugin Installation

Postby myuser » Sat Oct 16, 2010 9:05 pm

Installation is easy. All you have to do is download the code folder, put it in your plugins folder and mention it in the projectconfiguration file!
I recommend this way over the plugin install method any day. Plus you know you are getting the latest code.
Symfony 1.4.11
Centos 5.6
(PostgreSQL) 8.3.11
PHP 5.2.13
myuser
Member
 
Posts: 93
Joined: Sat Jul 17, 2010 3:51 am

Re: Plugin Installation

Postby srhenry3 » Sun Oct 17, 2010 12:25 am

myuser wrote:Installation is easy. All you have to do is download the code folder, put it in your plugins folder and mention it in the projectconfiguration file!
I recommend this way over the plugin install method any day. Plus you know you are getting the latest code.


myuser,

I did as you stated, unpacked the sfThumbnailPlugin and edited the ProjectConfiguration.class.php file with the following syntax...

Code: Select all
<?php

require_once dirname(__FILE__).'/..\lib\vendor\symfony\lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array('sfDoctrinePlugin', 'sfThumbnailPlugin'));
  }
}


Reloaded one of my pages in the browser and the following error came up:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The plugin "sfThumbnailPlugin" does not exist.' in C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php:460 Stack trace: #0 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(483): sfProjectConfiguration->getPluginPaths() #1 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(80): sfApplicationConfiguration->getPluginPaths() #2 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(62): sfProjectConfiguration->loadPlugins() #3 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(47): sfProjectConfiguration->__construct('C:\development\...', NULL) #4 C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php(614): sfApplicationConfigura in C:\development\sfprojects\myproject\lib\vendor\symfony\lib\config\sfProjectConfiguration.class.php on line 460


Any ideas for why this is occurring?
Symfony 1.4
Windows XP
MySQL
PHP 5.3.0
srhenry3
Member
 
Posts: 35
Joined: Sun May 30, 2010 4:49 pm

Re: Plugin Installation

Postby myuser » Sun Oct 17, 2010 12:29 am

Did you check if the paths that it is referring to actually do exist? Try and follow the stack trace to something that you know that you had a hand in.
Symfony 1.4.11
Centos 5.6
(PostgreSQL) 8.3.11
PHP 5.2.13
myuser
Member
 
Posts: 93
Joined: Sat Jul 17, 2010 3:51 am

Re: Plugin Installation

Postby srhenry3 » Sun Oct 17, 2010 4:34 pm

I found the problem here...

I was getting the error because I hadn't renamed the plugin folders after I downloaded them.

So the sfThumbnailPlugin folder was still labeled:
sfThumbnailPlugin-2.0.1

instead of just...
sfThumbnailPlugin.

So I guess because of this it wasn't finding the plugin I was trying to enable.

Thanks for the help, myuser! :)
Symfony 1.4
Windows XP
MySQL
PHP 5.3.0
srhenry3
Member
 
Posts: 35
Joined: Sun May 30, 2010 4:49 pm


Return to General plug-ins

Who is online

Users browsing this forum: No registered users and 2 guests