Results 1 to 11 of 11

Thread: Image upload 3.5

  1. #1
    User
    Join Date
    05-21-18.
    Posts
    126

    Default Image upload 3.5

    After i try to upload 'no-image' in contao 3.5 i get this error
    Code:
    Warning: imagepng(/var/www/html/assets/images/a/no-image.png): failed to open stream: No such file or directory in system/modules/core/library/Contao/GdImage.php on line 192
    Someone know how to fix this?

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Is "no-image.png" a real image?

  3. #3
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by Spooky View Post
    Is "no-image.png" a real image?
    Yes, I downloaded a random image from google.
    This error also appears when I upload .jpeg images anywhere

  4. #4
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Check your server environment with the Contao Check.

  5. #5
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    I got this error 'The PHP process is not allowed to create files'

  6. #6
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Yes, you need to fix your file and folder rights.

  7. #7
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Can you tell me what to do?

  8. #8
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    You need to configure the file and folder rights of your webspace properly, so that the process of the web server that processes the requests via PHP is able to read and write in all folders of the Contao installation.

  9. #9
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Warning: imagecreatefrompng(): '/var/www/html/files/upload/post/no-image.png' is not a valid PNG file in system/modules/core/library/Contao/GdImage.php on line 82
    This is new error. This occour when i try to upload picture in backend.

  10. #10
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Sorry for bothering you. But can u tell me names of files and folders.
    I gived permission to tmp, logs and assets/images.

  11. #11
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Quote Originally Posted by rawelja View Post
    Sorry for bothering you. But can u tell me names of files and folders.
    I don't know what you mean by that.



    Quote Originally Posted by rawelja View Post
    I gived permission to tmp, logs and assets/images.
    You need to apply your permission settings to all files and folders of your Contao installation. Use chmod -R and chown -R.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •