• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Size upload

  • Thread starter Thread starter deleted-user
  • Start date Start date
Status
Not open for further replies.
D

deleted-user

Guest
Hello,

I have a bug with my website http://lightpics.net - I can't upload big images, however I put 50 MB in /etc/php5/fpm/php.ini (upload_max_filesize, post_max_size) & /etc/nginx (client_max_body_size) and I have 20 Mb in Chevereto. Image for my tests: http://www.wallpaperup.com/uploads/wallpapers/2014/10/21/489485/b807c2282ab0a491bd5c5c1051c6d312.jpg

I looked in the error logs, but I also have errors when an image has been uploaded...

2015/06/24 00:14:53 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: exception 'G\GettextException' with message 'Can't fopen cache file for writing' in /home/lightpics/www/lib/G/classes/class.gettext.php:532
Stack trace:
#0 /home/lightpics/www/lib/G/classes/class.gettext.php(163): G\Gettext->cache('file')
#1 /home/lightpics/www/lib/G/classes/class.gettext.php(81): G\Gettext->parseFile()
#2 /home/lightpics/www/app/lib/classes/class.l10n.php(172): G\Gettext->__construct(Array)
#3 /home/lightpics/www/app/lib/classes/class.l10n.php(95): CHV\L10n:😛rocessTranslation('fr')
#4 /home/lightpics/www/app/lib/classes/class.l10n.php(104): CHV\L10n->__construct()
#5 /home/lightpics/www/app/lib/classes/class.l10n.php(209): CHV\L10n::getInstance()
#6 /home/lightpics/www/app/lib/classes/class.l10n.php(222): CHV\L10n::getStatic('gettext')
#7 /home/lightpics/www/app/lib/classes/class.l10n.php(193): CHV\L10n::getGettext()
#8 /home/lightpics/www/app/lib/l10n.php(24): CHV\L10n::gettext('images')
#9 /home/lightpics/www/app/loader.php(166): _s('images')
#10 /home/lightpics/www/index...
PHP message: Can't write into target dir" while reading response header from upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:14:53 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:14:53 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: Can't write into target dir.
PHP message: Can't write into target dir.
PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:15:03 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: exception 'G\GettextException' with message 'Can't fopen cache file for writing' in /home/lightpics/www/lib/G/classes/class.gettext.php:532
Stack trace:
#0 /home/lightpics/www/lib/G/classes/class.gettext.php(163): G\Gettext->cache('file')
#1 /home/lightpics/www/lib/G/classes/class.gettext.php(81): G\Gettext->parseFile()
#2 /home/lightpics/www/app/lib/classes/class.l10n.php(172): G\Gettext->__construct(Array)
#3 /home/lightpics/www/app/lib/classes/class.l10n.php(95): CHV\L10n:😛rocessTranslation('fr')
#4 /home/lightpics/www/app/lib/classes/class.l10n.php(104): CHV\L10n->__construct()
#5 /home/lightpics/www/app/lib/classes/class.l10n.php(209): CHV\L10n::getInstance()
#6 /home/lightpics/www/app/lib/classes/class.l10n.php(222): CHV\L10n::getStatic('gettext')
#7 /home/lightpics/www/app/lib/classes/class.l10n.php(193): CHV\L10n::getGettext()
#8 /home/lightpics/www/app/lib/l10n.php(24): CHV\L10n::gettext('images')
#9 /home/lightpics/www/app/loader.php(166): _s('images')
#10 /home/lightpics/www/index" while reading response header from upstream, client: 108.162.229.148, server: lightpics.net, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:15:04 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: exception 'G\GettextException' with message 'Can't fopen cache file for writing' in /home/lightpics/www/lib/G/classes/class.gettext.php:532
Stack trace:
#0 /home/lightpics/www/lib/G/classes/class.gettext.php(163): G\Gettext->cache('file')
#1 /home/lightpics/www/lib/G/classes/class.gettext.php(81): G\Gettext->parseFile()
#2 /home/lightpics/www/app/lib/classes/class.l10n.php(172): G\Gettext->__construct(Array)
#3 /home/lightpics/www/app/lib/classes/class.l10n.php(95): CHV\L10n:😛rocessTranslation('fr')
#4 /home/lightpics/www/app/lib/classes/class.l10n.php(104): CHV\L10n->__construct()
#5 /home/lightpics/www/app/lib/classes/class.l10n.php(209): CHV\L10n::getInstance()
#6 /home/lightpics/www/app/lib/classes/class.l10n.php(222): CHV\L10n::getStatic('gettext')
#7 /home/lightpics/www/app/lib/classes/class.l10n.php(193): CHV\L10n::getGettext()
#8 /home/lightpics/www/app/lib/l10n.php(24): CHV\L10n::gettext('images')
#9 /home/lightpics/www/app/loader.php(166): _s('images')
#10 /home/lightpics/www/index...
PHP message: Can't write into target dir" while reading response header from upstream, client: 108.162.229.148, server: lightpics.net, request: "GET /image/cf HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:15:04 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET /image/cf HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 00:15:04 [error] 1909#1909: *7093 FastCGI sent in stderr: "PHP message: Can't write into target dir.
PHP message: Can't write into target dir.
PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET /image/cf HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"


Can you help me ? Thank you
 
This happens when the G\Gettext class can't work properly. The easy fix is to make sure that PHP has writing permission in the app/content/languages/cache folder. That should fix the issue.
 
Thank you, now I have:

2015/06/24 01:03:50 [error] 1909#1909: *7277 FastCGI sent in stderr: "PHP message: Can't write into target dir" while reading response header from upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 01:03:50 [error] 1909#1909: *7277 FastCGI sent in stderr: "PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"
2015/06/24 01:03:50 [error] 1909#1909: *7277 FastCGI sent in stderr: "PHP message: Can't write into target dir.
PHP message: Can't write into target dir.
PHP message: Can't write into target dir" while reading upstream, client: 108.162.229.148, server: lightpics.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lightpics.net", referrer: "http://lightpics.net/"

Do you know why ?
 
Last edited by a moderator:
Make sure that you have php with permissions on the app/content/languages/cache
 
Status
Not open for further replies.
Back
Top