The latest SolrSearch got moved over to Github
(https://github.com/scholarslab/SolrSearch), but I believe you have
found a bug. The latest Solr we've tested this is 3.1.0, and I know
there has been some updates to the syntax.
I'll try to clear out some time tomorrow to take a look at what's
going on and add a ticket or two on the issue tracker
(https://github.com/scholarslab/SolrSearch/issues).
Cheers,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
> --
> You received this message because you are subscribed to the Google Groups
> "Omeka Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/omeka-dev/-/d8hCKS5WKwgJ.
> To post to this group, send email to omek...@googlegroups.com.
> To unsubscribe from this group, send email to
> omeka-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/omeka-dev?hl=en.
I thought that had gotten hidden with the rollout of the new Plugin
pages (http://omeka.org/add-ons/plugins/solrsearch/).
Patrick, do those codex plugin pages still need to be maintained?
Cheers,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
Yeah, that package was an optimistic 1.0 release and isn't the 'real'
version (a prebuilt snapsnot). The most up-to-date version is on
git...
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
I took some time this morning to take a look at this issue and I
believe these are addressed in the github version. Would you mind
testing that version out? You'll need to completely uninstall the
plugin first...
Cheers,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
There I find
manija@tiu:~$ php omeka/index.php > /dev/null
PHP Strict Standards: Declaration of ImageAnnotationPermissionsManager::getInstance() should be compatible with ImageAnnotationAbstractPermissionsManager::getInstance($pluginName) in /home/manija/omeka-1.5/plugins/ImageAnnotation/permissions-manager.php on line 4
Omeka fatal error: exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli prepare error: Table 'manija.omeka_sessions' doesn't exist' in /home/manija/omeka-1.5/application/libraries/Zend/Db/Statement/Mysqli.php:77
Stack trace:
#0 /home/manija/omeka-1.5/application/libraries/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT `omeka_s...')
#1 /home/manija/omeka-1.5/application/libraries/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT `omeka_s...')
#2 /home/manija/omeka-1.5/application/libraries/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('SELECT `omeka_s...')
#3 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract.php(1529): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract.php(1344): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract.php(1309): Zend_Db_Table_Abstract->fetchAll('((`omeka_sessio...')
#6 [internal function]: Zend_Db_Table_Abstract->find('rs8dqqsdcm5nb0b...')
#7 /home/manija/omeka-1.5/application/libraries/Zend/Session/SaveHandler/DbTable.php(318): call_user_func_array(Array, Array)
#8 [internal function]: Zend_Session_SaveHandler_DbTable->read('rs8dqqsdcm5nb0b...')
#9 /home/manija/omeka-1.5/application/libraries/Zend/Session.php(469): session_start()
#10 /home/manija/omeka-1.5/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#11 /home/manija/omeka-1.5/application/libraries/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth')
#12 /home/manija/omeka-1.5/application/libraries/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#13 /home/manija/omeka-1.5/application/libraries/Zend/Auth.php(141): Zend_Auth->getStorage()
#14 /home/manija/omeka-1.5/application/libraries/Omeka/Core/Resource/Currentuser.php(44): Zend_Auth->hasIdentity()
#15 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(683): Omeka_Core_Resource_Currentuser->init()
#16 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(629): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Currentuser')
#17 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Currentuser')
#18 /home/manija/omeka-1.5/application/libraries/Omeka/Core/Resource/Helpers.php(128): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Currentuser')
#19 /home/manija/omeka-1.5/application/libraries/Omeka/Core/Resource/Helpers.php(21): Omeka_Core_Resource_Helpers->_initAclHelper()
#20 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(683): Omeka_Core_Resource_Helpers->init()
#21 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(629): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Helpers')
#22 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Helpers')
#23 /home/manija/omeka-1.5/application/libraries/Omeka/Core/Resource/Frontcontroller.php(45): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Helpers')
#24 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(683): Omeka_Core_Resource_Frontcontroller->init()
#25 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(626): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('frontcontroller')
#26 /home/manija/omeka-1.5/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL)
#27 /home/manija/omeka-1.5/application/libraries/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)
#28 /home/manija/omeka-1.5/application/libraries/Omeka/Core.php(114): Zend_Application->bootstrap()
#29 /home/manija/omeka-1.5/index.php(28): Omeka_Core->initialize()
#30 {main}
PHP Fatal error: Uncaught exception 'Zend_Db_Statement_Mysqli_Exception' with message 'Mysqli prepare error: Table 'manija.omeka_sessions' doesn't exist' in /home/manija/omeka-1.5/application/libraries/Zend/Db/Statement/Mysqli.php:77
Stack trace:
#0 /home/manija/omeka-1.5/application/libraries/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('SELECT `omeka_s...')
#1 /home/manija/omeka-1.5/application/libraries/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), 'SELECT `omeka_s...')
#2 /home/manija/omeka-1.5/application/libraries/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('SELECT `omeka_s...')
#3 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract.php(1529): Zend_Db_Adapter_Abstract->query(Object(Zend_Db_Table_Select))
#4 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract.php(1344): Zend_Db_Table_Abstract->_fetch(Object(Zend_Db_Table_Select))
#5 /home/manija/omeka-1.5/application/libraries/Zend/Db/Table/Abstract. in /home/manija/omeka-1.5/application/libraries/Zend/Db/Statement/Mysqli.php on line 77
But
manija@tiu:~$ echo "use manija; show tables" | mysql | grep sessions
omeka_sessions
shows that the table exists. I am very confused. Any ideas?
Cheers,
Thomas Krichel http://openlib.org/home/krichel
http://authorprofile.org/pkr1
skype: thomaskrichel
Sorry about that...I was looking at a different branch. I just merged
that change in to the master branch. Try pulling on master...
Cheers,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
You've shown some output confirming that you have the omeka_sessions
table, but it actually being missing in the database Omeka's accessing
is the only thing I can think of to explain this. Omeka 1.5 doesn't do
anything fancy or different in accessing the database.
Is it possible that you ran your "grep sessions" on the old copy, not
the new, or that your db.ini's not pointing to the same database you ran
that test against, or something similarly trivial? Those are the only
options that immediately come to mind.
-John
> You've shown some output confirming that you have the omeka_sessions
> table, but it actually being missing in the database Omeka's
> accessing is the only thing I can think of to explain this.
I can see the files in the /var/lib/mysql/foo files.
> Omeka 1.5 doesn't do anything fancy or different in accessing the
> database.
I suppose not ;-)
> Is it possible that you ran your "grep sessions" on the old copy,
> not the new, or that your db.ini's not pointing to the same database
> you ran that test against, or something similarly trivial?
I migrated from one installation of Debian testing to another one
on a different box. I rsynced /var/lib/mysql and /etc/mysql,
that allows access for the debian-sys-maint user.
Only the 1.5 installations failed. The way I rid myself of this
issue and to proceed with other aspects of my life was to downgrade
the installations of all students having 1.5 to 1.4.2. These
students all had 1.4.2 installed before and I was prudent enough to
remove it.
Thus I did something like (from memory)
rsync -va /home/foo/omeka-1.5/archive/ /home/foo/omeka-1.4.2/archive
rm /home/foo/omeka
ln -s /home/foo/omeka-1.4.2 /home/foo/omeka
and changed to /etc/apache2/conf/omeka_foo, from
Alias /omeka/foo/ /home/foo/omeka-1.5/
<Directory /home/foo/omeka-1.5/>
Options +FollowSymLinks
AllowOverride all
order allow,deny
allow from all
</Directory>
to
Alias /omeka/foo/ /home/foo/omeka-1.4.2/
<Directory /home/foo/omeka-1.4.2/>
Options +FollowSymLinks
AllowOverride all
order allow,deny
allow from all
</Directory>
The 1.5 modified database seems to work under 1.4.2. Well, no
student has complained as yet!
BTW, I find it puzzling that I can't seem to say
Alias /omeka/foo/ /home/foo/omeka/
<Directory /home/foo/omeka/>
Options +FollowSymLinks
AllowOverride all
order allow,deny
allow from all
</Directory>
This would allow the symlink to say what version is used, and allow
students to ugrade their sites without root intervention. But I
understand that's an apache issue. If I was smart I'd use
nginx ;-)
> Those are the only options that immediately come to mind.
Thank you so much for your help. If you make it to NYC, let me know,
I will be happy to have you as my guest.
ok, enough sysadmin talk ;-)
unlink current && ln -s /path/to/new/omeka/releases/new_version current
And the debian sites just has a pointer to current as the doc root.
What do the group perms look like? You could just chgrp to give access that way.
You may also want to try a mysqldump in to a new database and pointing
the db.ini there to do an upgrade. I've never experienced a missing
table in there, but you may also try just getting the DDL for the
tables and making that one manually...
HTH,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/
Mind if we bump this over to a ticket?
https://github.com/scholarslab/SolrSearch/issues/6
You may need to delete the index and reindex the entire collection
(see https://gist.github.com/2355797 for a gist to delete the index).
At first glance, there may be a configuration issue somewhere (the
SEVERE: org.apache.solr.common.SolrException:
org.apache.lucene.queryParser.ParseException: Cannot parse ': AND
(image:* OR :)': '' or '?' not allowed as first character in
WildcardQuery) where some extra stuff is going in to the system.
I'll follow up more on that ticket...
Cheers,
Wayne
/**
* @author Wayne Graham
* @link http://www.liquidfoot.com
*/