bejean / crawl-anywhere

Crawl-Anywhere - Web Crawler and document processing pipeline with Solr integration.
www.crawl-anywhere.com
Apache License 2.0
96 stars 38 forks source link

Unable to add source #80

Closed sawan12 closed 9 years ago

sawan12 commented 9 years ago

I am using 4.0 on ubuntu. When I go about adding a source I can see the below error in the log but and the GUI breaks doesn't show any fields etc.

Have checked all services, mongodb, solr, crawler are up.

GUI tries to hit this url when I click create on the add source page : /crawler/sources//source_.js [404]

As much as I can see the source type is not picked up, but then I do not know php so not sure what is going on.

Tue Dec 16 23:59:06.521616 2014] [:error] [pid 11625] [client 192.168.1.41:57974] PHP Fatal error: Class name must be a valid object or a string in /opt/crawler/web/crawler/pub/sources/source.class.inc.php on line 217, referer: http://192.168.1.8/crawler/index.php?page=sources

bejean commented 9 years ago

It looks like a Mongodb PHP driver version issue. Can you give me more details ?

bejean commented 9 years ago

Hi,

It looks like a Mongodb PHP driver version issue. You opened and closed a case under github. Can you give me more details ?

Regards.

Dominique

2014-12-17 6:48 GMT+01:00 sawan12 notifications@github.com:

Closed #80 https://github.com/bejean/crawl-anywhere/issues/80.

— Reply to this email directly or view it on GitHub https://github.com/bejean/crawl-anywhere/issues/80#event-208758286.

sawan12 commented 9 years ago

Hi, Thanks for getting back to me. I was not a google group member so ended up posting here.

I am not quite sure what fixed it but I did uninstall mongo db, php driver and apache2. Did not change the version though it was same as before. After re installing it worked fine.

If I manage to reproduce it will open a case.

Thanks

bejean commented 9 years ago

I also had some issue with some version of PHP driver. version 1.5.6 is working fine. Never use release candidate ! https://github.com/mongodb/mongo-php-driver/tree/1.5.6