Menu

Cannot run the example script

Help
Anonymous
2015-06-19
2015-06-22
  • Anonymous

    Anonymous - 2015-06-19

    Hi,
    I am just testing the srcipt and I am getting a lot of errors.
    :

    Strict Standards: Declaration of MyCrawler::handleDocumentInfo() should be compatible with PHPCrawler::handleDocumentInfo(PHPCrawlerDocumentInfo $PageInfo) in /xxx/example.php on line 11

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 87

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 90

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 87

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 87

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 90
    Page requested: http://php.net/conferences/index.php (200)
    Referer-page: http://www.php.net
    Content received: 112576 bytes

    Summary:
    Links followed: 4
    Documents received: 4
    Bytes received: 1085458 bytes
    Process runtime: 3.23135304451 sec

    This is what I get but the"
    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 90

    Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /xxx/libs/Utils/PHPCrawlerEncodingUtils.class.php on line 87
    "

    are repeated like 1000 times

    I did not change anything in the example file

     
  • Uwe Hunfeld

    Uwe Hunfeld - 2015-06-19

    Hi!

    What version of PHP do you use?

    Something before 5.3x?

    If so, please update to a newser version (5.3 or above).

    Also see this report (last post):
    https://sourceforge.net/p/phpcrawl/bugs/84/

     
  • Anonymous

    Anonymous - 2015-06-22

    Hmm, i did not change anything but it started working after I entered page today.
    Of course I tried to refresh it many times the other day, but this did not work

     
  • Anonymous

    Anonymous - 2015-06-22

    But I cannot login to the test html interface
    (I have set up the username and password in the conf file....)

     
  • Anonymous

    Anonymous - 2015-06-22

    btw. I have php 5.4 on the server

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.