fr2632
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Change of internal IP addressHi 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.
Forum: Fixing WordPress
In reply to: Change of internal IP addressLikely 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 ??
Forum: Fixing WordPress
In reply to: Protected Pages Timeout ??You`re welcome ??
Forum: Hacks
In reply to: Page Protection PasswordThis is still a “workaround”… I think wordpress developers needs to do something about it!
Forum: Fixing WordPress
In reply to: Protected Pages Timeout ??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 PasswordOk, 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 PasswordUnfortunately 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?
Forum: Themes and Templates
In reply to: WordPress website does not load the style.css!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′ 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) ?
Forum: Fixing WordPress
In reply to: Theme / Plugin InstallI 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 intowp-config.php
Maybe will be useful for liondedan ??
Forum: Fixing WordPress
In reply to: Theme / Plugin InstallI 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?