Koozali.org: home of the SME Server

Uploading Files with PHP (Opencart product pictures)

Uploading Files with PHP (Opencart product pictures)
« on: November 04, 2019, 02:12:02 PM »
Hi All, hope I'm doing this correct.

I have installed Opencart and PHPMYADMIN to my sme9.2 Server. All is working except for uploading files.
On both packages it starts the upload, but the says that there is no file, or no file was selected.
I'm no sme server expert, so please be gentle.
I've been at this for days, killed the server a couple of times.

Please can someone point me in a direction?

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Uploading Files with PHP (Opencart product pictures)
« Reply #1 on: November 04, 2019, 06:34:49 PM »
You need to be a lot more descriptive for starters.

Did you just extract the cart into an ibay or have you configured anything else?

Did you read their manual???

http://docs.opencart.com/en-gb/requirements/

That suggests a minimum of PHP 5.4+ which today really means PHP 7.x+ Yuor server has 5.3.x by default.

I am sure it can be configured to run but you will need to do a bit of work first. You are going to need PHP SCL and maybe a few other tricks as a minimum.

Anyway - back to the start and tell us precisely what you have done so far, and don't forget to look in your logs for any errors to help us.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Uploading Files with PHP (Opencart product pictures)
« Reply #2 on: November 05, 2019, 12:32:28 PM »
I believe that PHP apps involving file uploads still need to have upload_tmp_dir set manually on SME9.2.

Here are some resources:

- Configure one setting ("/tmp") for all ibays: https://wiki.contribs.org/PHP#Upload_tmp_dir

- Bug with sample code for creating a custom upload tmp folder within each ibay: https://bugs.contribs.org/show_bug.cgi?id=7011
(The feature has been implemented in SME10, but has not been back-ported to SME9)