Installing Bilingual Plugin

I have a problem installing the Bilingual plugin so I decided to enable my error log file for better understanding of the problem. I searched the omeka help and found out how to enable error log file and I did follow it correctly but it still shows me this message:

"Fatal error: Uncaught exception 'Exception' with message 'Error log file cannot be written to. Please give this file read/write permissions for the web server.' in /var/www/omeka-0.9.2/application/libraries/Omeka/Logger.php:36 Stack trace: #0 /var/www/omeka-0.9.2/application/libraries/Omeka/Core.php(224): Omeka_Logger->setErrorLog('/var/www/omeka-...') #1 /var/www/omeka-0.9.2/application/libraries/Omeka/Core.php(65): Omeka_Core->initializeDefaultLogger() #2 /var/www/omeka-0.9.2/index.php(12): Omeka_Core->initialize() #3 {main} thrown in /var/www/omeka-0.9.2/application/libraries/Omeka/Logger.php on line 36"

I checked both the files logger and core to make sure that the error logging value is set to true and it is. Then I realized the the error log filename is coded incorrectly in the "config.ini". Below is what I got from config.ini file

Log SQL statements

log.sql = false

Log errors (to be implemented)

log.errors = true

where as in the /application/logs folder I have these files:

-rwxrwxrwx 1 wriaz wriaz 0 2007-03-29 16:00 errors.log.empty
-rw-rw-rw- 1 wriaz wriaz 0 2007-03-29 16:00 sql.log.empty

so if you simply replace this line "log.errors = true" with "errors.log = true" it will work fine. Now coming back to my original problem I tried to install Bilingual plugin again and it errors out again as I am expecting but It still didn't write anything in my error log file. The error log file still empty.

Can somebody help me out with this.

Thanks

Hi, you're getting the error message b/c your error log file needs to be renamed (to errors.log from errors.log.empty). Then when you have log.errors = true that should work. Also, the easiest way to see the text of the errors is to make sure you have display_errors set to 1 in your .htaccess file, and debug.errors = true in your config.ini file. That should cause the errors to print directly to the screen.

When you get an error message from that, let us know and we'll see if we can figure out what's going on. Thanks.

Ok great it works. Thats what I got from my error log file

=======================
Type: Exception
Date: 2008-09-10T13:08:19-0400
Please provide a language when configuring Bilingual plugin!
/var/www/omeka-0.9.2/plugins/Bilingual/plugin.php:89
#0 [internal function]: BilingualPlugin->config(Array)
#1 /var/www/omeka-0.9.2/application/libraries/plugins.php(168): call_user_func_array(Array, Array)
#2 /var/www/omeka-0.9.2/application/libraries/plugins.php(187): PluginBroker->config('Bilingual')
#3 /var/www/omeka-0.9.2/application/controllers/PluginsController.php(57): PluginBroker->install('Bilingual')
#4 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Action.php(497): PluginsController->installAction()
#5 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('installAction')
#6 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /var/www/omeka-0.9.2/application/libraries/Omeka/Core.php(317): Zend_Controller_Front->dispatch()
#8 /var/www/omeka-0.9.2/admin/index.php(33): Omeka_Core->dispatch()
#9 {main}
=======================

Hmm, yeah it looks as though this is broken, some sort of installation error. Try commenting out lines 75-81 in your plugin.php file in the plugin, which should be the install() function. Then re-install the plugin and let me know if that works. You'll need to configure the plugin again before the fields actually show up on the form.

My problem is with this line,

2. Activate it from admin=>Settings=>Plugins page and type in the second language you are using for this archive.

In my Omeka's plugin page I don't have and any space for typing the second language. Do I have to specify the second language somewhere else.

Thanks

There should be a link to 'Configure' the plugin on the plugins page after you have installed it. That is where you would enter the second language. Let me know if that works.

But then once I hit install button on Omeka's plugin page it will give me this error below:
=======================
Type: Exception
Date: 2008-09-29T16:10:05-0400
Please provide a language when configuring Bilingual plugin!
/var/www/omeka-0.9.2/plugins/Bilingual/plugin.php:89
#0 [internal function]: BilingualPlugin->config(Array)
#1 /var/www/omeka-0.9.2/application/libraries/plugins.php(168): call_user_func_array(Array, Array)
#2 /var/www/omeka-0.9.2/application/libraries/plugins.php(187): PluginBroker->config('Bilingual')
#3 /var/www/omeka-0.9.2/application/controllers/PluginsController.php(57): PluginBroker->install('Bilingual')
#4 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Action.php(497): PluginsController->installAction()
#5 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Dispatcher/Standard.php(237): Zend_Controller_Action->dispatch('installAction')
#6 /var/www/omeka-0.9.2/application/libraries/Zend/Controller/Front.php(911): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /var/www/omeka-0.9.2/application/libraries/Omeka/Core.php(317): Zend_Controller_Front->dispatch()
#8 /var/www/omeka-0.9.2/admin/index.php(33): Omeka_Core->dispatch()
#9 {main}
=======================

Thanks

Looks like the Bilingual plugin is pretty broken then. It has worked for us in the past, but it seems like installation of the plugin is generally broken now. I've taken it down from the downloads page until further notice. Unfortunately, we don't have any plans to fix the plugin for the 0.9.x release branch of Omeka, but we're looking into solutions for multiple language metadata for the upcoming 0.10 release. Hope that helps.

I was able to install the Bilingual plugin by commenting out line 89:

if(empty($language)) {
  //throw new Exception( 'Please provide a language when configuring Bilingual plugin!' );
}

The link to 'Configure' the plugin appears on the Settings > Plugins page and the "Bilingual Fields" form fields appears on the Step 3 page.