• After last update I found that all my settings are gone.

    So I added all settings again but uploading to S3 still don’t work.

    When I checked logs I see following messages:

    [15-Jan-2018 18:30:20 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48
    [15-Jan-2018 18:30:23 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48
    [15-Jan-2018 18:30:24 UTC] PHP Notice:  has_cap was called with an argument that is <strong>deprecated</strong> since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /var/www/html/wp-includes/functions.php on line 4030
    [15-Jan-2018 18:30:31 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48
    [15-Jan-2018 18:30:31 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/tcs3/inc/base.class.php:48) in /var/www/html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 559
    [15-Jan-2018 18:30:31 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/tcs3/inc/base.class.php:48) in /var/www/html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 576
    [15-Jan-2018 18:30:31 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/tcs3/inc/base.class.php:48) in /var/www/html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 583
    [15-Jan-2018 18:30:31 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/tcs3/inc/base.class.php:48) in /var/www/html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 589
    [15-Jan-2018 18:30:35 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48
    [15-Jan-2018 18:30:37 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48
    [15-Jan-2018 18:30:50 UTC] PHP Notice:  Undefined variable: network_options in /var/www/html/wp-content/plugins/tcs3/inc/base.class.php on line 48

    Why this happened? What is network_options variable and how can I fix that?

    • This topic was modified 7 years, 1 month ago by ludekvodicka.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ludekvodicka

    (@ludekvodicka)

    I commented line 48,49,50 but upload still doesn’t work but now without any error in debug log ;-(.

    file isn’t uploaded to s3 bucket at all and in wordpress gallery I see gray rectangles

    Thread Starter ludekvodicka

    (@ludekvodicka)

    I just tried to completely remove plugin as same as delete all tcs3_* records from wp_options database but with no difference.

    The upload is completely broken ;-(. On the other side existing images are correctly displayed on the web.

    Any help will be appreciated

    Thread Starter ludekvodicka

    (@ludekvodicka)

    Ok, so for anyone who has the same issue, here is the solution.

    There is a bug in the code, in file aws_ops.class.php, line 72

    $key = $this->options["bucket_path"] . "/" . $key;

    In case that we want to upload images directly to the root of the bucket to path /upload/…., this line causes that “/” directory is created in root and after that upload directory is inserted to this “/” directory.

    It doesn’t matter if we enter “/” or “” inside the S3 Bucket path in the tcS3 configuration page. The only solution is currently to comment the line to following form:

    $key = /*$this->options["bucket_path"] . "/" .*/ $key;

    Hope author of this great plugin will fix it as soon as possible. It’s a shame that this new version is so buggy. It completely removes all settings and also doesn’t work properly for previous long-time usage scenarios.

    • This reply was modified 7 years, 1 month ago by ludekvodicka.

    Hi! I finally got fixed the error ‘Undefined variable: network_options’ it was causing Media tab to not load either.

    Inside the file <wpFolder>/wp-content/plugins/tcs3/inc/base.class.php . In my case it said the error was in line 51.

    That line looks like this:

          
            if (is_array($network_options)) {
                $options = array_merge($options, $network_options);
            }
    

    If you add an isset test before checking if network_options variable is an array, it works fine for us.

    Like this:

            if (isset($network_options) && is_array($network_options)) {
                $options = array_merge($options, $network_options);
            }
    

    Not sure what this $network_options is actually for, but apparently in some cases it doesn’t get created.

    Hope this helps other people facing same issue

    • This reply was modified 6 years, 11 months ago by cbonastre.
    • This reply was modified 6 years, 11 months ago by cbonastre.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tcS3 stopped working after last update’ is closed to new replies.