By Michael Martin on Friday, 23 March 2018
Posted in General
Likes 0
Views 1K
Votes 0
I received the following error when I tried to create a new blog post.


Fatal error: Cannot declare class OAuthSignatureMethod_HMAC_SHA1, because the name is already in use in /home2/mrwizard/michaelscookbook.com/administrator/components/com_easyblog/includes/oauth/adapters/oauth.php on line 136

I think I may have FUBARed something but haven't a clue as to what it is. Any assistance with this would be most appreciated.

Thanks in advance.
Hi Michael,

I am really sorry for the delay of this reply as it is a weekend for us here. For further checking on this, I need your FTP works as I tried to access seems like it doesn't work : http://take.ms/yOMZl
·
Monday, 26 March 2018 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I redid the ftp account. Everything should be good.
·
Tuesday, 27 March 2018 04:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Michael,

Thanks for your cooperation, I've fix in the files:
.../administrator/components/com_easyblog/includes/oauth/adapters/oauth.php
.../administrator/components/com_easyblog/includes/oauth/adapters/facebook/consumer.php
.../administrator/components/com_easyblog/includes/oauth/adapters/facebook/client.php

And I've rename the existing file by append _bak.
It should works fine now, can you give it another try?

By the way, can you recheck your Facebook page if there is any test post that I accidentally create and delete it. And I'm apologize if there is test post has been posted into your Facebook page.
·
Tuesday, 27 March 2018 15:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for looking into my issue. It seems to be working, but I did, however, receive these errors:


A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: Error
File: /home2/mrwizard/michaelscookbook.com/plugins/jsn/socialconnect/socialconnect.php
Line: 1247
Message: Call to a member function get() on null
#0 /home2/mrwizard/michaelscookbook.com/plugins/jsn/socialconnect/socialconnect.php(1378): SocialConnect->getReturnUrl()
#1 /home2/mrwizard/michaelscookbook.com/plugins/jsn/socialconnect/socialconnect.php(119): SocialConnectFacebook->getJS()
#2 /home2/mrwizard/michaelscookbook.com/plugins/jsn/socialconnect/socialconnect.php(20): SocialConnect::init()
#3 /home2/mrwizard/michaelscookbook.com/libraries/src/Plugin/PluginHelper.php(272): PlgJsnSocialconnect->__construct(Object(JEventDispatcher), Array)
#4 /home2/mrwizard/michaelscookbook.com/libraries/src/Plugin/PluginHelper.php(182): Joomla\CMS\Plugin\PluginHelper::import(Object(stdClass), true, Object(JEventDispatcher))
#5 /home2/mrwizard/michaelscookbook.com/plugins/system/jsn_system/jsn_system.php(190): Joomla\CMS\Plugin\PluginHelper::importPlugin('jsn')
#6 /home2/mrwizard/michaelscookbook.com/libraries/joomla/event/event.php(70): plgSystemJsn_System->onAfterRoute()
#7 /home2/mrwizard/michaelscookbook.com/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#8 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterroute', Array)
#9 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/CMSApplication.php(1089): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterRoute')
#10 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/SiteApplication.php(798): Joomla\CMS\Application\CMSApplication->route()
#11 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/SiteApplication.php(218): Joomla\CMS\Application\SiteApplication->route()
#12 /home2/mrwizard/michaelscookbook.com/libraries/src/Application/CMSApplication.php(204): Joomla\CMS\Application\SiteApplication->doExecute()
#13 /home2/mrwizard/michaelscookbook.com/index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#14 {main}



I am not sure if they have anything to do with the current issues.
·
Wednesday, 28 March 2018 19:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Michael Martin,

May I know how to replicate the issue above?
·
Wednesday, 28 March 2018 19:49
·
0 Likes
·
0 Votes
·
0 Comments
·
LOL, Actually I just noticed that I posted my issue on the wrong site. I am surprised that you didn't notice it as well.


File: /home2/mrwizard/http://michaelscookbook.com/plugins/jsn/socialconnect/socialconnect.php
·
Thursday, 29 March 2018 00:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Based on what error message, it seems like it point to this 3rd party plugin Easy Profile - SocialConnect plugin , can you try temporary disable this plugin and see if the issue still persists?

If yes, can you guide us how to replicate this error on your site?

Is it submit a new blog post on your site then it will redirect to this error?
·
Thursday, 29 March 2018 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Michael, glad that your issue is resolved now

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Thursday, 29 March 2018 00:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post