StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-26-2010, 03:32 PM
hcmccarthy hcmccarthy is offline
Registered User
 
Join Date: Mar 2010
Location: South Bay, CA
Posts: 9
Default EMERGENCY - can't log on

This is a later edit:

I uploaded a fresh functions.php file and all is well now. I can logon again.

So the emergency is gone, but my question is the same as below. This has happened several times. When you add some code, and it doesn't work, and then you delete it...why do the errors continue? Why is there a need to reinstall a file?

Thanks,

H


I added a single "log on widget" to the functions.php file. I tried it out and it wasn't logging out properly, nor was the meta widget logging out properly. (It used to.)

So I deleted the widget code i had added from functions.php. I've pasted the code I added below.

But even though I deleted this from the functions file and updated, now I can't log on. Wordpress takes me to the log on page, I enter my information and then the screen goes blank though the url is still http://www.wordtown.com/wp-login.php. Nothing happens.


do i need to change something from the ftp end?

What happened?

thanks.


Code added and deleted:

<!-- log in widget add on begin -->

<?php register_sidebar_widget(__('Login Box'), 'lbox_widget'); ?>

<?php
function lbox_widget() {
if (!is_user_logged_in()) : ?>

<form id="loginform" action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
<fieldset><legend>Login</legend>
<div>
<label for="log">Username
<input type="text" name="log" id="log" size="20" /></label>
</div>
<div>
<label for="pwd">Password
<input type="password" name="pwd" id="pwd" size="20" /></label>
</div>
<div>
<label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me</label>
</div>
<div>
<input type="submit" name="wp-submit" id="wp-submit" value="Log In" />
<input type="hidden" name="redirect_to" value="<?php echo urlencode(get_permalink()); ?>" />
</div>
</fieldset>
</form>

<?php else : ?>

<ul>
<li><a href="<?php echo get_option('home'); ?>/wp-admin/">Member Login</a></li>
<li><a href="<?php echo wp_logout_url(get_permalink()); ?>">Logout</a></li>
</ul>

<?php endif;
} ?>


<!-- log in widget add on end -->

Last edited by hcmccarthy; 03-26-2010 at 03:47 PM. Reason: Situation has changed
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Emergency Help DanFromOhio General Discussion 3 01-29-2010 04:36 PM
through emergency add feature bioeed General Discussion 2 01-19-2010 05:08 PM
where to get emergency support for "ON DEMAND" theme? webdevelopment General Discussion 3 06-24-2009 03:36 PM
Emergency aid programmer code! Please ¡¡¡ JCarlosMC General Discussion 4 01-23-2009 08:24 AM


All times are GMT -5. The time now is 02:05 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.