HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Error in Facebook Addon

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100959 (In Topic #19805)

Honoured member

Fatal error: Call to protected method BaseFacebook::getUserAccessToken() from context

Hi, Yesterday I made some changes to the Facebook syndication / login section inside "Adminzone / Setup / Configuration / Feature / Facebook syndication / login" notably checking the boxes:
  • Allow Facebook logins
  • Automatically enable syndication
  • Option to syndicate to a Facebook page
However, afterwards about every other visit to the site resulted in the following error.  I've went back and unchecked these options, but thought I should report the error.

Code

Fatal error: Call to protected method BaseFacebook::getUserAccessToken() from context
'' in /home1/catcom/public_html/sources_custom/facebook_connect.php on line 308
Critical error - bailing out
This is an error that has been elevated to critical error status because it occurred
during the primary error mechanism reporting system itself (possibly due to it occuring
within the standard output framework). It may be masking a secondary error that occurred
before this, but was never output - if so, it is likely strongly related to this
one, thus fixing this will fix the other.
PHP ERROR [1] Call to protected method BaseFacebook::getUserAccessToken() from context
'' in sources_custom/facebook_connect.php on line 308 (version: 9.0.9, PHP version:
5.2.17, URL: /cms/index.php?page=cms_cedi&type=edit_page&id=1%2F99%2F94&redirect=http%3A%2F%2Fchipandtracy.com%2Findex.php%3Fpage%3Dcedi%26type%3Dmisc%26id%3D1%252F99%252F94&refreshed_once=1)
Stack trace...
File -> '/home1/catcom/public_html/sources/failure.php'
Line -> 796
Function -> 'die_html_trace'
Args -> array
File -> '/home1/catcom/public_html/sources/global2.php'
Line -> 1042
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to protected method BaseFacebook::getUserAccessToken()
from context \'\' in sources_custom/facebook_connect.php on line 308', )
File -> '/home1/catcom/public_html/sources/failure.php'
Line -> 224
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP ERROR [1] Call to protected method BaseFacebook::getUserAccessToken()
from context \'\' in sources_custom/facebook_connect.php on line 308', )
File -> '/home1/catcom/public_html/sources/global2.php'
Line -> 905
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'error', 1 => 1, 2 => 'Call to protected method BaseFacebook::getUserAccessToken()
from context \'\'', 3 => 'sources_custom/facebook_connect.php', 4 => 308, )
File -> '/home1/catcom/public_html/sources/global2.php'
Line -> 840
Function -> 'ocportal_error_handler'
Args -> array ( 0 => 1, 1 => 'Call to protected method BaseFacebook::getUserAccessToken()
from context \'\'', 2 => '/home1/catcom/public_html/sources_custom/facebook_connect.php',
3 => 308, )
Function -> 'catch_fatal_errors'
Args -> array ( )
Details here are intended only for the website/system-administrator, not for regular
website users.
If you are a regular website user, please let the website staff deal with this
problem.
Depending on the error, and only if the website installation finished, you may need
to
edit the installation options
 (the info.php file).
ocProducts maintains full documentation for all procedures and tools. These may be
found on the
ocPortal website
. If you are unable to easily solve this problem, we may be contacted from our website
and can help resolve it for you.
ocPortal
 is a
CMS
 for building websites, developed by ocProducts.
Back to the top
 
Posted
Rating:
#100960
Avatar

Hi,

Yes, sorry there is a bug in the "Automatically enable syndication" option. I think I have since pushed a new version of the addon, but if not it will be when there's a new patch release.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#101013

Honoured member

Hi Chris, thanks. I see that there has been an update. Should've look before posting. Sorry about that. I've applied the update and haven't had those errors since.
Back to the top
 
There are too many online users to list.
Control functions:
 Add topic 

Quick reply   Contract

Your name:
Your message: