Forum Replies Created

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

    (@fr2632)

    Hi wslade, I can see only the home page of my site (with no css loaded) but only internally in my LAN, externally by typing the URL it loads forever and nothing happened.

    On the wp-login.php page (also without css) when I try to login I get “Page not found” afterwards so no access to the dashboard.

    Just want to specify that I did not change anything in wordpress or .htaccess or php.ini, just provider and IPs…

    Thank you.

    Thread Starter fr2632

    (@fr2632)

    Likely your issue is caused by the DNS cache in your LAN. Search for “How To Clear Your DNS Cache” for whatever OS your workstation is using.

    Thanks for your reply, I followed the instructions here: https://askubuntu.com/questions/2219/how-do-i-clear-the-dns-cache but still doesn`t work ??

    Thread Starter fr2632

    (@fr2632)

    You`re welcome ??

    Forum: Hacks
    In reply to: Page Protection Password

    This is still a “workaround”… I think wordpress developers needs to do something about it!

    Thread Starter fr2632

    (@fr2632)

    Solution found! Just add this code into function.php of your theme:

    add_action( 'wp', 'post_pw_sess_expire' );
        function post_pw_sess_expire() {
        if ( isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
        // Setting a time of 0 in setcookie() forces the cookie to expire with the session
        setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH);
    }

    This will forces the cookie to expire with the session, basically when you close and reopen the page will ask for the password again ??

    Forum: Hacks
    In reply to: Page Protection Password

    Ok, I found a solution! Just add this code into function.php of your theme:

    add_action( 'wp', 'post_pw_sess_expire' );
        function post_pw_sess_expire() {
        if ( isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
        // Setting a time of 0 in setcookie() forces the cookie to expire with the session
        setcookie('wp-postpass_' . COOKIEHASH, '', 0, COOKIEPATH);
    }

    This will forces the cookie to expire with the session, basically when you close and reopen the page will ask for the password again ??

    Forum: Hacks
    In reply to: Page Protection Password

    @fr2632, you did edit the existing line accordingly, and did not simply insert the code provided at line 393 right? The appropriate line in 3.5.1 is now at 399, and would override similar code inserted above it.

    Thats right, I modified the line 399 of the wp-login.php file.

    Forum: Hacks
    In reply to: Page Protection Password

    Unfortunately it does not work for me ??

    My wp version is the 3.5.1 and I modified the wp-login.php like the following:

    // 10 days 864000 ?ndrat till 900 = 15 min
     setcookie( 'wp-postpass_' . COOKIEHASH, $wp_hasher->HashPassword( stripslashes( $_POST['post_password'] ) ), time() + 900, COOKIEPATH )

    It does not work ??

    Any other ideas?

    Thread Starter fr2632

    (@fr2632)

    Ok, I found the following line:

    <link rel=’stylesheet’ id=’twentytwelve-style-css’ href=’https://localhost/wp-content/themes/twentytwelve/style.css?ver=3.5.1&#8242; type=’text/css’ media=’all’ />

    He is searching on the https://localhost url which obviosly does not exist externally. But how do I change it? How can I give him the correct path? I seen in the general settings:

    WordPress address (URL) and Website address (URL) ?

    I fix it!

    I added the following line:

    if(is_admin()) {
            add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
            define( 'FS_CHMOD_DIR', 0751 );
    }

    Into wp-settings.php and not into wp-config.php

    Maybe will be useful for liondedan ??

    I have exactly the same issue!! I tried to add the following to the wp-config.php file:

    if(is_admin()) {
            add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
            define( 'FS_CHMOD_DIR', 0751 );
    }

    But it doesnt work!! I presume that there is something to do with FTP configuration?

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