Support » Plugin: W3 Total Cache » Undefined index: content in …/w3-total-cache/w3-total-cache-api.php on line 64

  • Resolved Magenta Cuda

    (@magenta-cuda)


    After installing Version 0.9.7.1 this error began appearing.

    The full stack trace is:

    
    [25-Jan-2019 23:56:18 UTC] PHP Notice:  Undefined index: content in /var/www/html/wp-content/plugins/w3-total-cache/w3-total-cache-api.php on line 642
    [25-Jan-2019 23:56:18 UTC] PHP Stack trace:
    [25-Jan-2019 23:56:18 UTC] PHP   1. {main}() /var/www/html/wp-admin/admin.php:0
    [25-Jan-2019 23:56:18 UTC] PHP   2. do_action() /var/www/html/wp-admin/admin.php:224
    [25-Jan-2019 23:56:18 UTC] PHP   3. WP_Hook->do_action() /var/www/html/wp-includes/plugin.php:453
    [25-Jan-2019 23:56:18 UTC] PHP   4. WP_Hook->apply_filters() /var/www/html/wp-includes/class-wp-hook.php:310
    [25-Jan-2019 23:56:18 UTC] PHP   5. W3TC\Root_AdminMenu->options() /var/www/html/wp-includes/class-wp-hook.php:286
    [25-Jan-2019 23:56:18 UTC] PHP   6. W3TC\Base_Page_Settings->options() /var/www/html/wp-content/plugins/w3-total-cache/Root_AdminMenu.php:188
    [25-Jan-2019 23:56:18 UTC] PHP   7. W3TC\Generic_Page_General->view() /var/www/html/wp-content/plugins/w3-total-cache/Base_Page_Settings.php:52
    [25-Jan-2019 23:56:18 UTC] PHP   8. include() /var/www/html/wp-content/plugins/w3-total-cache/Generic_Page_General.php:58
    [25-Jan-2019 23:56:18 UTC] PHP   9. w3tc_er() /var/www/html/wp-content/plugins/w3-total-cache/inc/options/general.php:299
    

    I ran the following WP-CLI command to dump the option ‘w3tc_generic_widgetservices’

    
    php wp-cli.phar eval 'print_r(json_decode(get_site_option("w3tc_generic_widgetservices"),TRUE));'
    Array
    (
        [items] => Array
            (
                [0] => Array
                    (
                        [name] => Premium Support Response (Usually <1h First Response)
                        [parameter_name] => field4
                        [parameter_value] => Premium Support Response (Usually <1h First Response)
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [1] => Array
                    (
                        [name] => Performance Audit / Consult (Theme, Plugin, Content, Server)
                        [parameter_name] => field4
                        [parameter_value] => Performance Audit / Consult (Theme, Plugin, Content, Server)
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [2] => Array
                    (
                        [name] => Plugin Configuration
                        [parameter_name] => field4
                        [parameter_value] => Plugin Configuration
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [3] => Array
                    (
                        [name] => SSL Performance Setup
                        [parameter_name] => field4
                        [parameter_value] => SSL Performance Setup
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [4] => Array
                    (
                        [name] => Full Site Delivery Setup
                        [parameter_name] => field4
                        [parameter_value] => Full Site Delivery Setup
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [5] => Array
                    (
                        [name] => Hosting Environment Troubleshooting
                        [parameter_name] => field4
                        [parameter_value] => Hosting Environment Troubleshooting
                        [form_hash] => m5pom8z0qy59rm
                    )
    
                [6] => Array
                    (
                        [name] => Performance Monitoring
                        [parameter_name] => field4
                        [parameter_value] => Performance Monitoring
                        [form_hash] => m5pom8z0qy59rm
                    )
    
            )
    
        [expires] => 1548565087
    )
    

    ‘content’ is not a property of this object.

    The relevant code is in a try {} catch() {} block. Is this expected behavior? I have not seen this notice in the earlier version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Magenta Cuda

    (@magenta-cuda)

    I originally posted this because these notices started appearing at the same time as another more serious problem with W3TC started occurring. However, that was just a coincidence. The other problem was caused by a bug in my utility for generating custom W3TC conf files. As far as I can tell these notices are not doing any harm except for displaying ugly messages in the Minify section of the “General Settings” page of W3TC. So, this is not a priority fix for me but it would be good to stop generating these ugly notices.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,
    Thank you for bringing this to our attention. We are aware of the issue and we will be releasing an update with fixes within a week.

    Same error for me
    Using template: Publisher – By ?Better Studio
    Yaron Carmi

    proguid

    (@procarmanuals)

    +1
    Same error for me
    Using template: Publisher – By ?Better Studio

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined index: content in …/w3-total-cache/w3-total-cache-api.php on line 64’ is closed to new replies.