Social Bookmarking: Controllers

The files in the controllers folder are missing when the social bookmarking plugin is downloaded. I tried twice with the same results. I am assuming this is why the plugin is not working for me. Can someone point me to where I may get the contents of the controllers file?

SocialBookmarking has no controllers, and so no controllers folder.

What problem are you having?

I apologize, I'm rather new to this. When I apply the social bookmarking plugin and then 'view public site' any image that I select sends me to the 'Omeka has encountered an error' page.

Thanks!

I haven't been able to recreate this on my installation. Could I ask what version of Omeka you are using, and what theme?

Hmm, that's strange. The SocialBookmarking plugin doesn't do a whole lot that's likely to break things.

Anyway, what you need here is the specific error that's occurring. The documentation wiki has a page that explains how to get those "encountered an error" pages to show the actual error message.

Here is the error documentation! I hope.

2012-06-20T11:46:32-06:00 ERR (3): exception 'Exception' with message 'Could not find file images/technorati.png!' in /home3/wyandoth/public_html/index.html/application/helpers/AssetFunctions.php:289
Stack trace:
#0 /home3/wyandoth/public_html/index.html/application/helpers/AssetFunctions.php(249): web_path_to('images/technora...')
#1 /home3/wyandoth/public_html/index.html/application/helpers/AssetFunctions.php(189): src(Object(SimpleXMLElement), 'images')
#2 /home3/wyandoth/public_html/index.html/plugins/SocialBookmarking/plugin.php(133): img()
#3 /home3/wyandoth/public_html/index.html/application/libraries/Omeka/Plugin/Broker.php(156): social_bookmarking_append_to_item(Object(SimpleXMLElement))
#4 /home3/wyandoth/public_html/index.html/application/libraries/Omeka/Plugin/Broker.php(182): Omeka_Plugin_Broker->callHook()
#5 [internal function]: Omeka_Plugin_Broker->__call('social_bookmark...', Array)
#6 /home3/wyandoth/public_html/index.html/application/libraries/globals.php(215): Omeka_Plugin_Broker->public_append_to_items_show('public_append_t...', Array)
#7 /home3/wyandoth/public_html/index.html/application/libraries/globals.php(234): fire_plugin_hook('public_append_t...', Array)
#8 /home3/wyandoth/public_html/index.html/application/helpers/PluginFunctions.php(92): get_plugin_hook_output()
#9 /home3/wyandoth/public_html/index.html/themes/rhythm/items/show.php(26): plugin_append_to_items_show()
#10 /home3/wyandoth/public_html/index.html/application/libraries/Omeka/View.php(113): include('/home3/wyandoth...')
#11 /home3/wyandoth/public_html/index.html/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run()
#12 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render(Array, Array)
#13 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('public_append_t...')
#14 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render('fire_plugin_hoo...', Array)
#15 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch('public_append_t...')
#16 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#17 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('/home3/wyandoth...')
#18 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch('items/show.php')
#19 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch('items/show.php', NULL)
#20 /home3/wyandoth/public_html/index.html/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#21 /home3/wyandoth/public_html/index.html/application/libraries/Omeka/Core.php(165): Zend_Application->run()
#22 /home3/wyandoth/public_html/index.html/index.php(28): Omeka_Core->run()
#23 {main}

Yes, that's the error.

As the first line says, Omeka's not able to find the file "images/technorati.png," which is the logo for Technorati.

That's included in the SocialBookmarking download. The file should be at "SocialBookmarking/views/shared/images/technorati.png"

If it's not there, make sure you unzipped the plugin correctly.

Thanks a lot for the timely responses! That did the job.

I am also having a problem installing Social Bookmarking 2.0 plugin in Omeka 2.0.1, but it's a different error. I copy the plugin folder into the plugins folder in the omeka installation just as with all other plugins, nothing different there. But when I click "Install" it simply displays "Omeka has encountered an error". I went through the process of enabling error log reporting and here is the log:

--------------------------------

