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

Getting Fatal error on the PDF test extraction #701

Closed
1 task done
qasumitbagthariya opened this issue Feb 9, 2024 · 0 comments · Fixed by #706
Closed
1 task done

Getting Fatal error on the PDF test extraction #701

qasumitbagthariya opened this issue Feb 9, 2024 · 0 comments · Fixed by #706
Assignees
Milestone

Comments

@qasumitbagthariya
Copy link

Describe the bug

Getting fatal errors when Extract text from PDF

[09-Feb-2024 10:23:06 UTC] PHP Fatal error:  Uncaught TypeError: Classifai\attachment_is_pdf(): Argument #1 ($post) must be of type WP_Post, int given, called in /Users/sumitbagthariya/Local Sites/osp/app/public/wp-content/plugins/classifai/includes/Classifai/Admin/BulkActions.php on line 449 and defined in /Users/sumitbagthariya/Local Sites/osp/app/public/wp-content/plugins/classifai/includes/Classifai/Helpers.php:285
Stack trace:
#0 /Users/sumitbagthariya/Local Sites/osp/app/public/wp-content/plugins/classifai/includes/Classifai/Admin/BulkActions.php(449): Classifai\attachment_is_pdf(260)
#1 /Users/sumitbagthariya/Local Sites/osp/app/public/wp-includes/class-wp-hook.php(324): Classifai\Admin\BulkActions->media_processing_bulk_action_handler('https://2cd3-24...', 'feature_pdf_to_...', Array)
#2 /Users/sumitbagthariya/Local Sites/osp/app/public/wp-includes/plugin.php(205): WP_Hook->apply_filters('https://2cd3-24...', Array)
#3 /Users/sumitbagthariya/Local Sites/osp/app/public/wp-admin/upload.php(344): apply_filters('handle_bulk_act...', 'https://2cd3-24...', 'feature_pdf_to_...', Array)
#4 {main}
  thrown in /Users/sumitbagthariya/Local Sites/osp/app/public/wp-content/plugins/classifai/includes/Classifai/Helpers.php on line 285

Steps to Reproduce

  1. Upload a pdf file
  2. Click on Extract text from PDF
  3. See error
Screenshare.-.2024-02-09.3_51_16.PM.mp4

Screenshots, screen recording, code snippet

No response

Environment information

  • WordPress: 6.4.3
  • Theme: Twenty TwentyVersion: 2.5
  • WooCommerce - 8.5.2
  • PHP: 8.0.30
  • Web Server: Nginx 1.20.2
  • Browser: Chrome
  • OS: macOS Ventura 13.3

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants