Elgg 5.1.2 released

A new version for Elgg 5.1 is now available in the download section.

Release notes:

Contributors

  • Jeroen Dalsem (4)
  • Jerôme Bakker (4)

Bug fixes

  • output: link must have discernible text 8ed45c12d
  • web_services: only create new tokens on initial save a1904fc7c closes #14516
  • developers: removed metadata enabled column in entity explorer 4256e4dd7
  • The lines below are of the htaccess file of my elgg 5.1.2:
     
    # limit the maximum memory consumed by the php script to 64 MB
    php_value memory_limit 64M
    # post_max_size is the maximum size of ALL the data that is POST'ed to php at a time (8 MB)
    The values in .htaccess are below
    php_value post_max_size 15M
    # upload_max_filesize is the maximum size of a single uploaded file (5 MB)
    php_value upload_max_filesize 13M
    # on development servers, set to 1 to display errors. Set to 0 on production servers.
    php_value display_errors 0
    ---
    Those are php settings for my elgg 5.1.2 on localhost
     
    post_max_size = 15M
    upload_max_filesize = 13M
    ---
    I get this the warning while trying to uplad a photo in which it has 5.5MB in size in blogs on chkeditor. It displays as if it is upladed for a few seconds, but  the image disappears giving the error below without letting me save.
    Couldn't upload file: DSCF3408.JPG.
     
    It is because the limit value of upload in the system, I think. As you see the vaues I edited in .htaccess and php.ini are much higher than the size of the image.
    What else might cause this error? What else should I do?
     
  • @fazli

    in the settings.php you can enable phpinfo if you then go to https://yoursite/phpinfo (as a site admin) you can see the effective limits. Are those the same?

  • They are exactly same with the ones I edited, Jerome. I use easyphp on windows as localhost.

  • 1 - Check your error log.

    2 - Try uploading this file of the same size through the File plugin instead of pasting it into the visual editor. What's happening?

  • According to my experiments, images larger than 1.5MB cannot be uploaded using ckeditor although post_max_size = 15M and upload_max_filesize = 13M in both php.ini and .htaccess files

  • And I tried to upload a jpg file of 2,5 MB through the files it produces "Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16384 bytes) in G:\easyphp\EasyPHP-Devserver-17\eds-www\elgg-latest\vendor\imagine\imagine\src\Gd\Image.php on line 763""

    When check the error log via Develop, Error log is empty.

  • 1 - Try to increase 'memory_limit' param in php.ini (fpm and cli both)

    2 - Install Imagick and use this library instead of GD.

    Read this to understand your problem

     

  • Thanks Nikolai,

    Increasing memory_limit from 128M to 256M in php.ini solved the problem

  • Hi again,

    I use Elgg 5.1.2, that is the latest version, on easyphp server on my computer. Saving a blog results as a draft work even I choose "published" while saving. Is that only me I suffer?

  • I found out that the previous version of  "blog_tools" caused that issue. After updating the plugin v18 it solved the problem.

Latest comments