-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facebook Provider error when no cpTrigger
is defined (headless)
#36
Comments
So this helper function is really only there to generate the redirect URI for OAuth. I'm not sure why the When are you seeing this error exactly? |
@engram-design It's when we try to access the providers index |
Strange, I've got And just to verify Are you setting |
The issue seems to be caused by |
Right, gotcha. Setting |
We normally stick this at the top of our if (
$_SERVER['REQUEST_URI'] !== '/graph' &&
strpos($_SERVER['REQUEST_URI'], '.xml') === false
) {
define('CRAFT_CP', true);
} |
Description
The Facebook provider throws
Undefined array key "host"
when thecpTrigger
is not set (when Craft is in headless mode).Caused by this line in
SocialPosterHelper.php:25
https://github.com/verbb/social-poster/blob/craft-3/src/helpers/SocialPosterHelper.php#L25
The text was updated successfully, but these errors were encountered: