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 […]
Latest Posts
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]
Beanstalkd and Multiple Laravel Websites
If you have multiple websites on the same server using Beanstalkd for queues you can set unique queue tubes for each site to prevent jobs on the queue being triggered by the other sites. In Laravel, edit the queue config file and change default to something unique like the website name. ‘beanstalkd’ => [ ‘driver’ […]
Issues Running Powershell Scripts in Task Scheduler
If a script is not running or hanging when running task scheduler may indicate a 0x1 or 0x41301. Try to change the -ExecutionPolicy parameter powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -NoProfile -File c:\scripts\script.ps1