• How can I fix this error?

    Warning: require_once(TEMPLATEPATH/admin/clshelpfields.php) [function.require-once]: failed to open stream: No such file or directory in /public_html/wp-includes/functions.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required ‘TEMPLATEPATH/admin/clshelpfields.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /public_html/wp-includes/functions.php on line 3

    Happens after I tried to set the template for a page programmatically.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    have you tried:

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem. If the problem goes away, activate them individually (one-by-one) to find the problematic plugin.

    If you don’t have access to your admin area, try deactivating them manually via FTP or phpMyAdmin.

    -switching to the default theme (“twentyten”) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue.

    If you don’t have access to your admin area, then access your server via FTP or SFTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed).

    -If the above steps do not resolve the issue, download WordPress again and replace your copies of everything EXCEPT the wp-config.php file and the /wp-content/ directory with fresh copies. This should replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory.

    Thread Starter stringrv

    (@stringrv)

    I fixed it just before reading this! lol but I did some of the things you mentioned, I activated the default theme and then I looked through some of my files and found a few that had some changes from the orignal install so I replaced those and then actived the theme.

    Next thing, can you tell me how I can set a template for a page that I create when I hit submit on a form(using TDO Mini Forms)? I want to make a list of some templates from OptimizePress and some of my own, and then set the selected template to the page that is created.

    I tried to use the theme switching:
    in functions.php:
    function updateTheme($theme){
    update_option(‘template’, $theme);
    update_option(‘stylesheet’, $theme);
    update_option(‘current_theme’, $theme);
    }
    in the form:
    updateTheme(‘OptimizePress’);

    This is how I got into the errors I showed above. Any help?

    Moderator t-p

    (@t-p)

    I fixed it

    Good. 🙂

    Next thing, can you tell me how I can set a template for a page that I create when I hit submit on a form(using TDO Mini Forms)? I want to make a list of some templates from OptimizePress and some of my own, and then set the selected template to the page that is created.

    I don’t know.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error on my pages. help!’ is closed to new replies.