Support » Plugin: WooCommerce » after update it writes a line that glitches WP

  • After I update the plug in, it writes AddHandler application/x-httpd-php70s.php to the .htaccess file in the root directory. It causes every url to be downloaded by the user as a php file.

    Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I dont think Woocommerce has anything to do with htaccess at all.

    Someone or something is trying to change the php version. Did anyone change the php setting in cpanel?

    Try deactivating all plugins, then reactivate one-by-one and test to try to identify where its coming from.

    supaiku

    (@supaiku)

    I’ve also experienced this issue.

    mwright1978

    (@mwright1978)

    Did you find a resolution? It happens after any plugin update.

    dangelim

    (@diogoangelim)

    Do you have file manager or ftp access? Paste your /.htaccess file here

    atomicseller702

    (@atomicseller702)

    I have had the same issue.

    Uninstall woocommerce and reinstall woocommerce changes nothing.

    When I tried to edit a page, it inserted “AddHandler application/x-httpd-php70s” into .htaccess file which causes every url to be downloaded by the user as a php file.

    Finally I desactivated plugin TinyMCE and the problem was solved for me.
    (Don’t ask me why 🙂

    atomicseller702

    (@atomicseller702)

    Found the answer here :
    https://wordpress.org/support/topic/browsers-trying-to-opendownload-files/

    When migrating from an hosting provider to another, backup/restore operation copied cache management files useful only from the source hosting provider.

    These files are located in wp-content/mu-plugins

    PHP code inside looks like this :

    function hooks() {
    add_filter( ‘mod_rewrite_rules’, array( $this, ‘htaccess_contents’ ), 99 );
    }

    function htaccess_contents( $rules ) {
    $handler = get_option( ‘epe_php_handler’, ‘application/x-httpd-php70s’ );
    $handler = ‘AddHandler ‘ . $handler . ‘ .php’ . “\n”;
    return $handler . $rules;
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘after update it writes a line that glitches WP’ is closed to new replies.