Deployed concrete to Rackspace.Cloud environment, getting errors on file uploads
Permalink
As in the subject we are trialing concrete in a cloud environment. [http://www.mosso.com/]
all seems ok but we are having an issue with the file uploader (single and multiple)
error reported by concrete is the not to inspiring "Invalid form token". php_errors file reports
[18-Jun-2009 11:28:51] PHP Fatal error: Call to a member function getFileID() on a non-object in /mnt/stor2-wc1-dfw1/407824/concrete.fidus.co.uk/web/content/concrete/tools/files/importers/single.php on line 55
Any help much apreciated.
all seems ok but we are having an issue with the file uploader (single and multiple)
error reported by concrete is the not to inspiring "Invalid form token". php_errors file reports
[18-Jun-2009 11:28:51] PHP Fatal error: Call to a member function getFileID() on a non-object in /mnt/stor2-wc1-dfw1/407824/concrete.fidus.co.uk/web/content/concrete/tools/files/importers/single.php on line 55
Any help much apreciated.
it's with small files as well
http://concrete.fidus.co.uk.php5-4.dfw1-1.websitetestlink.com/phpin...
can't see any mention of mod_security
http://concrete.fidus.co.uk.php5-4.dfw1-1.websitetestlink.com/phpin...
can't see any mention of mod_security
been in touch with the support at mosso.com the cloud suppliers...
they made similar suggestions to you, as to increasing the post_max_size and upload_max_filesize so I have doubled these up...
Also set the error_reporting to -1 and noticed that the upload does not cause a php_error... but that you do seem to have a few PHP Strict Standards: error messages???
So the support at cloud are able to upload when on there internal network... so I am thinking it is a network issue.. the only other thing I can think is could it be a location issue? eg the cloud space is running on Eastern Standard time, whereas I'm on GMT. bit of a long shot.
they made similar suggestions to you, as to increasing the post_max_size and upload_max_filesize so I have doubled these up...
Also set the error_reporting to -1 and noticed that the upload does not cause a php_error... but that you do seem to have a few PHP Strict Standards: error messages???
So the support at cloud are able to upload when on there internal network... so I am thinking it is a network issue.. the only other thing I can think is could it be a location issue? eg the cloud space is running on Eastern Standard time, whereas I'm on GMT. bit of a long shot.
We've been chasing our tails with this one too. As you say Rackspace/Mosso guys can get it to work but not from any of our 4 tested locations around the UK.
The other issue we are having in this environment is, we can't update any of the forms. So on the contact page we can change copy but not add fields to capture more data or edit the email address it sends to.
As a work around on the images we have been FTP'ing images to the incoming folder on the site and then adding the file from the incoming directory.
I also think the performance is a bit sluggish on the test sitehttp://www.totalhomecare.co.uk we have created
Will update this if we get more info.
The other issue we are having in this environment is, we can't update any of the forms. So on the contact page we can change copy but not add fields to capture more data or edit the email address it sends to.
As a work around on the images we have been FTP'ing images to the incoming folder on the site and then adding the file from the incoming directory.
I also think the performance is a bit sluggish on the test sitehttp://www.totalhomecare.co.uk we have created
Will update this if we get more info.
Ya know... There's all sorts of reasons what I'm about to say is wrong, dated, and un-hip... but the cloud sucks.
1) its magic. these are closed source systems that promise your data and code is going to magically work across a network of computers you're not allowed to configure... Their name is quite apt, that strikes me as cloudy at best.
2) they're slow. I hear promises of endless scaling, and as a CEO of a digital startup I love the idea that if I had an exponential growth curve I wouldn't have to madly configure new servers in the middle of the night.. That being said, I'm not sure this promise holds true for every type of configuration. I've been on demo after demo from cloud companies that say "let me show you how easy it is to setup a virtual unix machine... -click click click-.. hrmm well demo-luck, that's not behaving right now.." -uhhh? so you get this promise of scalability, yet the actual installs are S-L-O-W.. I've heard this from people who use mediatemples cloud, and now I'm hearing it about rackspace...
3) this unix server thing seems to work okay.. 1970-2009 is a pretty good run. I'm not sure I see a need to reinvent a operating system in a virtual space just because amazon spent too much money on hardware in the 90's. You want to offer your clients hosting space, database access, email server... wait, what does that? oh yeah.. unix.
I dunno, this is just my personal rant on what I see as the latest analyst driven dribble. I applaud your efforts to get concrete5 working "in the cloud" and I certainly see that it seems to be working well for SquareSpace. Ya know, if I had a trillion PNG's to convert into JPGs or wanted to host a terrabyte of non-sensitive data somewhere, I'd think cloud right away... I'm just dubious of the latest buzz being applied to every problem..
<cough cough>
any rate - that's enough non-helpful dribble from me for this morning... ;)
1) its magic. these are closed source systems that promise your data and code is going to magically work across a network of computers you're not allowed to configure... Their name is quite apt, that strikes me as cloudy at best.
2) they're slow. I hear promises of endless scaling, and as a CEO of a digital startup I love the idea that if I had an exponential growth curve I wouldn't have to madly configure new servers in the middle of the night.. That being said, I'm not sure this promise holds true for every type of configuration. I've been on demo after demo from cloud companies that say "let me show you how easy it is to setup a virtual unix machine... -click click click-.. hrmm well demo-luck, that's not behaving right now.." -uhhh? so you get this promise of scalability, yet the actual installs are S-L-O-W.. I've heard this from people who use mediatemples cloud, and now I'm hearing it about rackspace...
3) this unix server thing seems to work okay.. 1970-2009 is a pretty good run. I'm not sure I see a need to reinvent a operating system in a virtual space just because amazon spent too much money on hardware in the 90's. You want to offer your clients hosting space, database access, email server... wait, what does that? oh yeah.. unix.
I dunno, this is just my personal rant on what I see as the latest analyst driven dribble. I applaud your efforts to get concrete5 working "in the cloud" and I certainly see that it seems to be working well for SquareSpace. Ya know, if I had a trillion PNG's to convert into JPGs or wanted to host a terrabyte of non-sensitive data somewhere, I'd think cloud right away... I'm just dubious of the latest buzz being applied to every problem..
<cough cough>
any rate - that's enough non-helpful dribble from me for this morning... ;)
Turns out the cloud environment IP range was flagged as a publisher of dodgy websites so our ISP blocked image uploads to it. Am now waiting for them to get the IP range of the cloud removed from the blacklist.
Looks like this might be a downside to sharing IP's in a cloud environment if others sharing the space do something wrong!
Have managed a workaround and Concrete does seem to work fine in the Rackspace Cloud...Not that I was in any doubt!
Looks like this might be a downside to sharing IP's in a cloud environment if others sharing the space do something wrong!
Have managed a workaround and Concrete does seem to work fine in the Rackspace Cloud...Not that I was in any doubt!
Currently, concrete5 prior to 5.3.1.1 and earlier incorrectly reports "invalid form token" on any file upload operation from which no valid file results. Unfortunately, in many cases, there isn't a valid file because the server rejected the post, because the file being uploaded is too large.
Alternately, if you're still getting errors even with smaller files, check and see if mod_security is enabled on your rackspace box. Sometimes it can cause problems with file uploading (although not usually when uploaded through <input type="file" /> mostly with flash uploading.)