wordpress

模板使用过程中的问题

2019-02-11  本文已影响0人  Tanya木易

2018年11月16日

2018年11月19日

    $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'])
    );
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;有问题,发现插件开发者已经给出解决方案。

将第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日

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>
上一篇下一篇

猜你喜欢

热点阅读