删除Sliding Widgets插件会创建包含错误

时间:2015-07-22 15:28:52

标签: php wordpress

所以我更新了我的插件,然后我卸载了我的Sliding Widgets插件,现在我在管理面板和我网站的标题上方收到以下警告消息:

Warning: include(shortcodes.php): failed to open stream: No such file or directory in /homepages/14/d442309306/htdocs/app572581842/wp-content/themes/shopkeeper/functions.php on line 2

Warning: include(): Failed opening 'shortcodes.php' for inclusion (include_path='.:/usr/lib/php5.5') in /homepages/14/d442309306/htdocs/app572581842/wp-content/themes/shopkeeper/functions.php on line 2

关于如何纠正这个问题的任何想法?

更新: 我的functions.php中的前几行是:

<?php
    include('shortcodes.php');
    // theme textdomain - must be loaded before redux
    load_theme_textdomain( 'shopkeeper', get_template_directory() . '/languages' );

但我对include('shortcode.php');发表了评论,看看会发生什么。它使警告从我网站的标题上方发出,这很棒,但是现在在我的登录页面上,我只会在页面上显示以下警告,并且无法再登录:

Warning: Cannot modify header information - headers already sent by (output started at /homepages/14/d442309306/htdocs/app572581842/wp-content/themes/shopkeeper/functions.php:1) in /homepages/14/d442309306/htdocs/app572581842/wp-includes/pluggable.php on line 1196

我的functions.php目前是什么样的:

<?php
        // include('shortcodes.php');
        // theme textdomain - must be loaded before redux
        load_theme_textdomain( 'shopkeeper', get_template_directory() . '/languages' );

0 个答案:

没有答案
相关问题