All of a sudden content has just stopped loading. It is still there on the event pages, photo pages. Just the actual content when you open it is popping a 500 error. So if I went to photos and loaded a photo that is when I am getting the 500 error. I haven't changed anything.This happened out of nowhere. Database and server seem fine. I tried restarting apache, and sql, and then a full restart and still the same issues. I alo cleared public cache and reg cache. Anyone got any ideas? |
We have the same issue with the pictures of one member. The thumbs are shown, the click to the thumb leads to a blank page wit 500 error. |
Yeah that is where this seemed to happen was when a member had uploaded an image and change their profile picture. I deleted all the photos they uploaded just to see if it was the images themselves. How it is affecting all content loading is beyond me. |
You should check the site's error_log file for any error messages. If this involves photos, make sure PHP has EXIF support, which is needed for uploads to work. You can check if everything is in order from the Admin Panel => Tools => Host Tools. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Same Problem here ? How can i fix it ? Loading content will cause http error 500 ?
PHP: 5.4.45-1~dotdeb+7.1 - OK
- allow_url_fopen = On - OK
- allow_url_include = Off - OK
- magic_quotes_gpc = Off - OK
- memory_limit = 2147483648 - OK
- post_max_size = 268435456 - OK
- upload_max_filesize = 268435456 - OK
- register_globals = Off - OK
- safe_mode = Off - OK
- disable_functions = show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen - OK
- php module: curl = curl - OK
- php module: gd = gd - OK
- php module: mbstring = mbstring - OK
- php module: xsl = xsl - OK
- php module: json = json - OK
- php module: fileinfo = fileinfo - OK
- php module: openssl = openssl - OK
- php module: zip = zip - OK
- php module: ftp = ftp - OK
- php module: calendar = calendar - OK
- php module: exif = exif - OK
|
This may be related to a new issue that's cropped up because of Facebook deleting a needed XML file from their site. Here's a quick work around that should work until something proper can be done.
Edit /inc/classes/BxDolSocialSharing.php and look for:
$sXML = bx_file_get_contents ('http://www.facebook.com/translations/FacebookLocales.xml');
Replace it with this code to a local copy of the file instead (I've attached it below - thanks AlexT for the new code):
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
WOW Fast Support. Works Fine. THX |
I would suggest to place FacebookLocales.xml into /plugins/facebook-php-sdk/ folder.
Then change path in /inc/classes/BxDolSocialSharing.php file:
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
Issue created:
Rules → http://www.boonex.com/terms |
Hello!
Thanks for quick respond and quick solution.
Just wonder what is the reason that FB removed the URL
'http://www.facebook.com/translations/FacebookLocales.xml'
Anyway it all works again with provided solution.
Kind regards
Mayki
"When things get tough the tough get going..." |
The plugin approach working for me with the photo issue.
Thanks
I would suggest to place FacebookLocales.xml into /plugins/facebook-php-sdk/ folder.
Then change path in /inc/classes/BxDolSocialSharing.php file:
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
Issue created:
|
You guys are great! This workaround fixed our photo issue as well!
Thanks!
Greetings
Klaus
|
Awesome I was like at my last brain cell :P Thank You so much! It is so strange bc the error did not show this so I was just so confused. I was about to start deleting plugins. |
Great solution, Thanks Alex!
This is the error my site was getting and this solution knocked it out:
PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/chatmilitary/public_html/inc/classes/BxDolSocialSharing.php:110\nStack trace:\n#0 /home/chatmilitary/public_html/inc/classes/BxDolSocialSharing.php(110): SimpleXMLElement->__construct('Not Found <br /...')\n#1 /home/chatmilitary/public_html/inc/classes/BxDolSocialSharing.php(91): BxDolSocialSharing->_getLocalesFacebook()\n#2 /home/chatmilitary/public_html/templates/base/scripts/BxBaseSocialSharing.php(34): BxDolSocialSharing->_getLocaleFacebook('En_US')\n#3 /home/chatmilitary/public_html/modules/boonex/photos/classes/BxPhotosPageView.php(238): BxBaseSocialSharing->getCode('http://chatmili...', 'New Mask Inspec...', Array)\n#4 /home/chatmilitary/public_html/inc/classes/BxDolPageView.php(399): BxPhotosPageView->getBlockCode_SocialSharing(248, '')\n#5 /home/chatmilitary/public_html/inc/classes/BxDolPageView.php(315): BxDolPageView->genBlock(248, Array)\n#6 /home/chatmilitary/public_html/inc/classes/BxDolPageView.php(223): BxDolPageV in /home/chatmilitary/public_html/inc/classes/BxDolSocialSharing.php on line 110, referer:
|
Worked perfectly. Thank you for the quick fix! |
The question is why was there a direct link to FaceSucks in the code in the first place? This reminds me of a library that everyone was linking to for a small php file and when the library was removed millions of sites would not load. You never have any control over any third party site. Geeks, making the world a better place |
My groups where also showing 500 errors. Used this patch and works perfect. Ty all |
Awesome - this worked. @gg - you are so right about not having third party sites resources hard coded in. This was a good example of why not to do it. Gary http://molosserdogs.com |
http://liveparanormal.com/m/news/view/Presenting-from-The-Dead-Files-Mr-Steve-DiSchiavi
I tried editing the folder as outlined above. Not sure what I did wrong but ut didnt work. Where is the plug in folder? Do i create the facebook folder within? I tried it didnt work!
|
I tried editing the folder as outlined above. Not sure what I did wrong but ut didnt work. Where is the plug in folder? Do i create the facebook folder within? I tried it didnt work!
The plugins folder is in the root Dolphin folder, and can be accessed via FTP or your control panel's file manager. If you don't mind sending me your login details in a PM, I can apply the fixes for you.
Also note that older sites (like 7.1) will not have a /plugins/facebook-php-sdk folder. In that case, upload the file either into the main plugins folder or elsewhere, and update the file's URL line accordingly.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
My biggest question is: Why nobody communicated this to the site owners who have a license?
Obviously, this is a serious problem and a lot of people are having it.
I would expect support to be bit more proactive.
Clement
|
Hello folks. Nathan was gracious enough to help me apply the change outlined above, but I am still firing an error. Any ideas? Can the social box just be removed? http://liveparanormal.com/m/news/view/Presenting-from-The-Dead-Files-Mr-Steve-DiSchiavi |
Hello folks. Nathan was gracious enough to help me apply the change outlined above, but I am still firing an error. Any ideas? Can the social box just be removed? http://liveparanormal.com/m/news/view/Presenting-from-The-Dead-Files-Mr-Steve-DiSchiavi
It's all fixed.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Where do I find FacebookLocales.xml ?
I would suggest to place FacebookLocales.xml into /plugins/facebook-php-sdk/ folder.
Then change path in /inc/classes/BxDolSocialSharing.php file:
$sXML = bx_file_get_contents (BX_DOL_URL_ROOT . 'plugins/facebook-php-sdk/FacebookLocales.xml');
Issue created:
|
Here in these postings. Nathan Paton had added this file in one of his postings in this thread
I will add it here too
|
Thank you for posting the code. I made the changes as suggested and it worked.
However, I posted a new article on the site and now I am seeing the same error. Does it have anything to do with the images posted on the article ?
The link: http://thestartuphub.in/m/news/view/Fight-Air-Pollution-with-Smogathon-2017
The error:
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolSocialSharing.php:110 Stack trace: #0 /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolSocialSharing.php(110): SimpleXMLElement->__construct('<html>??<head><...') #1 /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolSocialSharing.php(91): BxDolSocialSharing->_getLocalesFacebook() #2 /home/dxnation/public_html/thestartuphub.in/templates/base/scripts/BxBaseSocialSharing.php(34): BxDolSocialSharing->_getLocaleFacebook('en_IN') #3 /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolTextModule.php(132): BxBaseSocialSharing->getCode('http://thestart...', 'Fight Air Pollu...') #4 /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolTextPageView.php(42): BxDolTextModule->getBlockSocialSharing('Fight-Air-Pollu...') #5 /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolPageView.php(399): BxDolTextPageView->getBlockCode_SocialSha in /home/dxnation/public_html/thestartuphub.in/inc/classes/BxDolSocialSharing.php on line 110
Your help will be highly appreciated.
|
However, I posted a new article on the site and now I am seeing the same error. Does it have anything to do with the images posted on the article ? The link: http://thestartuphub.in/m/news/view/Fight-Air-Pollution-with-Smogathon-2017
Please apply the following modification:
https://www.boonex.com/forums/topic/FacebookLocales-xml.htm
Rules → http://www.boonex.com/terms |