{"id":18869207,"date":"2026-04-01T14:30:20","date_gmt":"2026-04-01T14:30:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-when-indexing\/"},"modified":"2026-04-01T14:30:20","modified_gmt":"2026-04-01T14:30:20","slug":"error-when-indexing","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-when-indexing\/","title":{"rendered":"Error when indexing"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When we try tndex all pdf files, the server throws an error:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[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-&gt;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-&gt;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-&gt;reindex_all()\\n#4 \/home\/websites\/harmonie.nl\/www\/wp-includes\/class-wp-hook.php(341): WebEquipe\\PDFSearch\\Admin_Settings-&gt;ajax_reindex()\\n#5 \/home\/websites\/harmonie.nl\/www\/wp-includes\/class-wp-hook.php(365): WP_Hook-&gt;apply_filters()\\n#6 \/home\/websites\/harmonie.nl\/www\/wp-includes\/plugin.php(522): WP_Hook-&gt;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<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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:<br \/>\u00a0\/home\/websites\/harmonie.nl\/www\/wp-content\/uploads\/2026\/02\/Opmaak-HN-2026-1.pdf<br \/>which obviously is not a FTP url ?<br \/><br \/>Can you please assist?<br \/>Danny<\/p>\n","protected":false},"template":"","class_list":["post-18869207","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18869207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18869207\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18869207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}