Marinus Klasen

Marinus Klasen

  • Development
  • Consultancy
  • Developer Resources
  • Blog
  • Contact

Deployer/Composer: Version issues

August 12, 2021

Requires php ^7.3 || ^8 -> your PHP version (7.2.33) does not satisfy that requirement. I ran into this issue today after updating some composer packages and deploying the new codebase. Since the server runs composer on PHP 7.2 by default, it refused to complete the deployment. The fix is easy, you can force deployer […]

Continue Reading

Get all DNS record/hosts from a domain

August 10, 2021

Transferring DNS is always a hassle. You want to make sure you copy all the records correctly to avoid any downtime when changing nameservers. But, are all hosts public? We’ll find out below. Cloudflare automatically imports records Most of you have seen how Cloudflare imports DNS records. The interesting thing is, they don’t really request […]

Continue Reading

Shared media library in WordPress Multisite

July 14, 2021

Honestly, whenever possible – I avoid the need to share media between sites but.. in this case a lot of the same media exists on multiple sites. And the hosting we’re eyeing on charges per 5GB. With a 12GB media library we want to optimise this in whatever ways possible. Soo.. Let’s have a look […]

Continue Reading

Post Type missing in WP_Query or get_posts (Polylang?)

July 9, 2021

When querying multiple post_types via get_posts, there was one specific post type that didn’t show up in combination with posts or pages. Querying only that specific post type worked fine, but the combination failed, every – single – time. After running the same arguments in a WP_Query and checking out the SQL that it used […]

Continue Reading

Overriding the Gravity Forms submit button

May 26, 2021

I recently setup a Gravity Forms form that generates a zip download on submission. Whenever someone hits ‘submit’, a ZIP is generated based on user values. This works by hooking into gform_confirmation and returning a header(‘content-disposition: attachment; filename=file.zip’);. The entry is created, the zip download starts but.. the form becomes unusable afterwards. You cannot generate […]

Continue Reading

Auto reload a python script on file change using nodemon

May 15, 2021

I’m working on a Discord bot with a friend of mine which runs on Python. I’m quite unfamiliar with the language but it bothered me that each time I make a change in code, I need to to restart the bot completely. I did some research and it didn’t seem like there were a lot […]

Continue Reading

Creating a WordPress Sandbox environment that resets hourly with Cloudways

May 8, 2021

I’ve had multiple occasions where I just wanted to try something on a clean install in WordPress. Today we’re setting this up in Cloudways. Don’t have a server running yet? Click here to get started: https://www.cloudways.com/en/?id=713055 (yup, that’s an affiliate link) My requirements An environment that resets itself every hour The database is reset, as […]

Continue Reading

Page templates not appearing in your Genesis child theme?

April 19, 2021

I just spend 15 minutes researching why my custom page template wouldn’t appear in page attributes. Everything was set correctly.. except for one thing. I hope you land here if you experience this issue, and I also hope that your child theme doesn’t contain an index.php file, because this is the fix. Make sure your […]

Continue Reading

WordPress Cronjobs in Multisite

April 7, 2021

It’s always better to add a cronjob for running WordPress’ cronjobs. If you don’t, you’re dependent on website visits to launch cronjobs. Luckily we have wp-cli for that, the wp cron event run –due-now command will process any cronjobs in queue. If you add this to your crontab, you’re all set. Except for multisite Each […]

Continue Reading
  • « Previous Page
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • Next Page »

Get in touch

Contact me using the details below

Marinus Klasen

Wilhelmina van Pruisenweg 35, 2595 AN Den Haag

marinus@mklasen.com
twitter.com/marinusklasen
linkedin.com/in/marinusklasen

  • GitHub
  • LinkedIn
  • Twitter

Have you read?

  • Elementor Widget UsageMarch 27, 2025
  • Programmatically showing popups with ElementorMarch 25, 2025
  • The Elementor sanitize_settings errorSeptember 12, 2024
  • Announcing.. Wooping Shop Health!June 13, 2024
  • Swiper setup when using wp-scriptsMarch 14, 2024

Copyright © 2025 ยท Marinus Klasen | Webdesign by Team Rood