• So I updated my plugins, then I uninstalled my Sliding Widgets plugin and now I get the following warning messages:

    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

    Any ideas on how I could rectify this?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Looks like your “shortcodes.php” file is either missing or not where it’s expected to be…

    What’s the directory listing in

    /homepages/14/d442309306/htdocs/app572581842/wp-content/themes/shopkeeper/

    ???

    What’s the text/content of your “functions.php” file?

    Check your .htaccess, take a clean one, then refresh, you’ll see if the problem comes from here.

    Thread Starter lthomas122

    (@lthomas122)

    Ye i haven’t removed it though, I checked on my webexplorer if it was there and it isn’t.

    Here’s the link to my functions.php

    Check out line 2 in functions.php.

    Looks like you might be missing a single-quote character around the shortcodes.php filename.

    Thread Starter lthomas122

    (@lthomas122)

    sorry that was me, I deleted line 2 to see if it would get rid of the warning, it didn’t, which is annoying.

    Are you still having the problem? Can you please post (and/or post a PasteBin of) the *actual* file that is causing the problem?

    How about the directory listing (see above)?

    Thread Starter lthomas122

    (@lthomas122)

    So here’s a link again:
    https://drive.google.com/file/d/0ByNRJnQawolrZ0xHQ182WWNTcEE/view?usp=sharing

    literally, all that has changed is that single-quote character. this is the file that seems to be causing the problem

    Thread Starter lthomas122

    (@lthomas122)

    Thread Starter lthomas122

    (@lthomas122)

    UPDATE: My first few lines in my functions.php were:

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

    But I commented the include(‘shortcode.php’); to see what would happen. It made the warnings go from above the header of my site, which is great, however now on my login page I only get the following warning appearing on the page and can no longer log in:

    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
    What my functions.php looks like currently:

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

    Based on the error you’re getting:

    ————————————————————————————————-
    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
    ————————————————————————————————-

    …that means your website can’t find the file “shortcodes.php”. (See my first post…) Commenting out the line in your functions.php file isn’t going to fix the problem.

    According to this Google search, the “shortcodes.php” file should normally reside in the /wp-includes/ directory inside of your site. So we need to check to see if the file exists.

    The file listing you posted in your PasteBin… are all of those files in your website? (I guarantee you they’re not in your shopkeeper theme directory. How did you get that listing? Were you using cPanel? Something else?)

    Who makes the “Sliding Widgets” plugin? (Is it this one here? If so, they have a support section (as do most other plugins)… usually a better bet to try there first. Something to think about for the next time you have an issue with a plugin (install or uninstall)).

    Who is your hosting provider?

    How do you edit your PHP files?

    Do they support SSH? Do you know how to SSH into your website directory if they do? If you don’t know how to SSH, can you Google it and figure it out?

    If you can do that, please post the output (in a PasteBin) of the command “ls -ll” (remove the quotes; that’s lowercase LS<space><hyphen>then two lowercase L’s, not number ones) of the following directories:

    /homepages/14/d442309306/htdocs/app572581842/wp-includes/

    /homepages/14/d442309306/htdocs/app572581842/wp-content/themes/shopkeeper/

    The result will look something like the following:

    tbennett@wordpress:/var/www/html$ ls -ll
    total 180
    -rw-r--r--  1 tbennett www-data   418 Sep 24  2013 index.php
    -rw-r--r--  1 tbennett www-data 19930 Jan  1  2015 license.txt
    -rw-r--r--  1 tbennett www-data  7360 May  6 18:07 readme.html
    -rw-r--r--  1 tbennett www-data  4951 Aug 20  2014 wp-activate.php
    drwxr-xr-x  9 tbennett www-data  4096 May  6 21:45 wp-admin
    -rw-r--r--  1 tbennett www-data   271 Jan  8  2012 wp-blog-header.php
    -rw-r--r--  1 tbennett www-data  5007 Jan  8  2015 wp-comments-post.php
    -rw-r--r--  1 tbennett www-data  2709 Jul 20 23:15 wp-config.php
    -rw-r--r--  1 tbennett www-data  2727 Apr 12 17:29 wp-config-sample.php
    drwxr-xr-x  7 tbennett www-data  4096 Jul 20 23:26 wp-content
    -rw-r--r--  1 tbennett www-data  3115 Mar 17 19:38 wp-cron.php
    drwxr-xr-x 12 tbennett www-data  4096 May  6 21:45 wp-includes
    -rw-r--r--  1 tbennett www-data  2380 Oct 24  2013 wp-links-opml.php
    -rw-r--r--  1 tbennett www-data  3123 Apr 12 17:29 wp-load.php
    -rw-r--r--  1 tbennett www-data 34241 Apr 12 17:29 wp-login.php
    -rw-r--r--  1 tbennett www-data  8252 Jul 17  2014 wp-mail.php
    -rw-r--r--  1 tbennett www-data 11048 Apr 12 17:29 wp-settings.php
    -rw-r--r--  1 tbennett www-data 25152 Nov 30  2014 wp-signup.php
    -rw-r--r--  1 tbennett www-data  4035 Nov 30  2014 wp-trackback.php
    -rw-r--r--  1 tbennett www-data  3032 Feb  9  2014 xmlrpc.php

    This listing gives a lot of useful info (see example number three here).

    If you can get a directory listing and see if the “shortcodes.php” file exists (and if so, what permissions it has) or not, we can start troubleshooting.

    Here are some other ways to troubleshoot WordPress problems (they include things like disabling all of your plugins and reverting to the default theme and seeing if the problem still exists).

    Keep in mind that Google is your friend, and the more research you can do on your own, and the more information you can provide to the people trying to help you, the faster we can get problems resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘So this just appeared…’ is closed to new replies.