Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When configuring rules, and selecting an action, i'd like to choose "publish to facebook page" but i get "Unsupported operand types in public_html/includes/form.inc on line 2624" via an ajax call when i pick it.
ideas?
Comments
Comment #1
nally CreditAttribution: nally commentedTurns out it's happening for all action types. This must be an issue in some other module.
Comment #2
nally CreditAttribution: nally commentedComment #3
nally CreditAttribution: nally commentedHere is the code context around that error. 2624 is the $element['#options'] assignment near the end.
I'm wondering whether one of $empty_option or $element['#options'] is somehow NULL, and whether that matters.
Comment #4
nally CreditAttribution: nally commentedIt's definitely as issue of $element['#options'] coming up blank. I'm trying to get this to work with Facebook Autopost. Here's a stack trace.
Comment #5
nally CreditAttribution: nally commentedComment #6
nally CreditAttribution: nally commentedI'm also getting "Cannot ask for user accounts without an access token." as an error occasionally at a watchdog style error, as has been mentioned elsewhere. Perhaps this is related to that.
Comment #7
e0ipsoIs it still happening with other rules actions? If so, then I don't think this is the right place to solve you issue, you will probably need support by the rules team.
Comment #8
e0ipsoComment #9
nally CreditAttribution: nally commentedThe problem only occurs when Facebook Autopost Entity is enabled. Can I provide any more specific information? I'll be trying to dig deeper on this.
Comment #10
e0ipso@nally thanks!
Please provide as much information as possible so me (or anyone else) can fix this bug.
Thanks for contributing to the issue queue!
Comment #11
nally CreditAttribution: nally commentedI got past the "Cannot ask for user accounts without an access token." issue. Doing this involved enabling fb_autopost first, and then configuring the FB app BEFORE later adding the entity module.
(Also, in order to get that to work, I needed to take the execution time limit for PHP off as well, as is mentioned in another issue: 2248453)
Comment #12
e0ipsoThank you @nally! I hope this fixes it for other people too.