模板使用过程中的问题

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值