• 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?
    Danny

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WebEquipe

    (@webequipe)

    Hi Danny,

    Thanks for the detailed report and it really helpful. You’re right about the cause. We’ll also be making an update on our side to improve this and will release a fix soon.

    In the meantime, could you please try adding this to your wp-config.php (if your server allows it):
    define('FS_METHOD', 'direct');

    After adding it, please try re-indexing again and let us know how it works on your end.

    Thanks again for flagging this, much appreciated.

    Best regards,
    WebEquipe Team

    Thread Starter tuxtiger

    (@tuxtiger)

    Yes, with this setting I can confirm that the error has disappeared.

    Regards,
    Danny

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.