Skip to content
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

Argument 1 passed to craft\services\Sites::getSiteById() must be of the type integer #66

Open
england9911 opened this issue Aug 15, 2019 · 1 comment

Comments

@england9911
Copy link

When exporting various things, in my case sections, I kept running into the error:

Argument 1 passed to craft\services\Sites::getSiteById() must be of the type integer, string given, called in /vendor/pennebaker/craft-architect/src/base/Processor.php on line 297

The fix for this is pretty straightforward, I haven't added a PR for this as it doesn't look like they're being accepted here(?)

Anyway, if you open the mentioned file above and change line 297:

$site = Craft::$app->sites->getSiteById(($sites);

to

$site = Craft::$app->sites->getSiteById((int) $sites);

You should be able to continue!

@brandondeweese
Copy link

Is this plugin still supported? I've gotten this error for almost a year now....hoping this would finally get fixed at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants