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

PHP Warning: fwrite(): 49 is not a valid stream resource #327

Closed
dereuromark opened this issue Oct 12, 2017 · 7 comments
Closed

PHP Warning: fwrite(): 49 is not a valid stream resource #327

dereuromark opened this issue Oct 12, 2017 · 7 comments
Labels

Comments

@dereuromark
Copy link
Member

With latest migrations release I always get

PHP Warning:  fwrite(): 49 is not a valid stream resource in /var/www/.../site/upgrade/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php on line 253
Warning: fwrite(): 49 is not a valid stream resource in /var/www/.../site/upgrade/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php on line 253
PHP Warning:  fwrite(): 93 is not a valid stream resource in /var/www/.../site/upgrade/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php on line 253
Warning: fwrite(): 93 is not a valid stream resource in /var/www/.../site/upgrade/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php on line 253

on top when an exception like this happens:

Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'email' in [/var/www/.../site/upgrade/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php, line 338]
@reloxx13
Copy link

same here
windows 10
xamp v3.2.2
PHP 7.1.4 (cli) (built: Apr 11 2017 20:08:12) ( ZTS MSVC14 (Visual C++ 2015) x86 )

@ravage84
Copy link
Member

ravage84 commented Nov 2, 2017

Verified, just happend to me after a Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' exception thrown.
Windows 7, PHP 7.1 with MySQL

@dereuromark
Copy link
Member Author

dereuromark commented Jan 16, 2018

It might be a side-effect of the new PSR7 ServerRequest and immutable implementation in core.

@E-P1983
Copy link

E-P1983 commented May 1, 2018

Can confirm, happens to me too.

@dereuromark
Copy link
Member Author

Do we still face this, or does the latest version solve it? I didnt see it in my code anymore.

@ravage84
Copy link
Member

@dereuromark I'm not sure to be honest but what I can recall from recent migrations is that it is way too verbose when it has errors (not in a helpful way) than I like it.

@dereuromark
Copy link
Member Author

I think it is resolved.

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

No branches or pull requests

4 participants