Error when indexing
-
When we try tndex all pdf files, the server throws an error:
[Wed Apr 01 16:23:25.778484 2026] [php:error] [pid 2016072:tid 2016072] [client 86.94.224.125:56020] PHP Fatal error: Uncaught TypeError: ftp_fget(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /home/websites/harmonie.nl/www/wp-admin/includes/class-wp-filesystem-ftpext.php:146\nStack trace:\n#0 /home/websites/harmonie.nl/www/wp-admin/includes/class-wp-filesystem-ftpext.php(146): ftp_fget()\n#1 /home/websites/harmonie.nl/www/wp-content/plugins/webequipe-pdf-search/includes/class-pdf-indexer.php(197): WP_Filesystem_FTPext->get_contents()\n#2 /home/websites/harmonie.nl/www/wp-content/plugins/webequipe-pdf-search/includes/class-pdf-indexer.php(329): WebEquipe\PDFSearch\PDF_Indexer->index_pdf()\n#3 /home/websites/harmonie.nl/www/wp-content/plugins/webequipe-pdf-search/includes/class-admin-settings.php(587): WebEquipe\PDFSearch\PDF_Indexer->reindex_all()\n#4 /home/websites/harmonie.nl/www/wp-includes/class-wp-hook.php(341): WebEquipe\PDFSearch\Admin_Settings->ajax_reindex()\n#5 /home/websites/harmonie.nl/www/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()\n#6 /home/websites/harmonie.nl/www/wp-includes/plugin.php(522): WP_Hook->do_action()\n#7 /home/websites/harmonie.nl/www/wp-admin/admin-ajax.php(192): do_action()\n#8 {main}\n thrown in /home/websites/harmonie.nl/www/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146, referer: https://staging.harmonieoegstgeest.nl/wp-admin/options-general.php?page=webequipe-pdf-search
The plugin tries ro access the PDF file via FTP is seems? When I place a debug line to print the value of $file_path before the get_contents($file_path) line, the contents of $file_path is:
/home/websites/harmonie.nl/www/wp-content/uploads/2026/02/Opmaak-HN-2026-1.pdf
which obviously is not a FTP url ?
Can you please assist?
DannyThe page I need help with: [log in to see the link]
You must be logged in to reply to this topic.