Getting lots of server errors directory index forbidden by Options directive from same referer

Issue I have a load of entries in my web server error log from the same referer. See example below: Cannot serve directory /home/*****/public_html/wp-admin/css/: No matching DirectoryIndex (index.php,index.php7,index.php5,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.jp,index.phtml,index.shtml,index.html,index.js) found, and server-generated directory index forbidden by Options directive, referer: binance.com I

Continue reading

Using PHP code in PHP code?

Issue I have the following code in PHP: <?php if (function_exists(“insert_audio_player”)) {insert_audio_player(“[audio:|titles=]”} ?> Which renders an audio player to my page in WordPress. I need to call a custom field inside this code. My custom field code is also coded

Continue reading

default="default" for option does not function

Issue Adding the following script to the function.php file in WordPress: add_action( ‘add_meta_boxes’, ‘rating_select_box’ ); function rating_select_box() { add_meta_box( ‘rating_select_box’, // id, used as the html id att __( ‘Select rating:’ ), // meta box title, like “Page Attributes” ‘rating_select_cb’,

Continue reading

Change the review rating location on single product pages

Issue Actually, In WooCommerce, I am using the code below, to change the price location for my simple products: function changing_price_location_for_simple_products(){ global $product; if($product->is_type(‘simple’)) // Only for simple products (thanks to helgathevicking) { remove_action(‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10); add_action(‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 25); }

Continue reading

Convert number to Stars

Issue I’ve created this shortcode that converts a number to a star rating. At the moment, the shortcode works but not fully : function Shortcode() { $starNumber = get_field(‘note_independant’); for($x=1;$x<=$starNumber;$x++) { $output .= ‘<i class=”fa fa-star” aria-hidden=”true”></i>’; } if (strpos($starNumber,’,’))

Continue reading

WordPress – SSO Login with LinkedIn

Issue I’m following the LinkedIn API details, I have the following on my HTML page: <script type=”in/Login”></script> I have included the LinkedIn details in the <head>: <script type=”text/javascript” src=”//platform.linkedin.com/in.js”> api_key:XXXXXXXXXX authorize:false lang:en_US </script> This displays the pop up and asks

Continue reading

Nginx proxy WordPress http auth

Issue I tried to create a password on https://www.example.de/wp-admin.php & /wp-login.php, but it does not work and skip the auth part. My config: server { set $forward_scheme https; listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.example.de; # Exploit

Continue reading

upstream sent too big header while reading response header from upstream

Issue I am getting these kind of errors: 2014/05/24 11:49:06 [error] 8376#0: *54031 upstream sent too big header while reading response header from upstream, client: 107.21.193.210, server: aamjanata.com, request: “GET /the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https://aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20https:/aamjanata.com/the-brainwash-chronicles-sponsored-by-gujarat-government/,%20ht Always it is the same. A url repeated over

Continue reading

Social Media Icons in Footer

Issue I use wordpress and want to add social media icons to my footer. What I did so far is to add the following code to the footer.php: <div id=”social-buttons”> <a href=”http://twitter.com/veda_vit” rel=”me”><img title=”veda-vit.de bei Twitter” src=”http://veda-vit.de/wp-content/uploads/2017/11/Twitter.svg” alt=”Twitter Button” width=”24″

Continue reading

WordPress moving <span> outside <p>

Issue I have this bit of code on my WordPress single-post.php file: <p class=”author-date”>by <a href=”#author-box”><?php the_author(); ?></a> on <?php the_date(); ?> <span style=”display:inline-block”>| Share this article: <?php echo wpfai_social(); ?></span></p> But for some reason the echo wpfai_social(); bit (which

Continue reading

Pass on HTML element attribute to another element attribute

Issue I’m using Elementor Pro for website development. I created a standard popup that is triggered if the user clicks on a link on the page like this <a href="#elementor-action-foo” data-extlinkurl="https://www.mylink1.com”>test link</a> <a href="#elementor-action-foo” data-extlinkurl="https://www.mylink2.com”>test link</a> <a href="#elementor-action-foo” data-extlinkurl="https://www.mylink3.com”>test link</a>

Continue reading

How to load wordpress child theme css after parent theme css

Issue In my wordpress child theme css file loaded before main theme css. My child theme css functions.php file is given below function my_theme_enqueue_styles(){ wp_enqueue_style( ‘bootstrap’, get_template_directory_uri() . ‘/../enfold-child/plugins/bootstrap/css/bootstrap.min.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ ); I want to load child

Continue reading