WordPress.org

Ready to get started?Download WordPress

Forums

Installation of Benz theme (9 posts)

  1. kroggy
    Member
    Posted 3 years ago #

    Everything works fine with other themes, however when I install the Benz theme I get this error:

    **************************************************************
    Warning: include(/home/merc/public_html/wp-content/themes/Benz/searchform.php) [function.include]: failed to open stream: No such file or directory in /home/merc/public_html/wp-content/themes/Benz/sidebar.php on line 11

    Warning: include() [function.include]: Failed opening '/home/merc/public_html/wp-content/themes/Benz/searchform.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/merc/public_html/wp-content/themes/Benz/sidebar.php on line 11
    *****************************************************************

    To view the site:
    http://83.170.113.21/~merc/

    It's got to be something quite simple, but when I messed about with the sidebar.php and it started to affect the header - hence I ended up going around in circles :(

    Many thanks
    Kroggy

  2. wphelpcenter
    Member
    Posted 3 years ago #

    Are you sure you fully uploaded a theme? That error seems to indicate the theme is looking for files that do not exist on your hosting account so possibly some were not uploaded.

  3. Kailash
    Member
    Posted 3 years ago #

    Upload the theme again via FTP and make sure that you do not receive any error while uploading. It seems that some of the files were not uploaded or they zero size.

  4. kroggy
    Member
    Posted 3 years ago #

    Thanks guys for getting back to me on this one, however I have deleted all files from the theme and then re installed this time using FTP Voyager instead of the ftp programme in WordPress.
    Still the same problem? The file size for the sidebar.php file is 2089 bytes and that is the same as the one uploading from my pc.

    It only happens with this theme?

  5. kroggy
    Member
    Posted 3 years ago #

    Just downloaded the theme again in case it had problems with the zip file.
    Uploaded it, and again the same problem...?

  6. kroggy
    Member
    Posted 3 years ago #

    Tried again, unpacked all the files and uploaded them via ftp - same thing? I have now gone to the same site, downloaded another theme in zip format (Emotic by andrej) and installed in the themes; no problems...?

    http://83.170.113.21/~merc/

  7. kroggy
    Member
    Posted 3 years ago #

    Again just installed 'Blackcar Theme'...no problems?

  8. kroggy
    Member
    Posted 3 years ago #

    Sussed it at last - and yes it was something really easy :(

    In the files there is one called 'search-form.php' ,however in the 'sidebar.php' the code asks for:

    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    A quick correction to:

    <?php include (TEMPLATEPATH . '/search-form.php'); ?>
    and all works okay.

    Hope this helps others :)

  9. kroggy
    Member
    Posted 3 years ago #

    Sorry guys,
    this dropped a search box into the menu lower down so what I have done is removed the following from the sidebar.php file:

  10. <?php include (TEMPLATEPATH . '/search-form.php'); ?>
  11. And now it does work all okay

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags