AJAX POST request: Invalid request (Malformed HTTP request) on console and net::ERR_EMPTY_RESPONSE on chrome dev tools

When you encounter the error “Invalid request (Malformed HTTP request)” in the console and “net::ERR_EMPTY_RESPONSE” in Chrome Dev Tools while making an AJAX POST request, it usually indicates an issue with the request itself or the server’s response. Here are some common reasons and troubleshooting steps to help you resolve the problem:

Continue reading “AJAX POST request: Invalid request (Malformed HTTP request) on console and net::ERR_EMPTY_RESPONSE on chrome dev tools”

How to embed video into a website – Ultimate tutorial

Embedding a video into HTML website seems an easy task, but there really are lots of aspects to take into consideration when you insert a video:

  • File size and format (extensions and codecs)
  • Browser and platform compatibility
  • User internet connection (mobile vs desktop devices)
  • Server resources (bandwidth, CPU, RAM)
  • Privacy and data owning
  • Content visibility and engagement

Therefore, depending on where you will insert the video and the application you use, you will be affected by some of the above or not. So let’s get our hands on it and do a step by step research about what is the simplest way to embed a video. Continue reading “How to embed video into a website – Ultimate tutorial”

How to stop Google Analytics Language SPAM?

Few days ago I have notice a big rise of my Google analytics stats from some very suspicious sources from Russia. Strange thing about this was the browser languages.

Here is a sample of my analytics report:

There are some more curious language codes in the report: Continue reading “How to stop Google Analytics Language SPAM?”

How to deactivate all WordPress plugins from MySQL database

WordPress plugins can be easily disabled from the database. You just have to open your favorite client and connect to your favorite client and go to your site database. I normally use HeidSQL, phpMyAdmin or Adminer but you can use any other. For this specific task you must know your database connection credentials. If you have an FTP connection you can find that in your wp-config.php file on the wordpress installation root

You will have to go to the wp_options table and search for a specific value in the option_name column. Please note that the table prefix ( wp ) is the standard prefix but can be different from one installation to another. Continue reading “How to deactivate all WordPress plugins from MySQL database”

What is SEO, SERP, SEM, SEA, SMO, SMM and SERM

Today´s Internet contains many abbreviations. Sometimes it´s impossible tu understand the content with so much abbreviation. So what is SEO, what is SEM and where did SERP came from, what SMO and SMM stands for, did I mention SEA, and what in the hell mean SERM. Below, I will describe all this terms:

Search engine optimization (SEO)

SEO or Search Engine Optimization (one of the most used) is the technique which helps search engines to find and get better positioning for your website among millions of other sites competing you. SEO, helps search engines to better understand the content of your website and therefore helps you get more traffic.
Continue reading “What is SEO, SERP, SEM, SEA, SMO, SMM and SERM”

PrettyPhoto Minimal Theme – a pure CSS prettyPhoto simple theme

I have recently used prettyPhoto for a project and I have to admit that it is a great tool to have in hand when it comes to modal pop-ups.

It has lots of types of content support and it is really simple to customize. prettyPhoto also comes with lots of features and 5 built-in themes

  • light_rounded
  • dark_rounded
  • light_square
  • dark_square
  • facebook
  • pp_default
  • minimal theme – which will add here with minimal and pure CSS

…which you can easily change via JavaScript customization. But this is not the subject of this tutorial.

I prefer a default minimal and simple theme for prettyPhoto and the ability to add stuff if I need it and not the opposite. So this is my little CSS to create a simple theme for prettyPhoto Continue reading “PrettyPhoto Minimal Theme – a pure CSS prettyPhoto simple theme”

Enable/Disable WordPress Automatic Core, Plugins and Themes Updates

Back in 2013, the WordPress 3.7 introduces the automatic update feature. There are 4 types of updates and that includes, the WP core, plugins, themes and languages.

Although updates are a good thing to do, from a security point of view, there are some aspects that you will want to take into consideration when doing an update.

So you may want to choose the time of the update, you may want to choose what to update and most of all you would like to take a full backup, just in case things don’t go out well, specially when updating themes.

So if you want to have it all controlled and take decisions after you first test everything, you can completely disable all automatic updates by adding this line to your wp-config.php . Continue reading “Enable/Disable WordPress Automatic Core, Plugins and Themes Updates”