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

Serialization of 'CURLFile' is not alllowed #569

Closed
4 tasks
Eufranio opened this issue Jun 2, 2021 · 2 comments
Closed
4 tasks

Serialization of 'CURLFile' is not alllowed #569

Eufranio opened this issue Jun 2, 2021 · 2 comments

Comments

@Eufranio
Copy link

Eufranio commented Jun 2, 2021

Describe the bug
When trying to optimize images from the 'Other media' page, I get the following error on PHP:

[02-Jun-2021 22:15:22 UTC] PHP Fatal error:  Uncaught Exception: Serialization of 'CURLFile' is not allowed in /home/site/public_html/wp-content/plugins/imagify-tools/functions/common.php:101
Stack trace:
#0 /home/site/public_html/wp-content/plugins/imagify-tools/functions/common.php(101): serialize(Array)
#1 /home/site/public_html/wp-content/plugins/imagify-tools/classes/class-imgt-logs.php(653): imagify_tools_compress_data(Array)
#2 /home/site/public_html/wp-content/plugins/imagify-tools/classes/class-imgt-logs.php(609): IMGT_Logs::insert_log(Array, Array)
#3 /home/site/public_html/wp-content/plugins/imagify-tools/classes/class-imgt-logs.php(520): IMGT_Logs->save_logs(Array)
#4 /home/site/public_html/wp-includes/class-wp-hook.php(292): IMGT_Logs->save_current_logs('')
#5 /home/site/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#6 /home/site/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#7 /home/site/public_html/wp-includes/load.php(1072): do_action( in /home/site/public_html/wp-content/plugins/imagify-tools/functions/common.php on line 101

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Other media'
  2. Selected all unoptimized files from the page
  3. Clicked in batch actions -> optimize
  4. Error pops in the debug log

Expected behavior
The images should be optimized.

Screenshots
Not applicable.

Additional context
Not applicable.

Backlog Grooming (for WP Media dev team use only)

  • Reproduce the problem
  • Identify the root cause
  • Scope a solution
  • Estimate the effort
@remyperona
Copy link
Contributor

Hi @Eufranio,

The error seems to be coming from Imagify tools, which is an helper plugin for support purpose. If you disable the plugin, do you still have the issue?

By the way, we have an open pull request related to this: wp-media/imagify-tools#43

@Eufranio
Copy link
Author

It indeed fixed the issue by disabling Imagify Tools. Thank you.

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

No branches or pull requests

2 participants