Sticking my head out here a little as I haven't used this plugin yet,
but I would check a few things.
In essence, the myUser class isn't being found for the specific
application. First, be absolutely sure that
the myUser.class.php file is located in the /apps/<app>/lib directory.
Double, Triple check that this file is
present (I have no idea why it wouldn't be there). Also, double,
triple check that the cache is cleared.
This task handles is library autoloading in the file sfLucenePlugin/
data/tasks/sfPakeLucene.php file
in the _load_application_environment() function. This function
initializes the application using the search
environment, so you absolutely should have a file called
config_autoload.yml.php in your
cache/<app>/search/config after running this task. Why you wouldn't
have that file is a mystery. Without
this file, nothing is being loaded - so it makes sense that myUser
wouldn't be found.
Again, there area 1000 reasons why this might happen - but in 99.99%
of the cases, it's something simple
like not clearing the cache, or some strange change you've made in
your application.
One thing you might do is create a new frontend controller, maybe
search.php in your web folder with the following
contents:
<?php
define('SF_ROOT_DIR', sfConfig::get('sf_root_dir'));
define('SF_APP', $app);
define('SF_ENVIRONMENT', 'search');
define('SF_DEBUG', true);
require_once
SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php';
sfContext::getInstance()->getController()->dispatch();
Now, surf to your application/search.php (or whatever you called the
above controller). Surfing this application is in essence what the
lucene task is trying to do. Any errors here are most likely
being suffered by the lucene task as well. By surfing this app, you
should absolutely now have a config_autoload.yml.php in the above-
mentioned cache directory.
Hopefully this gives you something to chase after.
Ryan
On Nov 26, 4:46 pm, forkmantis <[EMAIL PROTECTED]> wrote:
> I checked out the project I am having trouble with onto a new
> machine. On the new machine, I was able to execute the lucene-init
> task successfully. On the original machine, I deleted the entire
> project and did a fresh checkout from svn, and am still not able to
> execute the task.
>
> I did notice that on the second machine under the cache/<app>/search/
> config directory I had a config_autoload.yml.php file, but on the
> original machine this file was missing. So it appears for some reason
> that the config_autoload.yml file is not being generated on one server
> while it is on the other. I don't see anything interesting in the
> <app>_search.log file to indicate what the problem may be.
>
> On Nov 26, 10:03 am, forkmantis <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the response, Carl.
>
> > I have just checked out -r6162 of sfLucenePlugin into my project,
> > cleared cache, and looked at my factories.yml for the application in
> > question. The commented defaults have not been altered:
>
> > # user:
> > # class: myUser
>
> > I still get this error when running "symfony lucene-init <app>":
>
> > PHP Fatal error: Class 'myUser' not found in <path>/lib/symfony/user/
> > sfUser.class.php on line 107
>
> > I'm not totally sure how to troubleshoot from here.
>
> > Carl Vondrick wrote:
> > > On Friday, November 23, 2007, forkmantis wrote:
> > > > PHP Fatal error: �Class 'myUser' not found in /<path>/lib/symfony/user/
> > > > sfUser.class.php on line 107
>
> > > Hi,
> > > This issue is not related to sfLucene. Try clearing your cache and
> > > checking
> > > your configuration factories for the user.
>
> > > Carl
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---