Facebook has removed file from the following URL:
http://www.facebook.com/translations/FacebookLocales.xml
It's unknown why Facebook did this, they also has broken links pointing to non-existing file.
Because of this Dolphin based sites are getting errors on view content pages. Since this file is cached locally, problem will occur after the cache is cleared.
It's recommended to apply the following fix until we release new version with the fix.
Place attached FacebookLocales.xml file into /plugins/facebook-php-sdk/ folder.
Then change path in /inc/classes/BxDolSocialSharing.php file as the following:
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
Rules → http://www.boonex.com/terms |
I have a problem with a module. And should this post solve my problem? I had tried to follow your instruction but it didn't helped.
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php on line 1107
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Not Found <br /><a href="http://www.facebook.com/">Back to Facebook.</a> in /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php on line 1107
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php on line 1107
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php:1107 Stack trace: #0 /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php(1107): SimpleXMLElement->__construct('Not Found <br /...') #1 /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php(1088): BxFMyLifeModule->_getLocalesFacebook() #2 /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php(1021): BxFMyLifeModule->_getLocaleFacebook('ru') #3 /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeTemplate.php(103): BxFMyLifeModule->getSocialShare(Array) #4 /home/eurorune/public_html/inc/classes/BxDolTwigSearchResult.php(37): BxFMyLifeTemplate->unit(Array, 'unit', Object(BxFMyLifeVoting)) #5 /home/eurorune/public_html/templates/base/scripts/BxBaseSearchResult.php(46): BxDolTwigSearchResult->displaySearchUnit(Array) #6 /home/eurorune/public_html/modules/modzzz/fmylife/c in /home/eurorune/public_html/modules/modzzz/fmylife/classes/BxFMyLifeModule.php on line 1107
|
I have a problem with a module. And should this post solve my problem? I had tried to follow your instruction but it didn't helped.
This indeed fixes those errors. Make sure the file was uploaded to /plugins/facebook-php-sdk and the line in /inc/classes/BxDolSocialSharing.php was updated.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
@AlexT
This might be a good time to look for other direct links to third party code that could go bye bye.
Geeks, making the world a better place |
I second this! Not every owner of a Dolphin side can change important things - change files - on his server at every time.
I think no third party website should have the power to bring with changes to the own code other websides down!
Greetings
Klaus
@AlexT
This might be a good time to look for other direct links to third party code that could go bye bye.
|
I have a problem with a module. And should this post solve my problem? I had tried to follow your instruction but it didn't helped.
This indeed fixes those errors. Make sure the file was uploaded to /plugins/facebook-php-sdk and the line in /inc/classes/BxDolSocialSharing.php was updated.
First I had updated the line in /inc/classes/BxDolSocialSharing.php and then I had uploaded the file but I had to create a new folder named "facebook-php-sdk" in /plugins/. Because I didn't have it. Is that alright?
|
Thanks for the update, much appreciated and implemented.
All the best.
Enhance Your Onlne Experience. 4eLife.com |
Everyday is a new beginning. |
Is it anyone that can help apply with these fixes and me with these changes |
Is it anyone that can help apply with these fixes and me with these changes
Pm me or add me on skype at Expertzkris. I will help you.
"Your future is created by what you do today, not tomorrow." @ www.dexpertz.net |
Thanks for the email alert! I was freaking out what caused several modules to implode. Everything back up and running now :-) |
|
First I had updated the line in /inc/classes/BxDolSocialSharing.php and then I had uploaded the file but I had to create a new folder named "facebook-php-sdk" in /plugins/. Because I didn't have it. Is that alright?
Yes, if you are running an older version of Dolphin that folder may not exist, just create it and upload the file as outlined in the instructions.
Geeks, making the world a better place |
I must agree. I am not a programmer. When I have issues I must figure out if it's from the host or boonex. I never thought it would be from facebook. I have just solved some issues with the host, now the advice I got about the facebook issue became relevant.
Boonex is awesome, when it works!
|
I applied the patch to my site last night no change so far.
Once I click the blog to edit or view I get this stuff:
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php on line 110
Warning: SimpleXMLElement::__construct(): Not Found <br /><a href="http://www.facebook.com/">Back to Facebook.</a> in /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php on line 110
Warning: SimpleXMLElement::__construct(): ^ in /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php on line 110
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php:110 Stack trace: #0 /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php(110): SimpleXMLElement->__construct('Not Found <br /...') #1 /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php(91): BxDolSocialSharing->_getLocalesFacebook() #2 /home/ujimaliv/public_html/templates/base/scripts/BxBaseSocialSharing.php(34): BxDolSocialSharing->_getLocaleFacebook('en_GB') #3 /home/ujimaliv/public_html/modules/boonex/blogs/classes/BxBlogsModule.php(1292): BxBaseSocialSharing->getCode('http://ujimaliv...', 'Beyond Obama', false) #4 /home/ujimaliv/public_html/modules/boonex/blogs/classes/BxBlogsModule.php(68): BxBlogsModule->getPostSocialSharingBlock() #5 /home/ujimaliv/public_html/inc/classes/BxDolPageView.php(399): BxDolBlogsPageView->getBlockCode_PostSocialSharing(110, '') #6 /home/ujimaliv/public_html/inc/classes/BxDolPageView.php(315): BxDolPageView->genBloc in /home/ujimaliv/public_html/inc/classes/BxDolSocialSharing.php on line 110
|
Please recheck the modification, it looks like it wasn't applied correctly.
I applied the patch to my site last night no change so far.
Rules → http://www.boonex.com/terms |
First of all why does the scrip rely on an outside source anyway. But applied the fix for a client and still doesn't work. Followed you instructions to the letter. But then it should be boonex that fixes it right, I spent good money to have a working item. Where is the batch? |
Thanks for this, been pulling my hair out wondering why images and events wouldn't load.
This has sorted it :-)
Thanks,
Dave
|
Boonex is awesome, when it works!
And when did you work normally?
Panfilov |
Is it anyone that can help apply with these fixes and me with these changes
Yes for money you will do everything. First you are offered an update. After that, nothing works. Then you will be offered super hosting. Then a super expert who will fix bugs, a new update and a super hosting.
Panfilov |
У меня есть проблема с модулем. И если этот пост решить мою проблему? Я пытался следовать вашей инструкции, но это не помогло.
Интересно, почему возникают эти проблемы? Значит это кому нибудь нужно...
Panfilov |
Always remember that the future comes one day at a time. |
Thank you for the reminder, it has been fixed.
Rules → http://www.boonex.com/terms |
I have followed all the instructions and it did worked once.
However, it is not working now and I face the same errors as earlier.
I have made several attempts over the past couple of weeks to make it work. I guess the Gods of Codes are not happy with me.
Does it have anything to do with the hosting provider ?
Am I missing any key points apart from the instructions mentioned above ?
Please help me !!
|
@dxnation try to attach your modified BxDolSocialSharing.php file here, so somebody can point out the problem for you. Rules → http://www.boonex.com/terms |
I removed facebook connect completely from dolphin, and my pictures, blogs ect worked, today they have stopped working dispite having no facebook. whats going on here? |
This has to do with Sharing, not Facebook Connect. You still need to apply the fix.
I removed facebook connect completely from dolphin, and my pictures, blogs ect worked, today they have stopped working dispite having no facebook. whats going on here?
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Must log-in to Boonex Forums more often.
~~~~~~~~~~~~~~~~~~~~~~ Michel ✈ Meta-Travel.com ~~~~~~~~~~~~~~~~~~~~~~
TravelNotes.org - The Online Guide to Travel |
I have received a reply from support advising me this could fix my website content pages and more. I am not at all familiar on even how to begin this process. Even with the information i have received. Any suggestions for a newbie such as myself? |
i spoke with my hosting company to install this fix and they advised me that the arent able to find the sdk file needed |
i spoke with my hosting company to install this fix and they advised me that the arent able to find the sdk file needed
This file can be downloaded by this URL:
https://www.boonex.com/forums/?action=download&hash=KcyZtY5Dre
Rules → http://www.boonex.com/terms |
I have recently made this change as you requested I also have changed hosting services that has tried to resolve some of the issue i have been having on website resolved by trying to upgrade the version of dolphin . When trying to do so, wasnt able get the website to load properly is the response i received from host. They have advised me to have a developer of dolphin try to perform upgrade. Knowing the hosting service im trying to use offers to do the upgrades of dolphin version for free is there any suggestions on resolving this issue. |
I have recently made this change as you requested I also have changed hosting services that has tried to resolve some of the issue i have been having on website resolved by trying to upgrade the version of dolphin . When trying to do so, wasnt able get the website to load properly is the response i received from host. They have advised me to have a developer of dolphin try to perform upgrade. Knowing the hosting service im trying to use offers to do the upgrades of dolphin version for free is there any suggestions on resolving this issue.
What version are you currently using?
Geeks, making the world a better place |
I am currently using 7.2.0 version |
I have recently made this change as you requested I also have changed hosting services that has tried to resolve some of the issue i have been having on website resolved by trying to upgrade the version of dolphin . When trying to do so, wasnt able get the website to load properly is the response i received from host. They have advised me to have a developer of dolphin try to perform upgrade. Knowing the hosting service im trying to use offers to do the upgrades of dolphin version for free is there any suggestions on resolving this issue.
What version are you currently using?
I am using version7.2.0
|
I recently ran into this issue also with the social sharing and found a solution after a lot of searching! If you are running the most recent version of Dolphin, then the above patch won't really help you.
What worked for me is going to line 110 in inc/classes/BxDolSocialSharing.php and find:
$xmlLocates = new SimpleXMLElement($sXML);
switch it to;
$xmlLocates = new SimpleXMLElement('/your/path/to/plugins/facebook-php-sdk/FacebookLocales.xml',null,true); You can get the path to the file by looking at the error message. You could technically just leave it there and be good to go.
After I cleared the cache and reloaded the page I was having an issue with, I found it to be working. Just out of curiosity to see if that was the final solution, I reset line 110 to
$xmlLocates = new SimpleXMLElement($sXML,null,true);
and it continued working properly, so inserting the path to the xml must have re-set something in the database. Hope this can help someone else out!
I found the following info helpful in resolving this issue: You gotta use TRUE to specify that data is a path or URL to an XML document instead of string data, as per http://php.net/manual/en/simplexmlelement.construct.php
|
I fixed error inc/classes/BxDolSocialSharing.php on line 110: by changing this:
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
to this
$sXML = bx_file_get_contents ($dir['root'].'plugins/facebook-php-sdk/FacebookLocales.xml');
/inc/classes/BxDolSocialSharing.php line 107
I do not understand enough to know why it works like this
|
Hello matp!
Sorry, but this replacement is useless because BX_DOL_URL_ROOT constant has the same value as $dir['root'] variable. Maybe the original reason has gone away and you may revert your change back.
|