khemlanimart
Forum Replies Created
-
Forum: Plugins
In reply to: [Themify Builder] Update doesn’t workOk, emailed you.
Forum: Plugins
In reply to: [WPC Product Bundles for WooCommerce] Cart display price wrongI 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.
Forum: Plugins
In reply to: [Stock Locations for WooCommerce] Support for Graphiql@alexmigf I’m using the plugins by wpgraphql to extend my woocommerce but cannot seem to find where stock locations are in the queries :(.
Forum: Plugins
In reply to: [HTTP Headers] Missing HeadersResolved
Forum: Plugins
In reply to: [HTTP Headers] Missing HeadersHi @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.
Forum: Plugins
In reply to: [HTTP Headers] Missing Headers@zinoui Agreed. How do I add the module though, do I do it manually?
Forum: Plugins
In reply to: [HTTP Headers] Missing HeadersOk. I was able to get it by switching over to PHP (deprecated).
Forum: Plugins
In reply to: [HTTP Headers] Missing HeadersI also tried switching to PHP, which worked but caused errors with some of my plugins
Forum: Plugins
In reply to: [HTTP Headers] Missing Headers@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?
Forum: Plugins
In reply to: [HTTP Headers] Missing HeadersHi. 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) betweenBEGIN HttpHeaders
andEND 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
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.
Forum: Plugins
In reply to: [HTTP Headers] Getting error on saving settingsI 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()Forum: Plugins
In reply to: [HTTP Headers] Call to undefined function check_admin_referer()I have this error as well