WordPress.org

Ready to get started?Download WordPress

Forums

Safe Mode
[resolved] Not working with udesign (2 posts)

  1. amommy
    Member
    Posted 11 months ago #

    I have u-design theme activated and it isn't working with it out the box.

    Warning: require_once(..themes/twentyfourteen/scripts/portfolio-item-thumbnail.php): failed to open stream: No such file or directory in .../themes/u-design/functions.php on line 1565
    
    Fatal error: require_once(): Failed opening required '.../themes/twentyfourteen/scripts/portfolio-item-thumbnail.php' (include_path='.:/usr/lib/php5.4') in .../themes/u-design/functions.php on line 1565

    that's because line 1565 is

    require_once( get_template_directory() . '/scripts/portfolio-item-thumbnail.php' );

    well duh...there is no script folder in twentyfourteen

    obviously the problem is checking if the file exists
    added

    if(file_exists(get_template_directory() . '/scripts/portfolio-item-thumbnail.php' ))

    works fine.

    But why is it even accessing the udesign theme at all let alone its functions?

    https://wordpress.org/plugins/safe-mode/

  2. Uffe Fey
    Member
    Plugin Author

    Posted 11 months ago #

    Safe Mode does not check any scripts folder or portfolio file at all. This error is caused by something else in your WP setup.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.