Hot answers tagged

6

Big thanks to Joel Bradbury for solving this one. I needed to add $config['disable_csrf_protection'] = 'y'; to my config. Here's why: It'll be because the tokens have been generated on a different base domain, and then it's moved and gotten stuck. Normally they're regenerated when they're detected as expired, but if it see's them as not expired, but ...


6

Some more googling and I found the answer here. The issue is with Structure and setting it to redirect to structure on login. I finally found out that Structure 3.3.1 is the culprit when you set it to redirect to Structure on login. You can get past it by editing the config file and change $config['allow_extensions'] = 'y'; to $config['...


4

Use the Structure global variable {structure:page:uri} which is the same as EE's native "page_url" variable.


4

Adding another OR should work: {if author_id == logged_in_member_id OR logged_in_group_id == "1" OR logged_in_group_id == "6" } Edit This Page ⇑ {/if}


4

I finally found out that Structure 3.3.1 is the culprit when you set it to redirect to Structure on login. You can get past it by editing the config file and change $config['allow_extensions'] = 'y'; to $config['allow_extensions'] = 'n';


3

Problem solved. If you are already logged in and log in again the return does not WORK


3

Create a hidden template that is just the logged in username only. Then load it in via jquery ajax .load(); Once login is complete as well. if (event.success) { member_favourites = "5"; //do something $("div#username").load("_username.html"); }


3

If you get in touch with Travis at Structure, there's a BETA which will resolve the 'redirect to structure on login' with 2.8x.


3

To me that looks like a JS conflict with a cp add-on like Devot:EE monitor or a straight out EE theme error. Presumably on a new entry screen you'll see the file manager modal down there too. Try replacing/re-uploading the themes folder for EE, updating the accessories to latest (or any extensions which modify the CP JS), then clear your browser cache.


3

Your best bet would be to attempt to repair the table via a database management utility outside of the EE control panel. Does your web host offer anything like a PHPMyAdmin interface, or do you have any experience with standalone MySQL clients like Sequel Pro? Those utilities should expose table repair functionality. I'd start there first. Before you ...


3

The "This site is currently unavailable" error suggests to me the IP addresses or usernames or something has been added to the "banned" list. This is how you check and fix this. --------->>>>>>>> BEFORE YOU PROCEED... BACK UP YOUR DATABASE --------->>>>>>>> THEN BACK THE DATABASE UP AGAIN ============================= Go into the exp_sites table in the ...


2

EE 2.4, in libraries/Template.php on line 2929 we have if (isset($this->EE->session->userdata[$val]) AND ($val == 'group_description' OR strval($this->EE->session->userdata[$val]) != '')) line 226 in your code, try to add "0,": $EE_login->session->userdata['screen_name'] = $query->row(0,'screen_name'); $EE_login-...


2

Change the Control Panel Session type to Cookies Only: http://ellislab.com/expressionengine/user-guide/cp/admin/security_settings.html This will get a Remember Me checkbox showing on the login screen.


2

I think, Customer Account Number would be unique for each member so based on the Customer Account Number, the member id can be fetched. That member id can be used for manually login a member. You should see here: Manually login a member in ExpressionEngine There is another way also. As you can get member's username also with Customer Account Number so just ...


2

This is what happens anyway (at least with Super Admin accounts). Maybe the more recent versions of EE introduce an extra level of security but I just tested this on a site running 2.6.1 and logging in on the front end also allowed me to access the CP without having to log in again.


2

Try disabling extensions and turn on debugging. Could be a PHP error getting in the way of the login. Also, I'd try the login in a browser you don't use often to eliminate a browser cookie issue. Chrome is not exactly good about letting go of cache I find.


2

This was a silly oversight after a long week of coding. Upon login the website redirected with a prefix of "www" where the rest of the site does not use this. Fixed with WWW resolve in .htaccess


2

Just wanted to comment that adding $config['cp_session_type'] = 's'; worked for me too.


2

I have no idea what your actual setup is, but I general find that a best practice is to utilize embeds for control features as well as consistency. Here is an example: Two template groups, one call embeds, one called pages. Embeds index.html (unused) _header.html _footer.html Pages index.html random_template.html Your pages template will all look like ...


2

I've created a really basic extension to bypass the default message. It redirects to an account page on login and the home page on logout but this could be modified to point to any URL (i.e. a custom message landing page) I've included a link to the download but should that expire you'll need to copy/save these two files into system/user/addons/loginbypass/ ...


1

What about using LogMeIn add-on to conditionally log out a user after form submission?


1

I have this problem as well, it's very annoying. There's a bug report here you might want to add to: https://support.ellislab.com/bugs/detail/20374/undefined-alert-when-logging-in-to-expired-session


1

I'm not sure if Zoo Visitor handles this differently, but you may need to place {last_activity} within the {exp:member:custom_profile_data} tag. Have you tried {exp:member:custom_profile_data} {last_activity} {/exp:member:custom_profile_data}? Also, this will display for the current logged-in user unless you show it as part of a larger loop and specify the ...


1

If the issue is logging in, and that's it, you can change replace your password in the exp_members table with an md5 hash of a password, and then log in using the unhashed version of the password. It's also possible to log yourself in programmatically (see EE 2.6.0 Password Reset not working)


1

I would recommend changing your admin_session_type in the config file to $config['admin_session_type'] = 's'; and trying again... if 's' (session) doesn't do the trick try 'c' (cookie) It might also be worth taking a peek at http://ellislab.com/forums/viewthread/216411/ If you locked out your account from some reason, you might have to clear out entries in ...


1

Have you tried logging in using your Super Admin email address as your username?


1

You say nothing has changed but something must have. Even if it's a change to the server set up (perhaps made by your host) it could have an effect. So it might be worth asking your host if any updates were made in the last 48 hours. This may at least give you a clue. Were any options changed in the site CP? Such as cookie settings, requiring and IP and ...


1

Try to change the Control Panel Session Type to Cookie only.


1

For shits and giggles, have you tried renaming to anything else as a test? yourfunname.php? Is there some sort of htaccess conflict using index?


1

Have you tried cranking up max_execution_time? Try 300 Various ways to do it - some cPanel versions let you configure it along with php version or you could use a php.ini file


Only top voted, non community-wiki answers of a minimum length are eligible