jCatalog plugin review

I don’t usually do this kind of reviews, but this one deserves it. Here we go: Upon download, you are getting 30 Megabytes (!!!) of 6323 (!!!) files just in the plugins/jcatalog folder. WordPress alone is 18.3 Megabytes and 1216 files. The plugin checks if you are using WordPress or Joomla. So it could work …

How to replace your WordPress site with your newly developed one using Duplicator plugin

Staging site is the one that you’ve been developing as a redesign of the live site, that has been active till now. Install Duplicator plugin on your staging site and run a full backup generation with it. Ignore warnings on the scan step, in most cases they are related to big files, big overall size of the …

Bad session handling can lead to performance issues

The reason is shortly explained in the PHP documentation for session_start() function here: http://php.net/manual/en/function.session-start.php#110649 Furthermore, you can read about it in the session_write_close() function reference page. How we found this? We had slow loading of some admin pages (Plugins, All Pages) in WordPress and every time P3 Profiler was pointing to a different plugin, but …

White screen after updating plug-ins

What if you have a very old WP site and suddenly you decide to update everything and in the middle of everything you suddenly get a white screen. The Great White Screen of Dead. No error messages are displayed and the console is empty as hell. The only thing you get in the web tool …

Limiting access to (some) files in uploads dir

All you need to do is add a .htaccess file with the following content in your uploads dir:

If you want to limit just any file from being accessed from anyone, just use “./*” instead of the regular expression.

Monitoring slow queries in MySQL

If you are in doubt that some really slow queries are taking place on your server and they put you on too much load, then use this change in the configuration file to enable logging of slow queries: The config files usually is /etc/mysql/my.cnf. Uncomment these: slow-query-log = 1 slow-query-log-file = /var/log/mysql/mysql-slow.log long_query_time = 1 …

json_no_route when querying taxonomy with WP-API

To get a taxonomy, using WP-API, you should make a request to http://example.com/wp-json/taxonomies/category/ All is well, until you have a taxonomy with a dash(‘-‘) in its name – in my case, the taxonomy is called ‘event-categories’ – the default event taxonomy in the Events Manager plugin. So, a request to http://example.com/wp-json/taxonomies/event-categories/ responds with a “No …