HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Upload failed: HTTP error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#96671 (In Topic #19190)
Avatar

Community saint

I'm getting these errors on my satellite sites but not on the hub site, so I'm not sure what the cause is. Can someone point me in the right direction to start looking? I'm not sure if this is a server issue, or an ocP setting I may have unknowingly changed.



Steve
Back to the top
 
Posted
Rating:
#96682
Avatar

I should note that in the process of debugging this, I found an open_basedir security error with viewing the forums locally from a satellite site. I have had to deploy a fix to tempcode.php across all the sites to workaround this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96683
Avatar

The underlying error is:

Code

Upload Failed.: HTTP Error. ocPortal: Error detected with respect to the upload of a file: the server is missing a temporary folder for the file.

I've altered plupload to raise that visually now.

I'll see if it is a configuration issue on your vhost.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96684
Avatar

Okay, I think I have the cause. I've solved it on your howto*.org site (I've obscured the name, just for standard privacy).

Code

upload_tmp_dir = /var/www/vhosts/chroot/tmp
is now in your /var/www/vhosts/howto*.org/etc/php.ini file.

Now, your main site does not have/need this in. I suspect that the difference may have been that your main site is chrooted, so automatically detected this setting for it's upload_tmp_dir. However, perhaps the howto*.org site is not chrooted, so would have auto-detected the real /tmp directory on the server except that that's not under it's open_basedir (/var/www/vhosts), so it would have found nothing valid.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96685
Avatar

Community saint

Chris Graham said

I should note that in the process of debugging this, I found an open_basedir security error with viewing the forums locally from a satellite site. I have had to deploy a fix to tempcode.php across all the sites to workaround this.


I've been fighting the open_basedir problem for several months. The only way I could get all the sites to play nice together was to set the path to /var/www/vhosts/ for each of the sites. I'm about ready to do away with Plesk as it has become a broken monster that make most things difficult to use or do. Anytime I make a php config change from within Plesk, it changes the open_basedir path and I have to go back in and manually change it. Who knows what else it has been arbitrarily changing.  :@

I'll digest the rest of your posts later after I've had some much needed sleep. As always, Chris, I appreciate your help.

Steve
Back to the top
 
Posted
Rating:
#96726
Avatar

Community saint

Chris Graham said


Code

upload_tmp_dir = /var/www/vhosts/chroot/tmp
is now in your /var/www/vhosts/howto*.org/etc/php.ini file.

Now, your main site does not have/need this in. I suspect that the difference may have been that your main site is chrooted, so automatically detected this setting for it's upload_tmp_dir. However, perhaps the howto*.org site is not chrooted, so would have auto-detected the real /tmp directory on the server except that that's not under it's open_basedir (/var/www/vhosts), so it would have found nothing valid.

I just got word the main site also has upload issues. I applied the same code above to the main site which fixed it.

I'll check the other sites this weekend since I'll finally have a day off after 31+ days.  :party:  :rockon:

Steve
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: