scraperwiki / code-scraper-in-browser-tool

Just like on ScraperWiki Classic; now a part of QuickCode.
https://quickcode.io
Other
38 stars 8 forks source link

Scraperwiki php include errors #144

Open rickvanscherpenzeel opened 8 years ago

rickvanscherpenzeel commented 8 years ago

Hello,

All of my php scraper stopped working and all exit with an include error, because simple_html_dom.php can not be found. I haven't changed anything so has something changed on the server?

With kind regards

Rick

error: require(simple_html_dom.php): failed to open stream: No such file or directory in /home/code/scraper on line 7 PHP Fatal error: require(): Failed opening required 'simple_html_dom.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/code/scraper on line 7 Finished run: 2015-08-06 16:45:31+00:00 Exit code: 255

Kizambo commented 8 years ago

Hi,

Seems that developers have changed some paths. Please add:

set_include_path(implode(PATH_SEPARATOR, array(get_include_path(), '/usr/share/scraperwiki-php')));

After <?php.