Facebook share URL errors on some shares

Post By:user_67233 | Reply

Using plugin bt_socialshare.

Go to a site article, click Facebook share.

In some instances, the facebook.com/sharer/ window shows the article headline and excerpt to share.

But in other instances, it shows the URL instead of a headline, and this message instead of an excerpt:
Code:
: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "JCategoryNode" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class…


We recently added code to force SSL on all pages. I found if I altered the shared page to non-SSL that the error was resolved. I can't use this as a solution because it would invalidate the https pages with insecure content (and because I don't know how to make exceptions for insecure content to share).

Example:
This link will generate the error message:
Code:
https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.planetherbs.com%2Fcase-studies%2Fa-history-of-herbalism-for-herbalists-part-1-how-the-arabs-saved-greek-sciences.html&t=A+History+of+Herbalism+for+Herbalists%2C+Part+1%3A+How+the+Arabs+Saved+Greek+Sciences


This link will display a shareable headline and excerpt. The only difference is the "u" parameter receives an http rather than an https address:

Code:
https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.planetherbs.com%2Fcase-studies%2Fa-history-of-herbalism-for-herbalists-part-1-how-the-arabs-saved-greek-sciences.html&t=A+History+of+Herbalism+for+Herbalists%2C+Part+1%3A+How+the+Arabs+Saved+Greek+Sciences


Some articles work OK without altering them to non-SSL:
Code:
https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.planetherbs.com%2Fcase-studies%2Ftreatment-of-a-difficult-case-of-psoriasis.html&t=Treatment+of+a+Difficult+Case+of+Psoriasis


Some people get this error message and fix it by adding a require_once statement to modules/mod_articles_categories/helper.php, but this didn't help here.
Code:
require_once JPATH_LIBRARY . '/legacy/categories/categories.php'; to modules/mod_articles_categories/helper.php


I know there are some items requiring updating but we had so many errors after updating to Joomla 3.3.3 that I need to create a dev site for testing before doing any more upgrades.

We also recently turned off cache completely as a defensive move, I'm not sure it helped and the site is slower.


Problem Description :: Forum Post Assistant (v1.2.4) : 22nd August 2014 wrote:
Facebook sharer generates fatal Joomla error
Log/Error Message :: Forum Post Assistant (v1.2.4) : 22nd August 2014 wrote:
: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "JCategoryNode" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class…
Actions Taken To Resolve by Forum Post Assistant (v1.2.4) 22nd August 2014 wrote:
added require_once JPATH_LIBRARY . '/legacy/categories/categories.php'; to modules/mod_articles_categories/helper.php, had no effect on the problem.
Forum Post Assistant (v1.2.4) : 22nd August 2014 wrote:
Basic Environment :: wrote:
Joomla! Instance :: Joomla! 3.3.3-Stable (Ember) 25-July-2014
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Read-Only (444) | Owner: planet (uid: 1/gid: 1) | Group: planet (gid: 1) | Valid For: 3.3
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 1 | SEF ReWrite: 1 | .htaccess/web.config: Yes | GZip: 1 | Cache: 0 | FTP Layer: 0 | SSL: 1 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.32-279.14.1.el6.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip,deflate,sdch | Doc Root: /home/planet/public_html | System TMP Writable: Yes

PHP Configuration :: Version: 5.4.31 | PHP API: cgi-fcgi | Session Path Writable: No | Display Errors: 1 | Error Reporting: 22519 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 1024M | Max. POST Size: 1024M | Max. Input Time: -1 | Max. Execution Time: 30 | Memory Limit: 128M

