• Hi,

    I got WP multisite running on php version 7.0.8 , WP 4.5.3, ILAB Media Tools 1.0.4. The plugin was activated on a subsite with S3 credential configurated. The images failed to upload to S3 no matter “Automatically uploads” checked or using the S3 importer. However, there is no error message, the images still on local server. May I know the reason why? Thank you.

    https://www.ads-software.com/plugins/ilab-media-tools/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author interfacelab

    (@interfacelab)

    It’s certainly not an nginx issue. Do you have php error logging enabled? Can you paste in some logs when performing the upload?

    Thread Starter anfieldleung

    (@anfieldleung)

    Yup, the error log is enabled, but not much information show.
    The most relevant is this
    2016/07/14 17:06:44 [warn] 4995#4995: *487 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/6/03/0000000036 while reading upstream, client: 10.109.248.181, server: www.hermes-ottoint.com, request: "GET /<server root>/wp-admin/upload.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm-scarp01.sock:", host: "mydomain", referrer: "<server root>/wp-admin/media-new.php"

    My server is within intranet able to access Internet but unable to being access from public. Is it the reason behind? Is there any response or connection is needed from S3 back to my server?

    Plugin Author interfacelab

    (@interfacelab)

    No need for a connection back.

    That log is from nginx, we need the one from PHP. Check your php.ini and add these lines:

    log_errors = On
    error_log = /var/log/php-errors.log

    Make sure /var/log/php-errors.log exists and your web process has write access to it.

    sudo touch /var/log/php-errors.log
    sudo chown www-data:www-data /var/log/php-errors.log

    You may need to restart nginx and/or php-fpm.

    I haven’t tested this with Multisite, btw, but if we can’t produce something useful from the log I will test it later tonight.

    Thread Starter anfieldleung

    (@anfieldleung)

    It should be the PHP log already.

    Plugin Author interfacelab

    (@interfacelab)

    That’s 100% an nginx log entry. ??

    Thread Starter anfieldleung

    (@anfieldleung)

    Alright, I got the PHP one, but there is nothing show.

    Plugin Author interfacelab

    (@interfacelab)

    If there was an error communicating with S3, there’d definitely be error messages in the log.

    What other plugins are you using? Which version of Media Tools?

    Thread Starter anfieldleung

    (@anfieldleung)

    Yup, so I said there is not error message from either front end and backend.
    Not much plugins installed, just a few one mainly for woocommerce.
    I believe there is error when saving my credential if it is failed to communicate with S3, right?

    Thread Starter anfieldleung

    (@anfieldleung)

    Hi interfacelab,

    I tested with another S3 plugin (WP Offload S3 Lite) and I can able to upload images to S3, so I believe there is no networking, security, permission, communication…etc issues.
    There is no error message prompt out in the php error log file.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Nginx compatibility’ is closed to new replies.