• Hi,

    i have recently upgrade the wordpress to multisite in my clients site..

    for your reference here is the link…
    realestate.nyasatimes.com

    even after i logged as admin, current user always shows as 0.. i dont know where the issue was.. was googling for last 6 hours and tried some thing nothing helped me 🙁

    so finally i am here to seek your help.. your time to read my question is much appreciated. pls help me to cross this issue..

    here is .htaccess file for your reference

    RewriteEngine On
    #redirect to www for the main site
    RewriteCond %{HTTP_HOST} ^nyasatimes\.com
    RewriteRule ^ http://www.nyasatimes.com/%{REQUEST_URI} [L,R=301]
    
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
Viewing 3 replies - 16 through 18 (of 18 total)
  • SFTP should have no bearing on whether the files are transferred as binary or ASCII files. I use SFTP exclusively, and my files are still transferred as ASCII files. SFTP has supported ASCII file transfers for at least 7 years, now. If your server’s SFTP handler doesn’t support ASCII file transfers, you might need to update the daemon.

    Thread Starter arunps

    (@arunps)

    Thank you so much for your response. Much appreciated…

    i will check my server guys.. 🙂

    Good luck.

    As an alternative, if you have SSH access to your server (which, if you have SFTP access, you probably do), you could try reinstalling WordPress through SSH.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘wp_get_current_user() function returns 0 always’ is closed to new replies.