MySQL Configuration :: Version: 5.6.17-log (Client:5.6.17) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 209.29 MiB | #of Tables:  526
Detailed Environment :: wrote:
PHP Extensions :: Core (5.4.31) | date (5.4.31) | ereg () | libxml () | openssl () | pcre () | sqlite3 (0.7) | zlib (2.0) | bcmath () | calendar () | ctype () | curl () | dom (20031129) | hash (1.0) | filter (0.11.0) | ftp () | gd () | gettext () | SPL (0.2) | iconv () | session () | json (1.2.1) | mbstring () | mcrypt () | standard (5.4.31) | mysql (1.0) | mysqli (0.1) | mysqlnd (mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $) | Phar (2.0.1) | posix () | pspell () | Reflection ($Id: f6367cdb4e3f392af4a6d441a6641de87c2e50c4 $) | imap () | SimpleXML (0.1) | soap () | sockets () | exif (1.4 $Id$) | tidy (2.0) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlrpc (0.51) | xmlwriter (0.1) | xsl (0.1) | zip (1.11.0) | cgi-fcgi () | PDO (1.0.4dev) | pdo_mysql (1.0.2) | ionCube Loader () | Zend Engine (2.4.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:
Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) ::
Extensions Discovered :: wrote:
Components :: SITE :: com_mailto (3.0.0) | Default SobiPro Template (1.0) | Wrapper (3.0.3) | Contacts (3.0.3) | Banners (3.0.3) | Content (3.0.8) | Mail To (3.0.1) | NewsFeeds (3.0.3) | SobiPro (3.0.5) | Search (3.0.4) | WebLinks (3.0.4) | K2 (3.0.14) | Users (3.0.3) | Tags (3.0.0) | com_wrapper (3.0.0) |
Components :: ADMIN :: com_postinstall (3.2.0) | COM_SNIPPETS (3.2.5PRO) | com_tags (3.1.0) | com_cache (3.0.0) | com_xmap (2.3.4) | com_finder (3.0.0) | com_languages (3.0.0) | com_users (3.0.0) | com_plugins (3.0.0) | com_menus (3.0.0) | com_messages (3.0.0) | com_config (3.0.0) | com_redj (1.7.2) | COM_SPUPGRADE (3.0.18) | com_cpanel (3.0.0) | com_contenthistory (3.2.0) | Unknown (-) | COM_NONUMBERMANAGER (4.2.8) | com_checkin (3.0.0) | Securitycheck (2.7.0) | com_media (3.0.0) | com_login (3.0.0) | OSE_FIREWALL (3.6.8) | AceSEF (4.0.0) | Wrapper (1.5.0) | AceShop (1.5.6) | Contact (1.5.3) | AceSEF (1.5.1) | Banners (1.5.2) | Content (1.5.12) | Mail To (1.5.1) | News Feeds (1.5.1) | Search (1.5.1) | Web Links (1.5.1) | K2 (1.5.18) | Users (1.5.0) | com_installer (3.0.0) | com_ajax (3.2.0) | com_banners (3.0.0) | mod_k2_comments (-) | mod_k2_comments (-) | COM_K2 (2.6.7) | com_joomlaupdate (3.0.0) | com_redirect (3.0.0) | System - JoomlaLMS (1.3.0) | JLMS system mambot (1.3.0) | System - JoomlaLMS (1.2.0) | Joomla_LMS (1.3.0) | com_newsfeeds (3.0.0) | com_categories (3.0.0) | COM_ACESHOP (4.0.0) | com_modules (3.0.0) | com_weblinks (3.0.0) | Akeeba (3.11.4) | Gantry (4.1.10) | SobiPro (1.1.1) | com_content (3.0.0) | com_admin (3.0.0) | Admintools (3.0.3) | RSForm! (1.4.0 R46) | com_incapsula (1.4.8) | com_search (3.0.0) | com_sef (4.5.0) | Extension Install - ARTIO Joom (4.1.1) | Content - ARTIO JoomSEF (4.0.0) | System - ARTIO JoomSEF Google (4.0.0) | System - ARTIO JoomSEF (4.0.1) | System - ARTIO JoomSEFURL (4.0.0) | System Language - ARTIO JoomSE (4.1.0) | com_templates (3.0.0) |

