Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter khemlanimart

    (@khemlanimart)

    Ok, emailed you.

    Thread Starter khemlanimart

    (@khemlanimart)

    I tried this with the Baltic theme and got the same issue. Is the plugin compatible with the latest woocommerce/wordpress? I really want to use the premium version, but need it to work properly.

    Thread Starter khemlanimart

    (@khemlanimart)

    @alexmigf I’m using the plugins by wpgraphql to extend my woocommerce but cannot seem to find where stock locations are in the queries :(.

    Thread Starter khemlanimart

    (@khemlanimart)

    Resolved

    Thread Starter khemlanimart

    (@khemlanimart)

    Hi @zinoui. I’ll go ahead and mark this closed. I can’t find httpd.conf only apache2.conf and that line doesn’t seem to be there. Moreover, the file in .htaccess says mod_headers.c not mod_headers.so and I’m not an expert in these things so I’m not sure if theyre the same. I will just use php for now I guess. Thanks again.

    Thread Starter khemlanimart

    (@khemlanimart)

    @zinoui Agreed. How do I add the module though, do I do it manually?

    Thread Starter khemlanimart

    (@khemlanimart)

    Ok. I was able to get it by switching over to PHP (deprecated).

    Thread Starter khemlanimart

    (@khemlanimart)

    I also tried switching to PHP, which worked but caused errors with some of my plugins

    Thread Starter khemlanimart

    (@khemlanimart)

    @zinoui Thanks so much for the help, but it’s still not working. I ran apache2ctl -M and got back

    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
    Loaded Modules:
     core_module (static)
     so_module (static)
     watchdog_module (static)
     http_module (static)
     log_config_module (static)
     logio_module (static)
     version_module (static)
     unixd_module (static)
     access_compat_module (shared)
     alias_module (shared)
     auth_basic_module (shared)
     authn_core_module (shared)
     authn_file_module (shared)
     authz_core_module (shared)
     authz_host_module (shared)
     authz_user_module (shared)
     autoindex_module (shared)
     deflate_module (shared)
     dir_module (shared)
     env_module (shared)
     filter_module (shared)
     mime_module (shared)
     mpm_prefork_module (shared)
     negotiation_module (shared)
     php7_module (shared)
     reqtimeout_module (shared)
     rewrite_module (shared)
     setenvif_module (shared)
     socache_shmcb_module (shared)
     ssl_module (shared)
     status_module (shared)
    

    I couldn’t find a httpd.conf but I found apache2.conf and changed the following:

    
    <Directory /var/www/>
    	Options Indexes FollowSymLinks
    	AllowOverride All
    	Require all granted
    </Directory>
    

    AllowOverride was originally None. I restarted the apache2 service after doing this and ran sudo a2enmod rewrite both of which were successful.

    I also tried commenting out <IfModule mod_headers.c> (not “.so” which I dont seem to have) and that caused a 500 Internal Server Error for the website :/. Is there anything else you could think of that could locate the problem?

    Thread Starter khemlanimart

    (@khemlanimart)

    Hi. The headers I have added are:
    X-Frame-Options SAMEORIGIN
    X-XSS-Protection 1; mode=block
    X-Content-Type-Options nosniff
    Referrer-Policy origin
    Content-Security-Policy default-src ‘self’; script-src ‘self’; style-src ‘self’; img-src https:; child-src ‘none’
    Feature-Policy camera ‘self’; domain ‘self’; payment ‘self’

    When I go into my .htaccess I see:
    # END WordPress
    # BEGIN HttpHeaders
    # The directives (lines) between BEGIN HttpHeaders and END HttpHeaders are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_headers.c>
    Header always set X-Content-Type-Options “nosniff”
    <FilesMatch “\.(php|html)$”>
    Header set X-Frame-Options “SAMEORIGIN”
    Header set X-XSS-Protection “1; mode=block”
    Header set Content-Security-Policy “default-src ‘self’; script-src ‘self’; style-src ‘self’; img-src https:; child-src ‘none'”
    Header set Referrer-Policy “origin”
    Header set Feature-Policy “camera ‘self’; domain ‘self’; payment ‘self'”
    </FilesMatch>
    </IfModule>

    I restarted the server as well

    Thread Starter khemlanimart

    (@khemlanimart)

    Hi I deactivated all plugins except this and woocommerce and the error was still there. After deactivating this plugin the error went away. If you use WP-logging it might show. The plugin is also inhibiting my http-header plugin for some reason.

    • This reply was modified 4 years, 6 months ago by khemlanimart.

    I have this error as well. the debug file shows:

    Uncaught Error: Call to undefined function check_admin_referer() in
    /var/www/html/wp-content/plugins/http-headers/http-headers.php:629 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(289): http_headers_option() #1 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #2 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action() #3 /var/www/html/wp-includes/option.php(434): do_action() #4 /var/www/html/wp-includes/option.php(812): update_option()

    I have this error as well

Viewing 13 replies - 1 through 13 (of 13 total)