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

Saving Array of Arrays Throws Error PHP #126

Closed bfeinsilver closed 10 years ago

bfeinsilver commented 10 years ago

This is from the documentation (https://classic.scraperwiki.com/docs/php/php_datastore_guide/):

You can also list a list of dicts in the save for greater speed

$data = array(array("a"=>10), array("a"=>20), array("a"=>30));
scraperwiki::save_sqlite(array("a"), $data);

However, when running that I get the following error:

PHP Fatal error: Uncaught exception 'RedBean_Exception_Security' with message 'Invalid Bean: property 0 ' in /usr/share/scraperwiki-php/rb.php:3488

frabcus commented 10 years ago

This is a bug in scraperwiki.php, not here.