Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Password Protected Pages - cannot sign in

Old Aug 29, 2013, 02:05 PM
8 posts · Aug 2013
I am unable to figure out what my problem is. I am hoping someone can help me.

I have several password protected pages that I have not visited since upgrading to Montezuma some time ago.

They have worked in the past but no longer respond to the correct password. I probably should have tested them at the time but didn't.

I have deactivated the theme with all plug-ins activated and the password protection works just fine. I have disabled all the plug-ins with Montezuma activated and the page is non-responsive again.

The only modification I have made is to add the following to the functions.php:

add_filter( 'the_password_form', 'custom_password_form' );
function custom_password_form() {
global $post;
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
$o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-pass.php" method="post">
' . __( "Your files are only a password away.<br />Please use the password that was sent to you via email to access the goodies.<br /> <br />") . '
<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" class="button" value="' . esc_attr__( "Submit" ) . '" />
</form><br /><p style="font-size:14px;margin:0px;">If you have misplaced your password, or need a new one, please <a href="http://domain/contact">contact us to get set up.</a></p>

return $o;

Restoring the original functions.php makes no difference.

Here is an example of an offending page: bit.ly/15jBEHt I have reset the password to "montezuma"

Any ideas?
Old Aug 29, 2013, 02:19 PM
juggledad's Avatar
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What happens if you disable all plugins?
Old Aug 30, 2013, 01:03 AM
8 posts · Aug 2013
The problem persists with or without the plug-ins activated.
Old Aug 30, 2013, 05:42 AM
juggledad's Avatar
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I just created a password protected page and it works fine, just as you would expect. I would suggest uploading a fresh copy of the theme to make sure you remove all the changes you made.

This looks like different users could have different passwords. How is that handled?

Last edited by juggledad; Aug 30, 2013 at 05:45 AM.
Old Aug 30, 2013, 11:31 AM
8 posts · Aug 2013
I wish I could tell you what the problem was but reinstalling the theme did the trick.

Thanks for your help and a first rate theme.


password protected page

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa 3.6.4 & Password Protected Pages olsonsp4c Atahualpa 3 Wordpress theme 0 Apr 9, 2011 12:47 PM
Formatting of Sumbit Button on Password Protected Page aebrigham Header configuration & styling 7 Sep 14, 2009 10:42 AM
Password protected Page aebrigham Page & Category Menu Bars 7 Aug 12, 2009 10:59 AM
Making a 'child page' password protected when it holds a forum Steven Atahualpa 3 Wordpress theme 2 Mar 31, 2009 07:11 PM

All times are GMT -6. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.