Is a3m compatible with ci2.0? I am getting session errors while using it…
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 04, 2011 8:40am
Subscribe [19]#16 / Jan 26, 2011 6:34pm
Is a3m compatible with ci2.0? I am getting session errors while using it…
#17 / Jan 27, 2011 10:11am
Are you supposed adjust the folders location? Or should you not need to move a single file? It seems my problem is that it is not finding the accounts folder, but if I move it out I assume it will mess with other things.
#18 / Jan 27, 2011 11:28am
Natedogg386 are you using the .htaccess that came with a3m?
#19 / Jan 27, 2011 9:04pm
I realized it didn’t FTP to the server with everything else, and when I go to upload it, it won’t even let me select the .htaccess file to upload. I assume it is an issue with my host. Any suggestions? And I still can’t get it working on my MAMP server on my laptop which has the .htaccess file.
Edit: Nevermind, I searched through the pages of the first thread and found the useful installation guide a user created here. I had not touched my modules/account folder at all, that was all I needed to do. Thanks for helping.
Edit2: Well, I got it working on my local server, but as for the live server I am having the same problem. I got the .htaccess file uploaded now, and it is still doing the same thing, just reloading the front page. Any suggestions?
#20 / Jan 28, 2011 3:32am
I’m still wondering which .htaccess file you’re using. If you’re using the one that’s here on the CI website it won’t work. You need the one with the module. Also I do believe that the host has to set allow override on.
#21 / Jan 28, 2011 11:05am
I am using the one that was downloaded with the a3m 1.0 mushmellow package from google code. Where could I find the one with the module?
#22 / Jan 28, 2011 11:59am
That’s the one I was referring to. I’m not sure why you’re having problems with it though.
#23 / Jan 28, 2011 1:20pm
Here are the exact contents of my htaccess file, located under the a3m_mushmellow file on my server.
RewriteEngine on
RewriteRule ^$ /a3m_mushmellow/index.php [L]
RewriteCond $1 !^(index\.php|resource|system|user_guide|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /a3m_mushmellow/index.php/$1 [L]I notice when you click “sign up” the uri changes to end with “/account/sign_up”. But it just refreshes the front page. You can see for yourself at http://www.bingebidder.com/a3m_mushmellow/
Any and all suggestions are greatly appreciated.
#24 / Jan 28, 2011 3:25pm
hello guy
Thank for the awesome library.
I’ve try it with facebook on my local machine.
everything ok, it’s great.
and i also try to login with facebook account with your demo link here
https://mushmellow.gamespai.com/index.php/account/sign_in
I found some bug on that link ( on profile link )
It’s can not display my facebook picture
I see you try to use graph api to retrieve profile picture
But you display it by use this src
<a href="https://mushmellow.gamespai.com/resource/user/profile/http://graph.facebook.com/100001284953024/picture?t=746277a902dba17b69e8b64217fac16a">https://mushmellow.gamespai.com/resource/user/profile/http://graph.facebook.com/100001284953024/picture?t=746277a902dba17b69e8b64217fac16a</a>It’s should be only https://graph.facebook.com/some_facebook_id/picture
Should you update your demo link with a new version of a3m?
#25 / Jan 29, 2011 2:03pm
Hi PK,
Kudos for this great module.
I’m trying the module inside an iframes facebook app and it doesn’t seem to work. If the website is open by itself, and you try to login through the facebook connect, everything works fine. But, when you try to login through the facebook application page with the website open inside the iframe, then it just never logs me in and just redirects to the home controller and never signs me in. This only happens with IE and Safari, I believe this is due to security settings in IE and Safari which do not allow cross-domain posting/cookies sharing! Is there a workaround for this to make a3m work?
Thanks,
-David
#26 / Feb 01, 2011 2:26am
@Natedogg386—I banged my head against the wall all evening trying to figure why my .htaccess wouldn’t work, but I needed to change the config.php file to match this:
$config['uri_protocol'] = "ORIG_PATH_INFO";** try all the different types (AUTO didn’t work for me either)
@peng kong
I’m running on a shared host (php 5.2.?) and I’m getting these
Message: Undefined property: Account_model::$db
Filename: models/account_model.php
Line Number: 40
Fatal Error: Call to a member function get_where() on a non-object in {filename}
thrown on
return $this->db->get_where('a3m_account', array('username' => $username))->row();I tracked it down (I think) to needing to use __Construct() method.. although, before I go changing all the classes, do I have this right? Is anyone else exhibiting this misfortune?
..should be this..(?)
class Account_model extends Model {
/**
* Constructor
*/
function __construct() //CHANGE FROM: Account_model()
{
// Call the Model constructor
parent::__construct(); //CHANGE FROM: parent::Model();
}#27 / Feb 01, 2011 9:29am
@diZzyCoDeR
I had given up until you posted that quick 30 second fix, and it worked. Thank you very much, I believe I banged my head on the wall as much if not more than you.
#28 / Feb 01, 2011 12:57pm
No prob. mate. 😉
Now, about my FATAL ERROR… after a nights sleep and a coffee.. but I tracked it down to “database” class not being loaded.
wha?
So I autoloaded it at system/application/config/autoload.php
wtf?! That seems to have done it.
#29 / Feb 10, 2011 1:49pm
Helllooo I apologize if this has been asked already before, but I see that in the config file, the session cookies are not encrypted.
Does this allow the user to tamper with their session?
Would it break A3M if I set cookie encryption to true?Thanks a lot!
DuckEater
it’s not a security issue as far as i understand… as long as you use a database to handle sessions. if you encrypt it doesn’t affect anything only makes your cookie file bigger for no good reason.
from what i understand when using db the cookie basically just stores a reference that points to a row in your session table. the only way to hijack someone’s session is to steal/guess/bruteforce their cookie’s stored reference but also note that the reference changes every 5 mins. also then depending on how secure you need it to be you can also require the user agent and the ip address to match up. erm.. encrypting basically scrambles the data on the cookie which in this case is the reference to the session. but what the hacker will do is recreate the cookie not try to decrypt.
don’t shoot me if i got it wrong 😊
#30 / Feb 10, 2011 1:53pm
Is a3m compatible with ci2.0? I am getting session errors while using it…
no it’s not compatible with ci2.0! you got to follow the official ci guide on how to port ci1.7 to 2.0. but don’t worry i already ported it cuz the good ellislab folks officially release 2.0. i will upload my 2.0 version tmr to google code and release a download package.