Error When Attempting to Re-Index Omeka 2.0.3

Hello,

This is a follow up question to my question here:

http://omeka.org/forums/topic/error-when-attempting-to-re-index-omeka-202

I tried re-indexing my content after upgrading to Omeka 2.0.3 today and uninstalling and reinstalling the correct version of Commenting and I get an error.

It does not seem to be a problem with the plugins but I am not sure. Can anyone weigh in on this?


[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined variable: output in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 137
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined variable: returnVar in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 137
[28-Apr-2013 10:02:53 America/Chicago] PHP Warning: exec() has been disabled for security reasons in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 137
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined variable: returnVar in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 138
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined variable: returnCode in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 112
[28-Apr-2013 10:02:53 America/Chicago] PHP Warning: exec() has been disabled for security reasons in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 112
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined variable: returnCode in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 114
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined offset: 0 in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 119
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined offset: 1 in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 120
[28-Apr-2013 10:02:53 America/Chicago] PHP Notice: Undefined offset: 2 in /home/pna6fb9i/public_html/projects/archive/application/libraries/Omeka/Job/Process/Dispatcher.php on line 121

That does look like something not plugin-related -- more like the process that is doing the indexing -- but it's possible that something in a plugin is playing badly with the search indexing.

Are you trying to index all the record types, or just some of them? If just just some, which ones?

I am trying to re-index everything except "Comments" which includes "Item", "File", "Collection", "Exhibit", "Exhibit Page", and "Simple Page".

Your problem is this:

exec() has been disabled for security reasons

Your server has disabled the exec function that Omeka uses to spawn background processes.

If you can't enable exec, you can switch Omeka to not use background processes in config.ini, but everything will happen in the scope of a single web request, so you may run into timeout problems.

jobs.dispatcher.longRunning = "Omeka_Job_Dispatcher_Adapter_Synchronous"

I tried re-indexing and now it says


Indexing records. This may take a while. You may continue administering your site.

Is it past the problematic timeout request at this point?

Also, is it safe to leave on, i.e. will it affect other aspects of the site? Or should I switch it back to the original?

Thanks!

With the job set to "Synchronous," all the work happens immediately, so if you've seen that message, the job is done.

Leaving that setting on won't hurt the site. Other "long-running" jobs like CSV Import will run that same way (in one request), but they wouldn't run on your server any other way.

Great, thank you!