Tips and Tricks HQ Support Portal › Forums › WP eMember › Member only pages not blocked, not asking for login?
- This topic has 11 replies, 3 voices, and was last updated 13 years, 9 months ago by dskallman.
-
AuthorPosts
-
February 17, 2011 at 12:44 am #2714dskallmanMember
The following pages are viewable by members only, however when logged out it doesn’t show the please login message and it shows whatever I don’t have blocked off with member level or ID shortcode. Is there a reason this is happening?
http://glocalwebtech.com/support-center-dashboard/
http://glocalwebtech.com/support-center-dashboard/invoice-history
http://glocalwebtech.com/support-center-dashboard/project-tracker
I did take some of the messages out of the language file, but not for the main login pages, as far as I know.
Thanks,
Dana
February 17, 2011 at 1:09 am #29114wpCommerceModeratorIs this happening for content protection or section protection?
“I did take some of the messages out of the language file”- Have you modified any of the following constants in the language file?
EMEMBER_MEMBERS_ONLY_MESSAGE
EMEMBER_PLEASE
EMEMBER_LOGIN
EMEMBER_TO_VIEW_CONTENT
EMEMBER_NON_MEMBER
EMEMBER_JOINFebruary 17, 2011 at 4:41 am #29115dskallmanMemberThank you for your quick reply.
The first two yes
EMEMBER_MEMBERS_ONLY_MESSAGE
EMEMBER_PLEASE
These no, I changed the wording to support instead of member but it’s still there
EMEMBER_LOGIN
EMEMBER_TO_VIEW_CONTENT
EMEMBER_NON_MEMBER
EMEMBER_JOIN
Does that have any affect?
February 18, 2011 at 12:33 am #29116amin007ParticipantWe really can’t tell you what the problem is when you have done custom changes. First we need to stablish the fact that the changes you made are causing this. Please save a backup copy of your currently installed eMember plugin and load a fresh version from here:
Let me know when you have uploaded a fresh version and I will go and check the pages you shared earlier.
February 18, 2011 at 12:35 am #29117wpCommerceModeratorFor section protection the message comes from the following constant of the language file:
EMEMBER_MEMBERS_ONLY_MESSAGE
So if you have the value of that constant empty you will not see any “This content is for members only” message.
February 18, 2011 at 1:34 am #29118dskallmanMemberThank you for your messages. I did do a plugin update and got the same result. The weird part is that it was working one day and when I looked the next day it wasn’t. So unless there was an udpate that I don’t recall there could be another conflict.
What I am referring to is this phrase:
Please Login to view this Content.(Not a member? Join Today!)
It should appear on all pages that are protected for members only and it isn’t. From what I could see in the Language file it would be the following lines:
EMEMBER_PLEASE
EMEMBER_LOGIN
EMEMBER_TO_VIEW_CONTENT
EMEMBER_NON_MEMBER
EMEMBER_JOIN
All of those are still there, except for Please, so that should be the only word missing, if I am understanding correctly. If you click on the pages I sent do you see anything?
I really appreciate your help. Any other thoughts you may have would be great.
Thanks,
Dana
February 18, 2011 at 1:38 am #29119dskallmanMemberOh, other changes I made were:
Take off Logout link for widget/login shortcode, so this line: ‘.EMEMBER_LOGOUT.’
And this change from a previous response to a question I sent on this forum:
Open the “wp_eMember1.php” file and search for the following line:
return ‘<b>’.EMEMBER_CONTENT_RESTRICTED.'</b>
‘;
once you find it just replace it with the following:
return ”;
Thought this information may be relevant too.
February 18, 2011 at 3:37 pm #29120dskallmanMemberI added a new member to test out different level logins and the first time someone logs in this error comes up:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php on line 76
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php on line 77
Warning: Cannot modify header information – headers already sent by (output started at /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/wpcmshos/public_html/wp-includes/pluggable.php on line 690
Warning: Cannot modify header information – headers already sent by (output started at /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/wpcmshos/public_html/wp-includes/pluggable.php on line 691
Warning: Cannot modify header information – headers already sent by (output started at /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/wpcmshos/public_html/wp-includes/pluggable.php on line 692
Warning: Cannot modify header information – headers already sent by (output started at /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php:76) in /home/wpcmshos/public_html/wp-content/plugins/wp-eMember/wp_eMember1.php on line 95
After I refresh the page and login again it no longer appears. Does this mean anything?
February 19, 2011 at 1:48 am #29121amin007ParticipantThings are going in so many directions that I am loosing track. I really need you to install a fresh version from here so I can start from a known point:
February 20, 2011 at 10:58 pm #29122dskallmanMemberI just updated the eMember plugin, you can see on pages it doesn’t show:
Please Login to view this Content.(Not a member? Join Today!)
Only the content protection based on shortcode.
http://glocalwebtech.com/support-center-dashboard/
http://glocalwebtech.com/support-center-dashboard/invoice-history
http://glocalwebtech.com/support-center-dashboard/project-tracker
I haven’t changed anything yet, so plugin is as I downloaded it. Any thoughts on why this may be? I won’t change anything until I hear back from you.
Thanks!
February 21, 2011 at 12:18 am #29123wpCommerceModeratorHave you done a fresh install of the plugin? (deleting the older one completely and installing the recent version)?
February 23, 2011 at 3:50 am #29124dskallmanMemberYes I did.
-
AuthorPosts
- You must be logged in to reply to this topic.