author -> bbp_user
-
I reinstalled the child using the method described by Prasanna, and still get the code across the top, and it still doesn’t work. Here is the precise content of the functions.php file in the child theme:
<?php
function graphene_redirect_author_page(){
if ( ! is_author() ) return;
wp_redirect( get_user_profile_link( get_the_author_meta( 'ID' ) ) );
}
add_action( 'template_redirect', 'graphene_redirect_author_page' )
?>What am I doing wrong?
Thanks!
Martin
I turned on permalinks–so now the problem is a bit nicer, I think–I just need to change anything of the form
…/author/username -> …/forums/users/username where username is the users name. I tried
a plugin called WP htaccess Control, but the server apparently won’t let me modify the .htaccess — it keeps giving
“The connection to the server was reset while the page was loading.†errors.
Any help will be much appreciated!
Martin
Mod
Quote:but the server apparently won’t let me modify the .htaccess — it keeps giving“The connection to the server was reset while the page was loading.†errors.
Some hosts will not let you alter .htaccess settings. They figure it’s not worth the overload on their support department when people mess things up.
However, this could just be a browser issue. Try this using a different browser. If it works from there, you need to clear your original’s browser’s cache. This may help you with Firefox: http://support.mozilla.com/en-US/kb/Error+loading+web+sites#Interrupted_or_reset_connection
Admin
The code I gave you should be able to do what you want regardless of your permalink settings. Activate the child theme, insert that code in the child theme’s
functions.phpfile, and post a link to your site so that we can take a look.Is there something wrong with the functions.php file above and with using Prasanna’s method?
Right now I can’t do anything at all–I am locked out of the admin functions with an error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 24576 bytes) in D:Hosting8351782htmlwhupwp-adminincludesupdate.php on line 104
No idea what that is. The site itself seems to be functioning fine.
Thanks!
Martin
Mod
See this:
http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
Bumping it up to 64MB should work.
I tried to follow the instructions, adding the relevant line to the wp-config.php file, and everything broke.
I restored the file, and am no longer getting the same error, but I still can’t even load the website–getting
timeout errors. Please help!
Thanks
Martin
Admin
Just delete the
functions.phpfile in the child theme.The site needs a better host, at least a host that’ll allow the memory limit to be increased to 64MB and use htaccess. And whoever owns the site needs to give you FTP access to the server. Other than that, there’s nothing much we can do to help unfortunately. We have to work with the card we’re dealt with, and in your case that’s not much.
OK, I have sorted stuff out–I have ftp access, the site is working more or less. I asked GoDaddy to migrate it from windows to linux, and that seems to have helped. I still have some issues, but after that I will come back to this.
Thanks!
Martin
OK, things seem to be going much better now. I still have one question before I go ahead and try this. When I tried the child theme, not only did it lose various settings, it lost all the widgets in the sidebars, etc. If I export them from the parent theme (graphene), is there a way to modify the file so I could import it into the child theme? That would certainly make things easier–I have fairly elaborate widgets on different pages (I am using Widget Logic Control).
Thanks!
Martin
- You must be logged in to reply to this topic.
