跳转到主要内容
你行网

Main navigation

  • 首页
  • Drupal
  • 编程与开发
  • 数据库
  • 操作系统与应用
  • 服务器与运维
  • 社区
User account menu
  • 登录

面包屑

  1. 首页
  2. 论坛
  3. Drupal
  4. drupal 问答

drupal 7安装entityreference_prepopulate 模块后出再现代码

由 hrs, 15 十月, 2020
论坛
drupal 问答

drupal 7安装entityreference_prepopulate 模块后出再现代码

错误截图:

entityreference_prepopulate.png

错误代码

Deprecated function: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in include_once() (line 1387 of /var/www/html/includes/bootstrap.inc).
Deprecated function: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in include_once() (line 1387 of /var/www/html/includes/bootstrap.inc).
Notice: Undefined index: normal 在 flag_flag->get_link_type() (行 1214 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Notice: Trying to access array offset on value of type null 在 flag_flag->options() (行 203 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Warning: array_merge(): Expected parameter 2 to be an array, null given 在 flag_flag->options() (行 203 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Warning: Invalid argument supplied for foreach() 在 flag_flag->construct() (行 222 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Notice: Undefined index: normal 在 flag_flag->get_link_type() (行 1214 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Notice: Trying to access array offset on value of type null 在 flag_flag->options() (行 203 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Warning: array_merge(): Expected parameter 2 to be an array, null given 在 flag_flag->options() (行 203 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).
Error: Unsupported operand types 在 flag_flag::factory_by_row() (行 132 在 /var/www/html/sites/all/modules/flag/includes/flag/flag_flag.inc).

解决办法:

根据drupal 官方列出的补丁修改就好!

补丁下载:https://www.drupal.org/project/entityreference_prepopulate/issues/3115641

修改方法:打开终端,进入entityreference_prepopulate 目录

cd /var/www/html/sites/all/modules/entityreference_prepopulate

修改entityreference_prepopulate.module文件

vim entityreference_prepopulate.module

把336行

if (!$form_build_id = isset($_GET['form_build_id']) ? $_GET['form_build_id'] : isset($_POST['form_build_id']) ? $_POST['form_build_id'] : NULL) {
修改为:if (!$form_build_id = (isset($_GET['form_build_id']) ? $_GET['form_build_id    '] : isset($_POST['form_build_id'])) ? $_POST['form_build_id'] : NULL) { 

wq 保存即可!!

  • 登录或注册以发表评论
  • 115 次浏览

最新文章

  • drupal 模块收集
  • 如何在 Drupal 中实现标题唯一性
  • 解决drupal 不可更新的权限问题
  • druapal 10 drush 设置主题命令
  • OpenClaw 2026.4.2 命令简介
  • Drupal 11 主题开发完全指南:现代化主题开发的新时代
  • openclaw安装在云服务器,需要什么条件
  • 如果把openclaw安装在云服务器,那么openclaw可以为我带来什么?
  • Drupal安全终极指南:构建坚不可摧的网站防线
  • 内容审核通知 content_moderation_notifications 模块简介

标签云

adsenseAIapacheaptbadblocksbreadcrumbbrewcentoscertbotckeditorcommandcomposercookiecsharpCSScurlC语言DDEVdiffdnsdockerDreamweaverDrupaldrupal 7drupal 8drupal 9drupal10drupal 11drushExcelfirewalldfirmwareflameshotformgimpgitgzipHTMLHTML5httpdhttp验证inputipjavaJavaScriptJavaSrciptkernelKVMLinuxmavenmbstringmod_expires 模块MysqlnerdtreenetstatnetworknginxnpmOpenClawpasswordphpphpmyadminphp扩展RFIDRSSselinuxSEOsharesimple_adsensesshsslStatisticssuperfishsurroundtagcloudstitleubuntuuploadprogressvimVPNVUEWireGuardwpsxdebugyoutubeyumzip主题主题(theme)二进制五笔分类术语压缩解压哈希值声音字段密码工作流快捷键摄影更新权限果树种植标签优化模块模块(module)源地址版本号电子秤电脑基础电脑技巧短信验证端口简介算法网站备份网站安全网站运营翻译英语表单视图(views)计算机基础赚钱超五类线网线邮件验证重定向重定向,301错误颜色

相关文章

RSS源

关于我们

  • 你行网简介
  • 关于我们
  • 版权声明

网站相关

  • 社区论坛
  • 网址导航
  • 网站地图
  • 联系我们

友情链接

  • 英文学习

友情链接2

  • drupal 大学
  • 水滴间
  • 爱码网
  • Apache

友情链接3

  • MySQL
  • php
  • drupalcode

友情链接4

  • Drupal 中国
  • Drupal 老葛
  • 宁浩网
  • drupal 台湾
Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号-1