• Resolved vinamr

    (@vinamr)


    This is my site, orionmarineconcepts.com
    The functions.php controls all the widgets in the web-site. The wp-settings.php can’t get the file. If you check the link I’m getting these two warnings on the top of the site.

    Warning: include(/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php): failed to open stream: Permission denied in /home/oriongsj/public_html/wp-settings.php on line 328

    Warning: include(): Failed opening ‘/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/oriongsj/public_html/wp-settings.php on line 328

    Please Help, I’ve tried going to cpanel and change the permissions but it doesn’t work and when I try to edit it through the admin panel, the dashboard asks me to check it this file is writable or not.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter vinamr

    (@vinamr)

    Also I would to specify in the admin panel I’m getting these 4 warnings:

    Warning: include(/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php): failed to open stream: Permission denied in /home/oriongsj/public_html/wp-settings.php on line 328

    Warning: include(): Failed opening ‘/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/oriongsj/public_html/wp-settings.php on line 328

    Warning: Cannot modify header information – headers already sent by (output started at /home/oriongsj/public_html/wp-settings.php:328) in /home/oriongsj/public_html/wp-includes/option.php on line 747

    Warning: Cannot modify header information – headers already sent by (output started at /home/oriongsj/public_html/wp-settings.php:328) in /home/oriongsj/public_html/wp-includes/option.php on line 748

    Dion

    (@diondesigns)

    Do you have a problem with all themes or just this one theme? If just this one theme, check the ownership and permissions of the “BLANK-Theme” folder. One or both are probably incorrect.

    Please note that you will not be able to fix an ownership problem unless you have root SSH/shell access.

    Also, if you are using customized WordPress hosting (such as what is offered by GoDaddy), you may need to find new hosting. I’ve found that these customized hosting services tend to have problems if you install something not provided by them.

    Thread Starter vinamr

    (@vinamr)

    Hey, Thank you so much for that DionDesigns; the permissions of the BLANK-Theme folder is 755 but that isnt the issue, the functions.php file’s permission is 0000. I don’t understand why it doesn’t change.
    I tried to change it so many times. It always changes back to 0000.

    Also, how do i check the ownership of the folder? Why I’m asking is because I can see the permissions but I can’t see the ownership.

    Can you suggest me a link or something to resolve this issue?

    It might be simpler to:
    1) rename the present theme directory
    2) install that theme again

    functions.php having permissions of 0000 is a disaster, 644 would be reasonable. When you say it changes back, is that immediately ?

    Thread Starter vinamr

    (@vinamr)

    Not exactly immediately RossMitchell, but as soon as I reload it goes back to 0000.

    What i’ve done now is that made a new folder and uploaded it on the server with the same folder contents and activated the new theme it still is asking for BLANK-Theme..

    Why is that?

    Thread Starter vinamr

    (@vinamr)

    It says at the top on the site:

    Warning: include(/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php): failed to open stream: Permission denied in /home/oriongsj/public_html/wp-settings.php on line 328

    Warning: include(): Failed opening ‘/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/oriongsj/public_html/wp-settings.php on line 328

    Should I be editing wp-settings?

    code on line 328:
    if ( ! defined( ‘WP_INSTALLING’ ) || ‘wp-activate.php’ === $pagenow ) {
    if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . ‘/functions.php’ ) )
    include( STYLESHEETPATH . ‘/functions.php’ );
    if ( file_exists( TEMPLATEPATH . ‘/functions.php’ ) )
    include( TEMPLATEPATH . ‘/functions.php’ );
    }

    Should i Change it to:
    // Load the functions for the active theme, for both parent and child theme if applicable.
    if ( ! defined( ‘WP_INSTALLING’ ) || ‘wp-activate.php’ === $pagenow ) {
    if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . ‘/functions.php’ ) )
    include( STYLESHEETPATH . ‘/functions.php’ );
    if ( file_exists( TEMPLATEPATH . ‘/functions.php’ ) )
    include( TEMPLATEPATH . ‘/home/oriongsj/public_html/wp-content/themes/BLANK-Theme/functions.php’ );
    }

    Please, Help..

    Don’t edit wp-settings.php it will only kick your problem along not fix it.

    So login to your website hosting using either FTP or your website management file manager. Then navigate to “wp-content/themes”
    then rename BLANK-theme directory to xxBLANK-theme
    create a new directory “BLANK-theme”, install a newly downloaded fresh set of theme files into it.

    If this doesn’t work, then you have a problem in the rest of your WordPress files, do a manual reinstall of all of them, leave your Wp-config.php file, also all of wp-content (themes, plugins, uploads etc)

    If this doesn’t work, then it must be a plugin, rename your plugins directory (or all the directories inside it.

    Thread Starter vinamr

    (@vinamr)

    Thanks RossMitchell for that information. I am not gonna touch wp-settings.php.

    if I change back the xxBLANK-Theme to BLANK-Theme will my site get back to square 1?

    just wanna make sure that everything i do can be undone.

    Thread Starter vinamr

    (@vinamr)

    Hey RossMitchell, I’ve found out for sure that it isn’t a plugin that’s causing this.

    Then navigate to “wp-content/themes”
    then rename BLANK-theme directory to xxBLANK-theme
    create a new directory “BLANK-theme”, install a newly downloaded fresh set of theme files into it.

    New set of files from the localhost or backup?

    Thread Starter vinamr

    (@vinamr)

    Thank You so much RossMitchel, This error could not be resolved but my problem was solved.

    The site looks great

    I made a fresh theme and edited everything accordingly.

    the BLANK-Theme is broken now somehow the functions.php locked itself.

    Thank you all for the help.

    I wanted ask that does this happen? I mean will I be facing this problem again? I can happily do the same thing then as well but, does the functions.php file do that often??

    I do not understand how this problem occurred.
    If it does repeat, then there is something very strange about the hosting, I would change hosting immediately.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error: Unable to change File permissions of functions.php.’ is closed to new replies.