Modules :: SITE :: K2 Content (2.6.7) | Filtered News (2.5.1) | RokAjaxSearch (2.0.0) | JoomlaLMS Announcements (1.3.0) | JoomlaLMS Announcements (1.3.0) | mod_articles_categories (3.0.0) | Boss Key (0.1) | mod_search (3.0.0) | mod_languages (3.0.0) | mod_banners (3.0.0) | JoomlaLMS Dropbox (1.3.0) | JoomlaLMS Dropbox (1.3.0) | MOD_ITPFBLIKEBOX (1.7) | mod_tags_popular (3.1.0) | mod_finder (3.0.0) | K2 Comments (2.6.7) | K2 User (2.6.7) | mod_tags_similar (3.1.0) | mod_syndicate (3.0.0) | mod_stats (3.0.0) | Custom HTML advanced (2.3) | mod_articles_popular (3.0.0) | mod_footer (3.0.0) | mod_login (3.0.0) | JoomlaLMS Certificates (1.3.0) | JoomlaLMS Certificates (1.3.0) | mod_articles_news (3.0.0) | JoomlaLMS Homework (1.3.0) | JoomlaLMS Homework (1.3.0) | mod_custom (3.0.0) | mod_articles_archive (3.0.0) | mod_whosonline (3.0.0) | AceShop - All-in-One (1.0.1) | mod_weblinks (3.0.0) | mod_articles_latest (3.0.0) | mod_menu (3.0.0) | K2 Users (2.6.7) | K2 Tools (2.6.7) | mod_users_latest (3.0.0) | Constant Contact Signup Majix (1.3.1) | mod_feed (3.0.0) | mod_articles_category (3.0.0) | mod_related_items (3.0.0) | mod_wrapper (3.0.0) | mod_random_image (3.0.0) | mod_breadcrumbs (3.0.0) | JoomlaLMS Forum Posts (1.3.0) | JoomlaLMS Forum Posts (1.3.0) | RokNavMenu (2.0.4) | JoomlaLMS MailBox (1.3.0) | JoomlaLMS MailBox (1.3.0) |
Modules :: ADMIN :: mod_title (3.0.0) | mod_latest (3.0.0) | mod_multilangstatus (3.0.0) | mod_stats_admin (3.0.0) | AceShop - Quick Icons (1.0.0) | K2 Quick Icons (admin) (2.6.7) | mod_logged (3.0.0) | mod_status (3.0.0) | K2 Stats (admin) (2.6.7) | mod_login (3.0.0) | mod_custom (3.0.0) | mod_version (3.0.0) | mod_quickicon (3.0.0) | mod_menu (3.0.0) | mod_toolbar (3.0.0) | mod_feed (3.0.0) | mod_popular (3.0.0) | AceSEF - Quick Icons (1.7.0) | mod_submenu (3.0.0) | MOD_CACHECLEANER (3.3.1PRO) |

