Upgrading from 1.3.2 -> 2.4 RuntimeException - Simple Pages

I am attempting an upgrade (Upgrade Simple Pages) but I am running into the following error.

I get the same error on Guest User.

Any ideas?

Here is directory listing in the SimplePages plugin.

SimplePages]# ls -l
total 48
-rw-r--r-- 1 museum research 671 Jan 21 16:26 config_form.php
drwxr-xr-x 2 museum research 4096 Jan 21 16:26 controllers
drwxr-xr-x 2 museum research 4096 Jan 21 16:26 helpers
drwxr-xr-x 2 museum research 4096 Jan 21 16:26 languages
drwxr-xr-x 3 museum research 4096 Jan 21 16:26 models
-rw-r--r-- 1 museum research 364 Jan 21 16:26 plugin.ini
-rw-r--r-- 1 museum research 12291 Jan 21 16:26 SimplePagesPlugin.php
drwxr-xr-x 3 museum research 4096 Jan 21 16:26 tests
drwxr-xr-x 4 museum research 4096 Jan 21 16:26 views

-=-=-=-=-=-=-=-=-=-
Omeka has encountered an error

RuntimeException

Error in configuring plugin named "Simple Pages". Missing config and/or config_form hook(s).

exception 'RuntimeException' with message 'Error in configuring plugin named "Simple Pages". Missing config and/or config_form hook(s).' in /eecs/home/museum/www/omeka/application/controllers/PluginsController.php:45
Stack trace:
#0 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->configAction()
#1 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('configAction')
#2 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#3 /eecs/home/museum/www/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#4 /eecs/home/museum/www/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#5 /eecs/home/museum/www/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#6 /eecs/home/museum/www/omeka/admin/index.php(28): Omeka_Application->run()
#7 {main}

Am I following right that you first upgraded Omeka from 1.3.2 to 2.4, and are now trying to upgrade the plugins?

If so, I'd double check that you have the latest code for the plugins in place.

I following the upgrade instructions on the Omeka website.

Off the top of my head I did the following:

- Deactivate all plugins
- Backup Omeka database
- Move old Omeka installation out of the way
- Move new Omeka (2.4) installation in place
- with updated plugins
COinS-2.0.3.zip
Contribution-3.0.3.zip
CSV-Import-2.0.3.zip
Exhibit-Builder-3.3.zip
SimpleContactForm-0.5.zip
Guest-User-1.1.1.zip
Simple-Pages-3.0.7.zip

- copy config files to new site (db.ini, archive files)
- login to admin site and started to activate plugins

Some pluggins worked fine, but some didn't, notably GuestUser and Simple Pages.

I had to restore the original site (thank goodness for backups), I was running out of time. I plan to try the upgrade again and double check all my steps.

Paul

Indeed, thank goodness (and forethought!) for backups!

That sounds right for the process, and if the upgrade to the plugins got far enough along for you to go to configure them, that means they upgraded okay.

When you go back to trying it again, if the same error happens we'll have to look in SimplePagesPlugin.php to see if there's something odd with the config_form hook

OK I went back and tried the upgrade again.

When I try to upgrade SimplePages plug-in I get the following:

Error in configuring plugin named "Simple Pages". Missing config and/or config_form hook(s).

exception 'RuntimeException' with message 'Error in configuring plugin named "Simple Pages". Missing config and/or config_form hook(s).' in /eecs/home/museum/www/omeka/application/controllers/PluginsController.php:45
Stack trace:
#0 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->configAction()
#1 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('configAction')
#2 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#3 /eecs/home/museum/www/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#4 /eecs/home/museum/www/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#5 /eecs/home/museum/www/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#6 /eecs/home/museum/www/omeka/admin/index.php(28): Omeka_Application->run()
#7 {main}

In Exhibit Builder:

RuntimeException

Error in configuring plugin named "Exhibit Builder". Missing config and/or config_form hook(s).

exception 'RuntimeException' with message 'Error in configuring plugin named "Exhibit Builder". Missing config and/or config_form hook(s).' in /eecs/home/museum/www/omeka/application/controllers/PluginsController.php:45
Stack trace:
#0 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->configAction()
#1 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('configAction')
#2 /eecs/home/museum/www/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#3 /eecs/home/museum/www/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#4 /eecs/home/museum/www/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#5 /eecs/home/museum/www/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#6 /eecs/home/museum/www/omeka/admin/index.php(28): Omeka_Application->run()
#7 {main}

The code around line 45

$this->view->pluginBroker = $this->_pluginBroker;
     41
     42         // If we have no config form hook, forget it.
     43         if (!$this->_pluginBroker->getHook($plugin, 'config_form')
     44          || !$this->_pluginBroker->getHook($plugin, 'config')) {
     45             throw new RuntimeException(__('Error in configuring plugin named "%s". Missing config and/or config_form hook(s).', $plugin->getDisplayName()));
     46         }
     47

Do you get this same problem if you just keep the bundled plugins (Coins, Exhibit Builder, and Simple Pages) that come with the new version?

So, the process you described, but just using the copies of those plugins that are already there in the new copy of Omeka. In 2.4.1 those are all the most recent versions already anyway.

I did the update again. This time I just used what came with the default install.

CentOS 6.7, with PHP 5.5.33, I get the following.

exception 'RuntimeException' with message 'Error in configuring plugin named "Simple Pages". Missing config and/or config_form hook(s).' in /local/omeka/application/controllers/PluginsController.php:45
Stack trace:
#0 /local/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->configAction()
#1 /local/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('configAction')
#2 /local/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#3 /local/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#4 /local/omeka/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#5 /local/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#6 /local/omeka/admin/index.php(28): Omeka_Application->run()
#7 {main}

The button you're clicking says "Upgrade," correct?

The strange thing here is that you're getting errors relating to configuring the plugin, not upgrading it. We do redirect you to the configure page for plugins that have configure forms, but this happens after the upgrade is already completed.

Can you share a screenshot of what the Plugins page entry looks like for Simple Pages or Exhibit Builder?

Yes, I am clicking the button that says "Upgrade" and it says that the upgrade was sucessful. It does seem strange.

Here is the Link:
http://www.cse.yorku.ca/~paulg/pluggins1.png