• Hello everyone,

    I’m trying to switch to “pretty” permalinks, but any time I select anything in Settings > Permalinks other than “Default” I get this error:

    Fatal error: Only variables can be passed by reference in /home2/www/wp-includes/rewrite.php on line 788

    Then when I access my WordPress site the same error displays. I have to switch back to “Default” permalinks for the site to function. I’ve searched all over and haven’t found anyone experiencing a fatal error when attempting to update permalinks. Does anyone have any idea where I might start to troubleshoot this? Any ideas are appreciated.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-related problems?

    – re-uploading the wp-includes & wp-admin folders?

    Thread Starter spiderstave

    (@spiderstave)

    Thanks for your reply. I will give your ideas a try and post back.

    Thanks!

    Hi,

    Set your desired permalink for your blog and add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

    http://wordpress.org/support/topic/354612?replies=1

    This might be the answer you need.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot switch to “pretty” permalinks’ is closed to new replies.