Plugins :: SITE :: plg_extension_joomla (3.0.0) | Extension Install - ARTIO Joom (4.1.1) | plg_installer_webinstaller (1.0.5) | plg_content_pagebreak (3.0.0) | plg_content_emailcloak (3.0.0) | Content - SP Share (1.4.0) | plg_content_finder (3.0.0) | AllVideos (by JoomlaWorks) (4.5.0) | AllVideos (by JoomlaWorks) (4.5.0) | Content - AceShop (1.0.0) | plg_content_joomla (3.0.0) | plg_content_loadmodule (3.0.0) | Content - JoomlaLMS Squeezebox (1.3.0) | DirectPHP (3.0) | Content - ARTIO JoomSEF (4.0.0) | Content - BT Social Share (2.3.2) | plg_content_pagenavigation (3.0.0) | plg_content_vote (3.0.0) | PLG_JMONITORING_AKEEBABACKUP_T (1.0) | PLG_SYSTEM_CACHECLEANER (3.3.1PRO) | manage.myJoomla.com Secure Plu (n/a) | plg_system_redj (1.7.2) | plg_system_redirect (3.0.0) | plg_system_sef (3.0.0) | plg_system_debug (3.0.0) | System - Gantry (4.1.10) | System - AceShop Redirect (1.0.0) | AceSEF - System (1.7.0) | Security - jHackGuard (1.4.2) | plg_system_highlight (3.0.0) | System - K2 (2.6.7) | PLG_SYSTEM_SNIPPETS (3.2.5PRO) | System - AceShop jQuery (1.0.0) | System - RokExtender (2.0.0) | System - ARTIO JoomSEF Google (4.0.0) | PLG_SYSTEM_NNFRAMEWORK (13.11.11) | System - Admin Tools (3.0.3) | System - JoomlaLMS (1.3.0) | PLG_SYSTEM_MODALS (4.6.1PRO) | plg_system_cache (3.0.0) | plg_system_languagefilter (3.0.0) | PLG_SYSTEM_JQUERYEASY (1.5.5) | AceSEF Meta Manager (Content) (1.7.0) | PLG_SYSTEM_SOURCERER (4.2.5PRO) | System - ARTIO JoomSEF (4.0.1) | plg_system_logout (3.0.0) | plg_system_log (3.0.0) | System Language - ARTIO JoomSE (4.1.0) | PLG_SYSTEM_SSLREDIRECT (0.9.8) | System - Securitycheck (2.7.0) | System - Marco's SQL Injection (1.4) | plg_system_kunena (3.0.1) | plg_system_languagecode (3.0.0) | plg_system_p3p (3.0.0) | plg_system_remember (3.0.0) | plg_finder_tags (3.0.0) | plg_finder_k2 (2.6.7) | plg_finder_newsfeeds (3.0.0) | plg_finder_content (3.0.0) | plg_finder_weblinks (3.0.0) | plg_finder_categories (3.0.0) | plg_finder_contacts (3.0.0) | plg_authentication_gmail (3.0.0) | plg_authentication_cookie (3.0.0) | plg_authentication_joomla (3.0.0) | plg_authentication_ldap (3.0.0) | plg_user_profile (3.0.0) | plg_user_contactcreator (3.0.0) | User - K2 (2.6.7) | User - AceShop (1.0.0) | plg_user_joomla (3.0.0) | plg_twofactorauth_totp (3.2.0) | plg_twofactorauth_yubikey (3.2.0) | plg_editors-xtd_pagebreak (3.0.0) | PLG_EDITORS-XTD_SNIPPETS (3.2.5PRO) | plg_editors-xtd_image (3.0.0) | plg_editors-xtd_readmore (3.0.0) | Button - Sourcerer (4.2.5PRO) | plg_editors-xtd_article (3.0.0) | plg_captcha_recaptcha (3.0.0) | plg_editors_codemirror (3.15) | plg_editors_tinymce (4.1.2) | XMAP_PLUGIN_K2 (1.3) | Xmap - WebLinks Plugin (2.0.1) | Xmap - SobiPro Plugin (2.0.2) | Xmap - Content Plugin (2.0.4) | Xmap - Mosets Tree Plugin (2.0.2) | Xmap - Virtuemart Plugin (2.0.3) | Xmap - Kunena Plugin (3.0.0) | Josetta - K2 Categories (2.6.7) | Josetta - K2 Items (2.6.7) | plg_search_tags (3.0.0) | Search - K2 (2.6.7) | plg_search_newsfeeds (3.0.0) | plg_search_content (3.0.0) | Search - AceShop (1.0.0) | plg_search_weblinks (3.0.0) | plg_search_categories (3.0.0) | plg_search_contacts (3.0.0) | plg_quickicon_extensionupdate (3.0.0) | plg_quickicon_joomlaupdate (3.0.0) | plg_quickicon_kunena (3.0.1) |
Templates Discovered :: wrote:
Templates :: SITE :: beez3 (3.1.0) | rt_hexeris (1.1) | protostar (1.0) |
Templates :: ADMIN :: isis (1.0) | hathor (3.0.0) |
`Reply Or Comment!
Please LogIn to Reply!