In WordPress, you can add pages to the admin backend by using the functions add_menu_page() or add_options_page(). If you use these functions, you may run in an error, that you get: You do not have sufficient permissions to access this page Even if you are a Super Administrator. What went wrong? Both functions allow to […]
If you get a 504 Gateway Timeout when using Laravel Valet and you want to increate the timeout, you can do this by modifying the file /usr/local/etc/nginx/valet/valet.conf: Now, add these lines: To this block: After saving the file, restart Laravel Valet: Now, the required timeouts should be increased.
When restoring a blank Mail-in-a-Box, you may get this error: Solution to fix the problem is to run this command before running the restore: After deleting this directory, the restore should run without problems.
If you use WordPress in combination with a Laravel Forge provisioned server, you may encounter problems when WordPress is not installed at the root level. I discovered especially REST errors (404), when the WordPress installation is contained in a subfolder. To fix that problem, add this to your nginx configuration: Replace my_subfolder by the name […]
If you use Laravel Forge and move some files to another users account (using isolated users), you will have to fix the file and folder permissions. First step is to set the correct owner. You can do that by running: Replace CORRECT_USER by the name of the correct user (the ‘isolated’ username) and replace FOLDERby […]
This tutorial guides you through the setup process of Sentry (onpremise / self hosted) using Ubuntu 18.04, nginx as webserver and LetsEncrypt certificates. First step is to get Ubuntu 18.04 up and running. In my case, I use a cloud server from Hetzner. You should use a server with at least 4GB or RAM, because […]
max_allowed_packetis a MySQL variable. If you wanto to increase max_allowed_packet, you can use the SQL statement below. First step is to check the current size of max_allowed_packet: Next step is to set max_allowed_packet – in this case to 16MB: Now, max_allowed_packet has been changed.
If you use the HTML package from LaravelCollective to generate your Laravel forms, you may encounter a problem, when you use form model binding. It may occur, that your input fields remain empty. The reason may be, that you’ve copied your creation form to your edit form and copied an empty string as default parameter. […]
If you want to debug / log WordPress database queries, you have to enable SAVEQUERIES in wp-config.php: After enabling SAVEQUERIES, add this code to your functions.php or a plugin: This method will create a file wp-content/sql.log and log all your database queries there.
By default, the WordPress backend search searches for post titles and the post content. If you have a lot of pages, it can be hard to find the correct page when you want to link pages or insert pages to a menu. If you want to change that, so that WordPress only searches for the […]