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

Error Read File Log #117

Open
Open
@TDatBoolfly

Description

@TDatBoolfly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions