简体   繁体   English

drupal 7 中的 CSV 导出问题

[英]Issue with CSV export in drupal 7

As i am new to Drupal 7 , i just wanted some feedback on how to debug the error in drupal 7由于我是Drupal 7 的新手,我只是想要一些关于如何调试 drupal 7 中的错误的反馈。

The work scenario will be,like this.工作场景将是这样。

Once i have login into drupal 7 account i get these sub menus一旦我登录到 drupal 7 帐户,我就会得到这些子菜单

Add Content添加内容

Find Content查找内容

Class Admin班级管理员

Class Export类导出

Now when i click on Class Export it will display a Grid with some data's and below the grid there is a CSV button which downloads a CSV format of the grid.现在,当我单击Class Export 时,它将显示一个包含一些数据的网格,并且在网格下方有一个CSV按钮,用于下载网格的CSV格式。

Till this its working fine and good.直到这它工作得很好。

Now the next step, In the top right side there is a edit view button which will help ne to edit / add the fields for the grid现在下一步,在右上角有一个编辑视图按钮,它将帮助您编辑/添加网格的字段

Inside the edit view The page looks like this which is working fine在编辑视图中页面看起来像这样工作正常图 1

Now as you can see in the image on the left side there is a Fields section where one can add / remove the fields.现在,正如您在左侧图像中看到的,有一个字段部分,您可以在其中添加/删除字段。

Next step i will be adding some new fields下一步我将添加一些新字段

When i click on ADD i will get the below screen, and i will select the Content : Class is certified当我点击ADD 时,我会看到下面的屏幕,我会选择内容:Class is Certified

(Appears in : node : training_class) (出现在:节点:training_class)

图 2

I will do apply (this display) and then save it.我会应用(这个显示)然后保存它。

Now when i click on CSV button i am not able to get the file , the page is not responding.现在,当我点击 CSV 按钮时,我无法获取文件,页面没有响应。

So i got to know that when i add a field Content :所以我知道当我添加一个字段 Content 时:

Class is certified (Appears in : node : training_class)类被认证(出现在:节点:training_class)

throws an error, But how to debug this issue?抛出错误,但如何调试这个问题?

How to find the issue in the drupal backend code base.如何在 drupal 后端代码库中找到问题。 How to find the root cause?如何找到根本原因?

Any help appreciated.任何帮助表示赞赏。

A bit detailed answer:有点详细的回答:

  1. Check on Reports -> Recent log messages from admin menu.从管理菜单检查报告 -> 最近的日志消息。

  2. Try editing php.ini file and enabling error messages, so when code crashes you'll be able to see error message.尝试编辑 php.ini 文件并启用错误消息,这样当代码崩溃时您将能够看到错误消息。

  3. From your browser (network tab) check what happens when you click icon for document download.从您的浏览器(网络选项卡)检查当您单击文档下载图标时会发生什么。 Check what is the response from the server.检查服务器的响应是什么。

  4. run phpinfo() command ( https://www.php.net/manual/en/function.phpinfo.php ) and check is logging of errors enabled and what is location of error log file.运行 phpinfo() 命令( https://www.php.net/manual/en/function.phpinfo.php )并检查是否启用了错误日志以及错误日志文件的位置。 Check that file... phpinfo() will also show you location of loaded php.ini file.检查该文件... phpinfo() 还将显示加载的 php.ini 文件的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM