前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ColdFusion - Errors & Troubleshooting

ColdFusion - Errors & Troubleshooting

作者头像
szhshp
发布2022-09-21 10:13:19
4660
发布2022-09-21 10:13:19
举报
文章被收录于专栏:szhshp 的第四边境中转站

You have attempted to dereference a scalar variable of type class coldfusion.runtime. Array as a structure with members.

一般是将某个数组当做了 struct 来使用了 对于

代码语言:javascript
复制
object[index]

的 index 应该是数字而不是字符串# The request has exceeded the allowable time limit Tag: CFQUERY

反正就是超时了呗

Solution

  • If you have access to the administrator, you can increase the timeout periodserver-wide in the Settings page (Timeout requests after n seconds)
  • if you just want to increase the timeout period for that particular page, you can tack on requestTimeout=x (where x is the number of seconds before the page timesout) to the url:
代码语言:javascript
复制
http://server/page.cfm?requestTimeout=6000
  • Alternatively you can use the tag
代码语言:javascript
复制
<cfsetting requesttimeout="500">

within your code to overide the default setting……

设置为 x 测试无效? 设置为 60000 可用

** 注意单位是 sec 因此一般的 form 提交设置为 120 最多了**

ColdFusion Error - java.lang. NumberFormatException: For input string: "120px"

使用 cfdocument 转换成 PDF 时出现问题 和一些 image 的格式有关 加入一段替换代码后解决问题

代码语言:javascript
复制
<cfset cockpitoutput=REreplace(cockpitoutput,'<img[^>]*>','',"all")>

不过这样就不能显示图片了

2016-02-26 11:27:57

Pending

2016-06-12 11:35:38

这个问题居然还没解决

ColdFusion: Error - The start tag must have a matching end tag

很可能是用了 HTML 的注释

Object of type class coldfusion.runtime. Struct cannot be used as an array

格式转换错误 可能是将 struct 放到了 cfloop 的 array 参数中因此报错

ColdFusion - Error: Query Of Queries syntax error. Encountered "INNER.

Error Desc

  • Error: Query Of Queries syntax error. Encountered "INNER.
  • Error: Query Of Queries syntax error. Encountered "JOIN.

一般是因为将 cfquery 的 name 作为了表名, 因此 JOIN 和 INNER JOIN 的时候无法分析出来

解决方法

使用临时表, CTE 或者变量表, CTE 优先

有时候如果是单个 cfquery 里面报错 试着删除对应的 dbtype="query" 标签

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019-01-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • You have attempted to dereference a scalar variable of type class coldfusion.runtime. Array as a structure with members.
    • Solution
      • 2016-02-26 11:27:57
      • 2016-06-12 11:35:38
  • ColdFusion Error - java.lang. NumberFormatException: For input string: "120px"
  • ColdFusion: Error - The start tag must have a matching end tag
  • Object of type class coldfusion.runtime. Struct cannot be used as an array
  • ColdFusion - Error: Query Of Queries syntax error. Encountered "INNER.
    • Error Desc
      • 解决方法
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档