2013-03-01T13:54:28-05:00 ERR (3): exception 'Exception' with message 'String could not be parsed as XML' in /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php:47
Stack trace:
#0 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(47): SimpleXMLElement->__construct('')
#1 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(57): social_bookmarking_get_services_xml()
#2 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(23): social_bookmarking_get_services()
#3 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/plugins/SocialBookmarking/SocialBookmarkingPlugin.php(46): social_bookmarking_get_default_service_settings()
#4 [internal function]: SocialBookmarkingPlugin->hookInstall(Array)
#5 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Omeka/Plugin/Broker.php(145): call_user_func(Array, Array)
#6 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Omeka/Plugin/Installer.php(128): Omeka_Plugin_Broker->callHook('install', Array, Object(Plugin))
#7 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/controllers/PluginsController.php(77): Omeka_Plugin_Installer->install(Object(Plugin))
#8 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->installAction()
#9 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('installAction')
#10 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#14 /hermes/bosweb25b/b1246/nf.ourmove/public_html/csite/omeka/admin/index.php(28): Omeka_Application->run()
#15 {main}

--------------------------------

I don't get any of what this is saying, so need help figuring what the problem is. I am wondering if the latest zip archive contains all the necessary files? I tried comparing to the earlier 1.0.1 version and the latest version archive seems to contain a lot less files overall, so I am wondering if everything is there?

But of course the plugin may be fine and the problem may be elsewhere. Any help would be appreciated. Thanks!

That looks like when you tried to install the plugin, you didn't have a network connection. Social Bookmarking relies on the AddThis service to to create the bookmarking links, so the first thing it does is try to connect to that service.

Thanks -- but what network connection are you referring to? I was installing through the Omeka interface live, on the website..can you please clarify?

I installed several other plugins successfully at the same time..

just the general internet connection. either there was no internet connection, or the plugin couldn't connect to the AddThis site for some other reason.

Thanks again. The connection is not a problem. Then there must be a bug connecting to the AddThis site.

(as fyi for plugin developer - I don't know how persistent this is but this is not the first day I've tried installing it, same result.)

I imagine other users would encounter same issues.

