To export a database to a sql file use the code below mysqldump -u[username] -p[password] [database_name] > [file.sql]
Author: contrib
Enabling cross-origin resource sharing
Here is a good resource for enabling cross-origin resource sharing when experiencing errors through javascript. Enable CORS
Blank pages in WordPress pages
Blank pages can be seen in wordpress if the X-Frame-Options are set to deny. You can view the problem using browser dev tools and view the console log. X-Frame-Options are used to indicate whether or not a browser should be allowed to render a page in a frame, iframe or object. Sites can use this […]
Woocommerce Update All Products With New Download Limit
Run the following MySql query to generate the new download limit of 100 for all Woocommerce products in WordPress. UPDATE wp_postmeta SET meta_value = “100” WHERE meta_key = “_download_limit”
Using WordPress With LEMP
Issues If you get the error ‘http error’ while uploading media: 1.Edit nginx.conf nano /etc/nginx/nginx.conf and add to the http block client_max_body_size 100m; 2.Edit PHP config nano /etc/php5/fpm/php.ini and increase upload sizes post_max_size = 100M upload_max_filesize = 100M
Teamviewer and RDP
Using Teamviewer with RDP in Windows you may receive the following error when an RDP session is closed or minimised. The screen cannot be captured at the moment. This is probably due to fast user switching or a disconnected/minimized remote desktop session To get around this make sure Teamviewer is installed then: 1. Get the […]
Import SQL File into MYSQL Database Using Command Line
To import sql file into existing database use the code below mysql -u[username] -p[password] [database_name] < [file.sql]