php - TYPO3 内容元素:PHP 警告:strlen() 期望参数 1 为字符串,给定数组
问题描述
我不断收到这个错误,我不知道如何解决它。我已经搜索过,但没有一个答案真的对我有帮助。
我从这段代码开始:
$child3 !== null && strlen($child3) > 0 ? array_push($children, (int)$child3) : null;
对此代码:
is_array($child3) && count($child3) > 0 ? array_push($children, (int)$child3) : null;
问题仍然存在,我不确定如何解决。
我想我仍然需要检查其他东西,但我不确定是什么。
解决方案
推荐阅读
- css - vue css菜单上没有动画展开
- angular - 使用可选链接递增“+”
- tensorflow - Keras LSTM 输入 ValueError:形状不兼容
- python - 如何使用混合数据类型的python seaborn层次聚类?
- vb.net - Vb.Net Weight Scale Reading
- python - 如何删除组成相同单词的字母之间的空格?
- javascript - 在 chrome 扩展中使用其他库
- python - 您将如何处理计算 100 万列 CSV 中两列的相关性?
- c# - 将 ServiceStack 客户端与区分大小写的 REST 服务一起使用
- c++ - 在 Lua 中为 DLL 使用 loadlib