We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Member Profile Page Not Working

How Do I?

dwatson's avatar
dwatson
22 posts
5 years ago
dwatson's avatar dwatson

I’m not sure how to access the profile page.
I try going to /member/profile I see: “Error The page you requested was not found.”

I have not made a custom theme. I have access to public profiles toggled on. I’m not sure what else I need to do. Any suggestions?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

Try member/1 - which would take you to the profile for member id 1.

That work?

       
dwatson's avatar
dwatson
22 posts
5 years ago
dwatson's avatar dwatson

Hi Robin

When I try that, I get the same message…that the page was not found.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

It should come up at index.php/member/memberlist given permission to view it.

If not, it’s not impossible that you have a different ‘member’ page indicator, though it’s unlikely. Still- check in Settings - URL and Path Settings - what do you have for ‘Profile URL segment’? And definitely nothing odd at play with htaccess or say a route? If still no luck, try turning debugging on in Settings - Debugging & Output and let’s see if that gives us a hint as to why it’s pulling a 404.

       
dwatson's avatar
dwatson
22 posts
5 years ago
dwatson's avatar dwatson

Here is some more context on my situation. I installed a version of EE on a domain a while back but didn’t really use it much. In working on a new project, I installed another instance recently on the same domain but in a directory just titled “j”. The installation in the /j directory is the project that related to this thread. I’m not sure if having 2 installs like this is problematic at all.

With that said, I tried going to “…/j/index.php/member/memberlist” and it broke out of the /j directory and showed me “…/index.php/member/memberlist”. This then said “You are not allowed to view member profiles.” but this message comes from the old install on the main domain directory. Maybe this has something to do with the problem?

When I go to “/j/member/memberlist”, however, I get the “The page you requested was not found.” message and it doesn’t try to break out of the /j directory.

I checked the .htaccess file in the /j directory and I see: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

Is there something I should edit there?

As for URL/Path Settings, the Profile URL Segment is just “member”.

Thank you for trying to help, I really appreciate it.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

It should generally be fine to have an install in ‘j’ (you have to watch cookies and I’ll often put a prefix on the cookies for the second site, but it’s generally fine).

Let’s do this just to simplify things. Take the htaccess out entirely- rename .htaccess-bk or something.

Then try with /j/index.php/member/memberlist/ and let’s just see.

       
dwatson's avatar
dwatson
22 posts
5 years ago
dwatson's avatar dwatson

I renamed the file to .htaccess-bak and then went to /j/index.php/member/memberlist/ This worked! The URL didn’t change either.

I then tried to go to “/j/member/profile” and got the default browser message of Page Not Found (as opposed to the EE message of “The page you requested was not found.” I was getting before.

When I tried going to “/j/index.php/member/profile” it broke out of the /j directory again, and showed the same browser message of page not found.

Any idea?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

Did you try. /j/index.php/member/profile/ ? If you don’t have the htaccess in there, you have to have index.php.

So first- just make sure it works like it should WITH index.php and no htaccess.

Once that’s good- you can put the htaccess back. When it’s breaking out it’s because of how it’s doing this bit: # Removes index.php from ExpressionEngine URLs. What you need to do, work your way through the documented ‘exceptions’ when things are weird- especially the bit on what to do if you’re putting index.php in a subfolder. See here.

Probably something like this will work:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) j/$1$2 [R=301,NE,L]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ j/index.php/$1 [L]
</IfModule>
       
dwatson's avatar
dwatson
22 posts
5 years ago
dwatson's avatar dwatson

Wow! “/j/index.php/member/profile/” worked.

I don’t really understand it but ” /j/index.php/member/profile” (without the ending “/”) doesn’t work but with it, it does.

I’ll put the htaccess file back later (about to leave work).

Thank you so much for the help! I really appreciate it 😊

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

Glad you’re close! I swear, htaccess is weird sometimes.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.