美文网首页wordpress
模板使用过程中的问题

模板使用过程中的问题

作者: Tanya木易 | 来源:发表于2019-02-11 14:48 被阅读0次

2018年11月16日

  • 服务器5.4升级到7.1版本

2018年11月19日

  • 后台登陆 500错误
  • wp-config.php文件修改define('WP_DEBUG', true);
  • 提示function.php 有错误
  • 注释掉function.php中错误代码
    $sh_gmaps = array(
        'mapaddress'         => ($GLOBALS['sh_redux']['gmaps-address']),
        // 'maplatitude'        => ($GLOBALS['sh_redux']['gmaps-latitude']),
        // 'maplongitude'       => ($GLOBALS['sh_redux']['gmaps-longitude']),        
        'mapicon'            => ($GLOBALS['sh_redux']['gmaps-icon']['url']),
        'mappopover'         => ($GLOBALS['sh_redux']['gmaps-popover']),
        'mapiconwidth'       => ($GLOBALS['sh_redux']['gmaps-icon']['width']),
        'mapiconheight'      => ($GLOBALS['sh_redux']['gmaps-icon']['height']),
        'mapzoom'            => ($GLOBALS['sh_redux']['gmaps-mapzoom'])
    );
  • 前端提示
    Notice: Use of undefined constant left - assumed 'left' in /var/www/html/wordpress/wp-content/themes/starhotel/home.php on line 47
  • 暂未解决
  • 后台登陆报错
Fatal error: Uncaught Error: [] operator not supported for strings in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/includes/framework/base-admin.class.php:72 Stack trace: #0 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(572): RevSliderBaseAdmin::addMetaBox('Revolution Slid...', '', Array, NULL) #1 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(73): RevSliderAdmin->addSliderMetaBox() #2 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/admin/revslider-admin.class.php(44): RevSliderAdmin->init() #3 /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/revslider.php(162): RevSliderAdmin->__construct('/home/wwwroot/w...') #4 /home/wwwroot/www.wmsoho.com/wp-settings.php(303): include_once('/home/wwwroot/w...') #5 /home/wwwroot/www.wmsoho.com/wp-config.php(87): require_once('/home/wwwroot/w...') #6 /home/wwwroot/www.wmsoho.com/wp-load.php(37): req in /home/wwwroot/www.wmsoho.com/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 72

RevSlider插件的第72行self::$arrMetaBoxes[] = $box;有问题,发现插件开发者已经给出解决方案。

  • 修改/wp-content/plugins/revslider/includes/framework/base-admin.class.php文件

将第21行 private static $arrMetaBoxes = ”; //option boxes that will be added to post
改为private static $arrMetaBoxes = array(); //option boxes that will be added to post
————————————
作者:wmsoho
来源:CSDN
原文:https://blog.csdn.net/wmsoho/article/details/78940013

  • 可以正常访问后台了
  • 后台插件有很多更新提示

2018年11月20日

  • 新增了文章,发布时错误提示Not Found The requested URL /wordpress/imagegallery/26/ was not found on this server.
  • 在服务器/etc/httpd/conf找到httpd.conf配置文件,新增
LoadModule rewrite_module modules/mod_rewrite.so

修改AllowOverride None属性

<Directory />
    AllowOverride All
    Require all denied
</Directory>

<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
</Directory>

相关文章

  • 2018/01/28花艺活动用户访谈

    这次访谈是刻意利用李叫兽的用户访谈模板进行的。这个模板使用过程中最大问题是有些问题是进行不下去,也没法顺利揣测到用...

  • 模板使用过程中的问题

    2018年11月16日 服务器5.4升级到7.1版本 2018年11月19日 后台登陆 500错误 wp-conf...

  • 建筑模板产生分层的原因

    建筑模板作为新型的环保建筑材料,近年来其应用越来越广泛,使用过程中难免出现各种问题,比如建筑模板在有时候会出现分层...

  • Pycharm新建模板默认添加作者时间等信息

    Pycharm新建模板默认添加作者时间等信息 在pycharm使用过程中,对于每次新建文件的shebang行和关于...

  • 问题模板

    以下内容关于学习技术的技巧,来自陈皓老师的分享! 一、技术的起因与目标 这个技术的出现背景、初衷和要达到什么样的目...

  • MindManager 2018维恩图如何修改背景模板

    上次介绍了MindManager 2018维恩图的基本使用,但大家使用过程中,肯定会发现模板图都是固定的,除了能添...

  • C++模板编程/泛型编程

    模板分类 模板分为函数模板与类模板两类。 函数模板 模板声明 模板定义 例如 函数模板实参类型不一致问题 参数推导...

  • 3分钟了解装配式叠合板

    基于现代建筑行业中,钢制、铝制、木质模板使用过程中要消耗过多的材料、人力、工时,还有对环境造成的污染,市面上出现了...

  • 行为型 模板模式(文末有项目连接)

    1:模板方式解决的问题(先了解) 2:模板模式的原理与实现 3:模板模式核心代码 4:模板模式复用例子(Input...

  • node端ejs中使用模块变量

    前言 ejs在默认情况下只是一个呈现工具,只是负责依据传入的参数进行模板渲染。然而,在使用过程中(hexo-ren...

网友评论

    本文标题:模板使用过程中的问题

    本文链接:https://www.haomeiwen.com/subject/vedafqtx.html