Unable to get full text search to work on MAMP for development

I tried tips in other threads, but none worked.

Installed PDFtoText via Poppler/Homebrew into /usr/local/bin/

OJS: 3.1.1.2
config.inc.php:

    restful_urls = On
    driver = mysql when tried on php 5.6.33, mysqli for php 7.2.7
    results_per_keyword = 500
    result_cache_hours = 1
    index[application/pdf] = "/usr/local/bin/pdftotext -enc UTF-8 -nopgbrk %s - | /usr/bin/tr '[:cntrl:]' ' '"
    display_errors = On
    deprecation_warnings = On

Localhost Setup:
MAMP (apache port 80, mysql 3306)
PHP (5.6.33/driver mysql and 7.2.7/driver mysqli, tried both)

Using Terminal, cd to root folder, enter
php tools/RebuildSearchIndex.php

Returns:


Strict Standards: Declaration of CacheBusterPlugin::register() should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /PATH-HERE/plugins/generic/cacheBuster/CacheBusterPlugin.inc.php on line 0

Notice: Deprecated call without request object. in /PATH-HERE/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 901

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /PATH-HERE/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php:0) in /PATH-HERE/lib/pkp/classes/session/SessionManager.inc.php on line 58

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /PATH-HERE/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php:0) in /PATH-HERE/lib/pkp/classes/session/SessionManager.inc.php on line 58

Notice: Deprecated call without request object. in /PATH-HERE/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 901
Clearing index ... done
Indexing "Journal of Human Sciences and Extension" ... 
Strict Standards: Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /PATH-HERE/classes/article/SubmissionFileDAO.inc.php on line 23

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information

Strict Standards: Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110

Strict Standards: Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
pdftotext version 0.67.0
Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
Usage: pdftotext [options] <PDF-file> [<text-file>]
  -f <int>             : first page to convert
  -l <int>             : last page to convert
  -r <fp>              : resolution, in DPI (default is 72)
  -x <int>             : x-coordinate of the crop area top left corner
  -y <int>             : y-coordinate of the crop area top left corner
  -W <int>             : width of crop area in pixels (default is 0)
  -H <int>             : height of crop area in pixels (default is 0)
  -layout              : maintain original physical layout
  -fixed <fp>          : assume fixed-pitch (or tabular) text
  -raw                 : keep strings in content stream order
  -htmlmeta            : generate a simple HTML file, including the meta information
  -enc <string>        : output text encoding name
  -listenc             : list available encodings
  -eol <string>        : output end-of-line convention (unix, dos, or mac)
  -nopgbrk             : don't insert page breaks between pages
  -bbox                : output bounding box for each word and page size to html.  Sets -htmlmeta
  -bbox-layout         : like -bbox but with extra layout bounding box data.  Sets -htmlmeta
  -opw <string>        : owner password (for encrypted files)
  -upw <string>        : user password (for encrypted files)
  -q                   : don't print any messages or errors
  -v                   : print copyright and version info
  -h                   : print usage information
  -help                : print usage information
  --help               : print usage information
  -?                   : print usage information
11 articles indexed

The following errors are in MAMP’s php_error.log after the above command is run:

    [08-Aug-2018 09:08:49 America/Chicago] PHP Strict Standards:  Declaration of CacheBusterPlugin::register() should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /PATH-HERE/plugins/generic/cacheBuster/CacheBusterPlugin.inc.php on line 0
    [08-Aug-2018 09:08:49 America/Chicago] PHP Notice:  Deprecated call without request object. in /PATH-HERE/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 901
    [08-Aug-2018 09:08:49 America/Chicago] PHP Warning:  session_start(): Cannot send session cookie - headers already sent by (output started at /PATH-HERE/lib/pkp/lib/adodb/adodb.inc.php:519) in /PATH-HERE/lib/pkp/classes/session/SessionManager.inc.php on line 58
    [08-Aug-2018 09:08:49 America/Chicago] PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /PATH-HERE/lib/pkp/lib/adodb/adodb.inc.php:519) in /PATH-HERE/lib/pkp/classes/session/SessionManager.inc.php on line 58
    [08-Aug-2018 09:08:49 America/Chicago] PHP Notice:  Deprecated call without request object. in /PATH-HERE/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 901
    [08-Aug-2018 09:08:49 America/Chicago] PHP Strict Standards:  Declaration of SubmissionFileDAO::fromRow() should be compatible with PKPSubmissionFileDAO::fromRow($row, $fileImplementation) in /PATH-HERE/classes/article/SubmissionFileDAO.inc.php on line 23
    [08-Aug-2018 09:08:49 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:49 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFile() should not be called statically in /PATH-HERE/classes/search/ArticleSearchIndex.inc.php on line 110
    [08-Aug-2018 09:08:50 America/Chicago] PHP Strict Standards:  Non-static method SearchFileParser::fromFileType() should not be called statically in /PATH-HERE/lib/pkp/classes/search/SearchFileParser.inc.php on line 101

Clear data cache in UI & the command line. No keywords in DB except those from metadata.

I was working on trying to figure this out again Friday afternoon.

I put this script in my OJS root directory in a file called test.php:

<?php
echo exec("/Applications/MAMP/bin/pdftotext -enc UTF-8 -nopgbrk 
/Users/dalem/Sites/CTO/Journal\ of\ Human\ Sci\ \&\ Ext/code/jhse_06-02.pdf - | /usr/bin/tr 
'[:cntrl:]' ' '");
?>

I went to the test.php file, and it spat out the contents of the PDF in the browser window. So that confirmed that the pdftotext worked with MAMP, and that it was running as the proper user. I ran out of time at that point, but I just came in this morning and figured I would try renaming my folder so that it doesn’t include spaces. So I replaced the parent directory’s spaces with dashes. Low and behold, everything then worked.

I can understand how on the server you expect there to not be spaces in the path, but on a development environment, it’s a possibility. I always set up my folders with this setup:

Project Name (readable, proper spacing with capitalization)

  • assets (stores photos, third party logos, and other files)
  • backups (where I store backup files of the database, etc.)
  • code (where the actual web or app code is stored)
  • design (where design files, like Photoshop, Illustrator, Sketch, etc. live)
  • docs (documentation related to the project, PDFs, Word docs, etc. that may or may not go on the actual site)

It appears that the PDFtoText conversion process isn’t escaping or otherwise can’t handle spaces in the file path. It will say that the articles have been indexed, but they haven’t. So, make sure if you use OJS in a development environment, don’t put spaces in your directory names or store the files where there are spaces in the path. I wrapped the %s with single quotes, but then it complains about the ampersand. So probably just easiest to do that if you’re like me and not an advanced Terminal user.

Hi @dalemoore,

I tracked this down and it turns out we accidentally used escapeshellcmd for escaping when escapeshellarg would’ve been more appropriate. See Search index helpers don't work with spaces in filenames · Issue #3984 · pkp/pkp-lib · GitHub for an issue entry and a patch to fix it.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Just applied the patch and everything works perfectly. Thanks Alec!