Blog

Remove Plugin from List

User a:20:{i:0;s:27:"LayerSlider/layerslider.php";i:1;s:46:"captcha-for-contact-form-7/f12-cf7-captcha.php";i:2;s:79:"contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php";i:3;s:67:"contact-form-7-simple-recaptcha/contact-form-7-simple-recaptcha.php";i:4;s:36:"contact-form-7/wp-contact-form-7.php";i:5;s:23:"cookiebot/cookiebot.php";i:6;s:43:"ds-cf7-math-captcha/ds-cf7-math-captcha.php";i:7;s:33:"facetwp-submit/facetwp-submit.php";i:8;s:17:"facetwp/index.php";i:9;s:33:"fusion-builder/fusion-builder.php";i:10;s:27:"fusion-core/fusion-core.php";i:11;s:43:"google-analytics-dashboard-for-wp/gadwp.php";i:12;s:24:"header-footer/plugin.php";i:13;s:31:"mobilede_wordpress/mobilede.php";i:14;s:19:"neusued/neusued.php";i:15;s:37:"post-types-order/post-types-order.php";i:16;s:23:"revslider/revslider.php";i:17;s:61:"sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php";i:18;s:31:"wp-migrate-db/wp-migrate-db.php";i:19;s:29:"wp-retina-2x/wp-retina-2x.php";} remove mobilede_wordpress from above and give new Assistant Here's the updated serialized string with `mobilede_wordpress/mobilede.php` removed: a:19:{i:0;s:27:"LayerSlider/layerslider.php";i:1;s:46:"captcha-for-contact-form-7/f12-cf7-captcha.php";i:2;s:79:"contact-form-7-dynamic-text-extension/contact-form-7-dynamic-text-extension.php";i:3;s:67:"contact-form-7-simple-recaptcha/contact-form-7-simple-recaptcha.php";i:4;s:36:"contact-form-7/wp-contact-form-7.php";i:5;s:23:"cookiebot/cookiebot.php";i:6;s:43:"ds-cf7-math-captcha/ds-cf7-math-captcha.php";i:7;s:33:"facetwp-submit/facetwp-submit.php";i:8;s:17:"facetwp/index.php";i:9;s:33:"fusion-builder/fusion-builder.php";i:10;s:27:"fusion-core/fusion-core.php";i:11;s:43:"google-analytics-dashboard-for-wp/gadwp.php";i:12;s:24:"header-footer/plugin.php";i:13;s:19:"neusued/neusued.php";i:14;s:37:"post-types-order/post-types-order.php";i:15;s:23:"revslider/revslider.php";i:16;s:61:"sticky-menu-or-anything-on-scroll/sticky-menu-or-anything.php";i:17;s:31:"wp-migrate-db/wp-migrate-db.php";i:18;s:29:"wp-retina-2x/wp-retina-2x.php";}

PHP CSV Memory Issues

User Memory exhausted error when download csv more than 50000 in php Assistant The "memory exhausted" error occurs when PHP runs out of memory to process a large operation, such as generating or downloading a large CSV file. Here are some solutions to resolve this issue: — ### **1. Increase PHP Memory Limit** Increase the […]

CSV Data Download Script

User Assistant Handling more than 50,000 records at once can lead to memory issues, as PHP is not optimized for large data processing. To efficiently process such a large amount of data, we need to implement batch processing. Here's an updated version of your script that processes records in batches and streams the output to […]

Create Admin User Programmatically

User create admin user programatcally Assistant To create an admin user programmatically in Laravel, you can use Laravel's Eloquent model to insert a new user into the database. Assuming you have an `Admin` model and a guard or user role setup for admins, here’s an example: ### Example Code Add this to your Laravel project […]

Get WordPress Admin URL

User how to get admin url wordpress Assistant To get the WordPress admin URL programmatically or through a browser, here are some methods: ### **1. Browser Access** The default WordPress admin URL is: https://yourdomain.com/wp-admin/ Replace `yourdomain.com` with your website's domain. — ### **2. Programmatically in PHP** Use the following PHP functions to retrieve the admin […]

DDEV phpMyAdmin Fixed Port

User ddev phpmyadmin generate same port for each project phpmyadmin Assistant By default, DDEV assigns dynamic ports to services like phpMyAdmin to avoid port conflicts when multiple projects are running. If you want the phpMyAdmin service to use the same port across all your projects, you can configure it explicitly in each project's `.ddev/config.yaml`. Here’s […]

EC2 Deployment Exclusions

User name: Deploy to EC2 on: push: branches: – master # Trigger on push to master branch jobs: deploy: runs-on: ubuntu-latest steps: – name: Checkout code uses: actions/checkout@v2 – name: Set up SSH env: PEM_FILE: ${{ secrets.PEM_FILE }} # Store your PEM file content in GitHub secrets run: | echo "$PEM_FILE" > key.pem chmod 600 […]

Rsync Permission Errors Fix

User rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app/private": Operation not permitted (1) rsync: [generator] failed to set times on "/var/www/shareyourthoughts/storage/app/public": Operation not permitted (1) rsync: [generator] failed to set times […]

Add Cookie Consent GTM

User add below in wordpress website header Cookie Consent: <script> </script> GTM: <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-N2WK2N2P'); </script> Assistant To add the Cookie Consent and Google Tag Manager (GTM) code to your WordPress website header, you can follow these steps: 1. **Edit the `header.php` File:** – Go to your WordPress dashboard. – […]

Laravel Breeze Event Broadcasting

User larave breeze blade broadcast event Assistant To broadcast an event in a Laravel Breeze application, you can integrate Laravel's **event broadcasting** system. Here’s a step-by-step guide on broadcasting and handling events in Laravel Breeze with Blade views: — ### **1. Set Up Event Broadcasting** #### **Install and Configure Pusher or Laravel Websockets** 1. **Install […]