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

Updater evaluating bool instead of string. #232

Open
turbo124 opened this issue Aug 3, 2021 · 1 comment
Open

Updater evaluating bool instead of string. #232

turbo124 opened this issue Aug 3, 2021 · 1 comment

Comments

@turbo124
Copy link
Contributor

turbo124 commented Aug 3, 2021

We've been using the self-updater for quite a while and things are working perfectly. Recently we've seen the following error

[2021-08-02 21:17:29] production.ERROR: strlen() expects parameter 1 to be string, bool given {“userId”:1,“exception”:"[object] (TypeError(code: 0): strlen() expects parameter 1 to be string, bool given at /invoice/vendor/codedge/laravel-selfupdater/src/Models/UpdateExecutor.php:101)
[stacktrace]

        $sorted->each(function (SplFileInfo $directory) {
            if (! dirsIntersect(File::directories($directory->getRealPath()), config('self-update.exclude_folders'))) {
                File::copyDirectory(
                    $directory->getRealPath(),
                    Str::finish($this->basePath, DIRECTORY_SEPARATOR).Str::finish($directory->getRelativePath(), DIRECTORY_SEPARATOR).$directory->getBasename()
                );
            }

Any ideas of what could possibly be the cause?

@codedge
Copy link
Owner

codedge commented Aug 4, 2021

Adhoc no idea. The error occurs in line 101 when passing a bool to the strlen() function. Not sure why this happens.

Some more infos maybe:

  • Fresh IN installation?
  • PHP version?

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