Skip to content

Cannot instantiate any of ImageEditors classes #241

Description

@LeTraceurSnork

Describe the bug
Cannot instantiate any of ImageEditors classes with an error:

Fatal error: Uncaught Error: Class "WP_Image_Editor" not found in ...

To Reproduce
Steps to reproduce the behavior:

  1. Try to instantiate class StorageImageEditor like that:
new StorageImageEditor($image_upload_dir . $file_name);

Expected behavior
Ability to instantiate the ImageEditor class and operate with it to be able upload files

Screenshots
image

Server (please complete the following information)

  • Linux 29dc86ad20f3 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 GNU/Linux
  • PHP Version 8.2.17
  • Web Server | Ubuntu under Docker
  • Using PHP-FPM? - No
  • Using WordPress Cron? - No

How did you install the plugin?
Via composer (wpackagist-plugin/ilab-media-tools)

Additional context
None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions