小编Isa*_*hne的帖子

致命错误:未捕获错误:调用未定义函数bcadd()

安装"eduTrac SIS"并访问"仪表板"后出现此错误

Ubuntu 16.4,PHP 7.0(php7.0-fpm),Apache2,Nginx,

URL显示错误500并显示nginx/error.log,

FastCGI发送到stderr:"PHP消息:PHP致命错误:未捕获错误:在/ var/www/html/eduTrac-SIS/app/src/vendor/phpbenchmark/phpbenchmark/lib/PHPBenchmark中调用未定义函数PHPBenchmark\bcadd() /Utils.php:18

php nginx bcmath

7
推荐指数
2
解决办法
9670
查看次数

django-import-export:无法在导入过程中排除 id 字段:KeyError: u'id'

在 Django-1.9.6 上,django-import-export-0.5

当我尝试上传没有“id”字段的 CSV 时会引发此错误。

Line number: 1 - u'id'
13173474, Harry McDade, 10.harry.asas@asasasas.com
Traceback (most recent call last):
File "/Users/isanka/dev/venv/edxubase/lib/python2.7/site-packages/import_export/resources.py", line 434, in import_row
instance, new = self.get_or_init_instance(instance_loader, row)
File "/Users/isanka/dev/venv/edxubase/lib/python2.7/site-packages/import_export/resources.py", line 258, in get_or_init_instance
instance = self.get_instance(instance_loader, row)
File "/Users/isanka/dev/venv/edxubase/lib/python2.7/site-packages/import_export/resources.py", line 252, in get_instance
return instance_loader.get_instance(row)
File "/Users/isanka/dev/venv/edxubase/lib/python2.7/site-packages/import_export/instance_loaders.py", line 31, in get_instance
field = self.resource.fields[key]
KeyError: u'id'
Run Code Online (Sandbox Code Playgroud)

python django django-import-export

2
推荐指数
1
解决办法
7666
查看次数

标签 统计

bcmath ×1

django ×1

django-import-export ×1

nginx ×1

php ×1

python ×1