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

Non initialized log file fix #924

Closed

Conversation

snky1987
Copy link

@snky1987 snky1987 commented Jan 6, 2015

Addition to #917 mentioned issue that prevent error with:

Warning: fopen(foo\bar\Local\Temp\install.log): failed to open stream: No such file or directory in foo\bar\Projects\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 59

Warning: fseek() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 148

Warning: fgets() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 150

Warning: fclose() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 69

Warning: fopen(foo\bar\Local\Temp\install.log): failed to open stream: No such file or directory in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 59

Warning: fseek() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 148

Warning: fgets() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 150

Warning: fclose() expects parameter 1 to be resource, boolean given in foo\bar\magento2\setup\module\Magento\Setup\src\Model\WebLogger.php on line 69

{"progress":"0","success":true,"console":[]}

To reproduce error just cause "installation not completed" error and then clear console and click "Try Again". The first action is "progress" with progress == 100 and multiple error due to not existing resource.

To prevent it I added simple is_resource check for fclose function and also on open() function to create file if doesn't exists.

I didn't have this issue during next 10 installation processes after this fix.

@vpelipenko vpelipenko added the PS label Jan 8, 2015
@mazhalai
Copy link
Contributor

This issue was fixed internally in MAGETWO-31850.

@antonmakarenko
Copy link

It is impossible to accept this pull request due to logical conflicts: the Magento Core team had fixed it in a different way in the upstream.

Closing. Thank you.

magento-team pushed a commit that referenced this pull request Mar 16, 2017
fe-lix- pushed a commit to fe-lix-/magento2 that referenced this pull request Apr 29, 2018
MSI-885: Options on Storefront Product View Page for Configurable Product Assigned to Custom Stock are Empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants