Viewing 15 replies - 16 through 30 (of 49 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter Sujan Bhuiyan

    (@ksujan)

    I am really concerned about the error Mike.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    See the link from trac above.

    Testing has confirmed that when zlib.output_compression is returned to “off”, then updates work as expected

    Thread Starter Sujan Bhuiyan

    (@ksujan)

    I have turned zlib.output_compression off.

    Still showing the same error. New Error message in error log is:

    [Thu Feb 12 11:03:25.944989 2015] [:error] [pid 5665] [client 180.234.93.237:59796] PHP Notice: Use of undefined constant WC_PLUGIN_BASENAME – assumed ‘WC_PLUGIN_BASENAME’ in /var/www/perthsolarwarehouse.com.au/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php on line 27, referer: http://perthsolarwarehouse.com.au/wp-admin/plugins.php?action=delete-selected&checked%5B0%5D=woocommerce%2Fwoocommerce.php&plugin_status=all&paged=1&s&_wpnonce=a1ea5f0987

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Another notice (also not one I have on activation oddly). Still not the fatal..

    Ok to recap:
    – You have enabled WP_DEBUG_LOG and you’re looking in the error log it generates
    – You have turned off all other plugins to reduce likelihood of conflict
    – You have switched to twenty twelve again for conflicts
    – You have increased the WP Memory Limit to ensure its not failing for that reason (http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP)
    – You have reuploaded the plugin files in case the upload/install didn’t complete correctly. Do this via FTP

    Thread Starter Sujan Bhuiyan

    (@ksujan)

    I have carefully rechecked all of them Mike. But still I haven’t got any luck. 🙁

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Download 2.3.3 and upload that via FTP. Few fixes in here but without a real error log I cannot say if it will improve your situation https://wordpress.org/plugins/woocommerce/changelog/

    Thread Starter Sujan Bhuiyan

    (@ksujan)

    it’s still the same error showing.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Maybe you should contact your host to see if *they* can see what the fatal error is in the logs. The notices you keep posting here would not cause this.

    I’ve been getting the same error with a clean WordPress 4.1 install and WooCommerce 2.3.3. I am using nginx+php-fpm. And here is what I’ve been able to find in nginx log files:

    2015/02/13 10:31:54 [error] 5281#0: *233546 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function send_origin_headers() in /var/www/***.com/public_html/wp-admin/admin-ajax.php on line 25" while reading response header from upstream, client: **.149.**.102, server: ***.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "***.com", referrer: "http://***.com/wp-admin/plugins.php?error=true&plugin=woocommerce%2Fwoocommerce.php&_error_nonce=14aef97ad6"

    My guess is it has something to do with php-fpm. Trying to find the solution, will post it here if I succeed.

    Thread Starter Sujan Bhuiyan

    (@ksujan)

    I have installed another fresh WP installation in the same server and tried to install WooCommerce. But it’s showing the same error.

    It seems to me that it’s a server issue.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    send_origin_headers is called by WordPress, not WooCommerce.

    Sure, but when I try to activate any other plugin, everything works fine. The one that throws Fatal Error without any explanation is WooCommerce, or something it triggers.

    This is a real issue with a clean WordPress install on Digital Ocean + Ubuntu + Nginx + PHP-FPM. I have no idea how to resolve it and would appreciate any help. If you could tell me what additional info might be useful, I’ll post it right away.

    Thanks!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    If you look in admin-ajax.php you’ll see where WordPress calls send_origin_headers() and before that loads the core environment. I don’t know why this would fail on your install I’m afraid :/

    I am also having the same problem. I can’t activate the latest woocommerce plugin on two Ubuntu 14.04 servers (Digital Ocean). “Plugin could not be activated because it triggered a fatal error”. There are others on the digital ocean forum also complaining about the same thing.
    I am able to activate the V.2.2.11 just fine but not the latest version.
    1- The wp debug show no errors.
    2- My memory limit is set to 256M
    3- tested with fresh WP install, default theme and only WC plugin installed.
    4- Installed plugin via FTP.

    I’m wondering if the PHP version is playing a role here. Everyone I have encountered with this problem is using PHP 5.5.9. That is the lowest version shipped with Ubuntu 14.04 and we can’t really downgrade it unless if we downgrade Ubuntu.
    All shared hosting uses a lower PHP version and in fact, I have no problem activating the newest version there.

    @mike, would you be able to test your plugin in a server using PHP 5.5.9?
    Thanks,
    Harrison

Viewing 15 replies - 16 through 30 (of 49 total)
  • The topic ‘WooCommerce Plugin could not be activated because it triggered a fatal error’ is closed to new replies.