Kohana:渲染图像的https问题

时间:2015-10-08 06:23:28

标签: php export render kohana spreadsheet

我正在为模块导出数据,包括饼图和条形图。我已经开发了这个并且在http上工作得很好。但它显示我"内部服务器错误"我在安全的服务器https上运行它。我发现URL :: site中的问题最有可能请检查我的代码并告诉我需要注意的地方吗?

Session::instance()->set('graph_data', $graph_data_list);

    foreach ($graph_data_list as $graph_data_key => $graph_data)
    {
        if ($graph_data['meta']['type'] === 'pie')
        {
            $$graph_data_key = Spreadsheet_Image::factory()
                ->worksheet($ws->get_active_sheet())
                ->source(
                    GenImage::instance('png')
                        ->render(URL::site('admin/export/graph/'.$graph_data_key, $protocol), array(
                            '--width ' . Arr::path($graph_data, 'size.0', $pie_width),
                            '--cookie ' . Session::instance()->name() . ' ' . urlencode(Session::instance()->id()),
                        ))
                        ->output(GenImage::STRING)
                )
                ->resizeProportional(false)
                ->width(Arr::path($graph_data, 'size.0', $pie_width) * $graph_width_multiply)
                ->height(Arr::path($graph_data, 'size.1', $pie_height) * $graph_height_multiply)
                ->coordinates($graph_data['meta']['cell']);
        }
    }

$ protocol是http或https(问题)。

0 个答案:

没有答案