I currently have test Omeka installations on multiple hosting services and just tried on both, with same result. (just fyi - so most likely it's not the servers not allowing certain requests). interestingly, downgrading the SB plugin to 1.0.1 does allow to install it, and then "upgrade" if the 2.0 plugin is overwritten on top of it.

However, the plugin configuration interface has issues -- the social bookmark icons are not displayed, and there is no ability to save any settings.

I am leaning toward your 2nd idea, that there is a problem establishing connection to AddThis service, but not sure what the problem is -- perhaps the plugin developer can be notified and conduct some impelementation testing..

Thanks again for timely responses! Did I mention Omeka rocks? It does.

peacewalk,

Can you check your PHP setting for allow_url_fopen, or see if your host can check it?

Social Bookmarking requires that setting to be On to make its web request work.

John - that was it, I've set the "allow_url_fopen' to On in php.ini.

Then completely wiped and reinstalled SB 2.0 and seems to work!

I also found "allow_url_include" that seems kind of similar and set it to On as well -- is this necessary or not? (if not will change back to Off).

Thanks again for getting this resolved, I am sure others will benefit from this post as well.

Re-opening this thread with apologies: I am trying to get a fresh install of version 2.0.1 of the SocialBookmarking plugin on Omeka 2.2.2. I am encountering an error. Reading above, I edited php.ini to allow_url_fopen On, but am still getting:

2014-08-19T13:46:21+00:00 ERR (3): exception 'Exception' with message 'String could not be parsed as XML' in /htdocs/omeka-2.2.2/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php:49
Stack trace:
#0 /htdocs/omeka-2.2.2/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(49): SimpleXMLElement->__construct('')
#1 /htdocs/omeka-2.2.2/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(59): social_bookmarking_get_services_xml()
#2 /htdocs/omeka-2.2.2/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(23): social_bookmarking_get_services()
#3 /htdocs/omeka-2.2.2/plugins/SocialBookmarking/SocialBookmarkingPlugin.php(50): social_bookmarking_get_default_service_settings()
#4 [internal function]: SocialBookmarkingPlugin->hookInstall(Array)
#5 /htdocs/omeka-2.2.2/application/libraries/Omeka/Plugin/Broker.php(145): call_user_func(Array, Array)
#6 /htdocs/omeka-2.2.2/application/libraries/Omeka/Plugin/Installer.php(130): Omeka_Plugin_Broker->callHook('install', Array, Object(Plugin))
#7 /htdocs/omeka-2.2.2/application/controllers/PluginsController.php(97): Omeka_Plugin_Installer->install(Object(Plugin))
#8 /htdocs/omeka-2.2.2/application/libraries/Zend/Controller/Action.php(516): PluginsController->installAction()
#9 /htdocs/omeka-2.2.2/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('installAction')
#10 /htdocs/omeka-2.2.2/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /htdocs/omeka-2.2.2/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#12 /htdocs/omeka-2.2.2/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /htdocs/omeka-2.2.2/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#14 /htdocs/omeka-2.2.2/admin/index.php(28): Omeka_Application->run()
#15 {main}

A sharp blow with the clue-stick would be appreciated.

OK everyone, sorry for the noise - the httpd daemon need to restart in order for the changes in the php.ini file to be read. That cured it. Apologies again.

Having the same problem with the Social Bookmarking plugin. I checked php.ini and allow_url_fopen = On. The server has also been restarted. Here's the error message I get when I try to activatee the plugin.

#0 /usr/local/data/htdocs/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(45): SimpleXMLElement->__construct('')
#1 /usr/local/data/htdocs/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(55): social_bookmarking_get_services_xml()
#2 /usr/local/data/htdocs/omeka/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(23): social_bookmarking_get_services()
#3 /usr/local/data/htdocs/omeka/plugins/SocialBookmarking/SocialBookmarkingPlugin.php(51): social_bookmarking_get_default_service_settings()
#4 [internal function]: SocialBookmarkingPlugin->hookInstall(Array)
#5 /usr/local/data/htdocs/omeka/application/libraries/Omeka/Plugin/Broker.php(145): call_user_func(Array, Array)
#6 /usr/local/data/htdocs/omeka/application/libraries/Omeka/Plugin/Installer.php(130): Omeka_Plugin_Broker->callHook('install', Array, Object(Plugin))
#7 /usr/local/data/htdocs/omeka/application/controllers/PluginsController.php(97): Omeka_Plugin_Installer->install(Object(Plugin))
#8 /usr/local/data/htdocs/omeka/application/libraries/Zend/Controller/Action.php(516): PluginsController->installAction()
#9 /usr/local/data/htdocs/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('installAction')
#10 /usr/local/data/htdocs/omeka/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /usr/local/data/htdocs/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#12 /usr/local/data/htdocs/omeka/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /usr/local/data/htdocs/omeka/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#14 /usr/local/data/htdocs/omeka/admin/index.php(28): Omeka_Application->run()
#15 {main}

Same thing for me. Once in a while pages don't load because of this error. It can't parse the xml.

2015-05-13T12:35:29+02:00 ERR (3): exception 'Exception' with message 'String could not be parsed as XML' in /var/www-vb/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php:45
Stack trace:
#0 /var/www-vb/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(45): SimpleXMLElement->__construct('<?xml version="...')
#1 /var/www-vb/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(55): social_bookmarking_get_services_xml()
#2 /var/www-vb/plugins/SocialBookmarking/helpers/SocialBookmarkingFunctions.php(85): social_bookmarking_get_services()
#3 /var/www-vb/plugins/SocialBookmarking/SocialBookmarkingPlugin.php(136): social_bookmarking_toolbar('http://www.verh...', '', 'Twee mannen bes...')
#4 [internal function]: SocialBookmarkingPlugin->hookPublicItemsShow(Array)
#5 /var/www-vb/application/libraries/Omeka/Plugin/Broker.php(157): call_user_func(Array, Array)
#6 /var/www-vb/application/libraries/globals.php(188): Omeka_Plugin_Broker->callHook('public_items_sh...', Array)
#7 /var/www-vb/themes/verhalenbank/items/show.php(65): fire_plugin_hook('public_items_sh...', Array)
#8 /var/www-vb/application/libraries/Omeka/View.php(117): include('/var/www-vb/the...')
#9 /var/www-vb/application/libraries/Zend/View/Abstract.php(888): Omeka_View->_run('/var/www-vb/the...')
#10 /var/www-vb/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render('items/show.php')
#11 /var/www-vb/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('items/show.php', NULL)
#12 /var/www-vb/application/libraries/Zend/Controller/Action/Helper/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()
#13 /var/www-vb/application/libraries/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#14 /var/www-vb/application/libraries/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#15 /var/www-vb/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('showAction')
#16 /var/www-vb/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#17 /var/www-vb/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#18 /var/www-vb/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#19 /var/www-vb/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#20 /var/www-vb/index.php(23): Omeka_Application->run()
#21 {main}

Is this consistent, or might it be a sporadic thing with data from the AddThis service that it uses being unparsable?

It's sporadic behaviour. But I do think it's better if no error would appear on the site when that service can not be parsed. I haven't looked in the code yet, but I'll post a solution when I have.

For me it was not possible installation I'm using the latest version of Social-Bookmarking 2.0.2 available and it appears to me the same error
that Iwe speak.
Thank you very much for the help