impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
502 stars 175 forks source link

Repository upload failing when on https(?) #817

Closed jvlaar closed 8 years ago

jvlaar commented 8 years ago

Hello,

Whenever I try to upload a file to the repository (a logo png file for example) to the repository the little bar on the left remains stuck at full and then nothing happens. The file isn't added to the repository.

The following entries appear in the log:

2016-11-02 21:03:10 Repository.fileUploadError  array(1) { ["plugin"]=> string(10) "Repository" }
2016-11-02 21:03:10 Warning: fopen(/home/ascie/domains/ascie.nl/private_html/file/tmp/Logo_oranje.png): failed to open stream: No such file or directory in /home/ascie/domains/ascie.nl/private_html/Ip/Internal/Repository/UploadModel.php:244    array(2) { ["file"]=> string(80) "/home/ascie/domains/ascie.nl/private_html/Ip/Internal/Repository/UploadModel.php" ["line"]=> string(3) "244" }

Everything worked fine on my local setup, the notable difference in this new setup being that it runs in https instead of http. The file directory is chmodded as 755.

maskas commented 8 years ago

Try these things:

  1. make sure the directory exists /home/ascie/domains/ascie.nl/private_html/file/tmp/
  2. try to set permissions 777 on /home/ascie/domains/ascie.nl/private_html/file/tmp/
wannaco commented 8 years ago

775 should be enough

jvlaar commented 8 years ago

The problem seems to be that the directory /tmp/ didn't exist yet. Everything works now. Thanks for your help!