Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Error Read File Log #117

Open
1 task done
TDatBoolfly opened this issue Jun 9, 2022 · 1 comment
Open
1 task done

Error Read File Log #117

TDatBoolfly opened this issue Jun 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@TDatBoolfly
Copy link

TDatBoolfly commented Jun 9, 2022

Contact Details

[email protected]

What happened?

I use Magento 2.4.4, PHP 8.1

I get an error when I go to Store -> FaceBook -> Info in Admin Page
url: /admin/fbeadmin/info/index/

  1. Undefined variable $fp

main.ERROR: Warning: Undefined variable $fp in /vendor/facebook/facebook-for-magento2/Helper/LogOrganization.php on line 74

  1. I fixed error first keep giving second error

main.ERROR: Warning: fopen(var/log/facebook-business-extension.log): Failed to open stream: No such file or directory in /vendor/facebook/facebook-for-magento2/Helper/LogOrganization.php on line 92

image

I think you should add a condition that checks if the file exists before opening the file

Magento Version

2.4.4

Plugin Version

1.4.5

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@TDatBoolfly TDatBoolfly added the bug Something isn't working label Jun 9, 2022
@drinkingsouls
Copy link

Same issue here.
Fixed the initial error using

https://github.com/facebookincubator/facebook-for-magento2/pull/97/files/f61258bb7b32aa74cf4845f076f9bc04b5118262#diff-74272e3d8894045336c01ff8a247635c5970faa197d492f015dc272bd13a3717

But now I have the same secondary error for failed to open stream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants