Plugin updated pushed with git break site

I'm having some trouble updating the plugins on a wordpress website. It's all my fault for waiting too long to update them, and now pushing the updates with git breaks the site (the development site is ok, only the staging site that I've pushed to breaks). I tried updating everything manually, and will composer, but both methods don't last - the plugins revert back to their previous version with subsequent git pushes. Is there any way to update these plugins …
Category: Web

docker on windows 10 with VVV

I've been using VVV on a Win 10 Pro machine for local dev. And it works great. But I want to try things like wpgraphql via docker. I've read about Docker Desktop for Windows vs. Docker Toolbox. We would prefer not to use the legacy solution ( Docker Tookbox ). Is it possible to use Docker Desktop for Windows on the same machine that is using VirtualBox ( VVV ) ? I'm not opposed to using Docker for all our …
Category: Web

Parse error syntax error after Wordpress update

After updating Wordpress to 5.3.2, on VVV environment I get this error: Parse error: syntax error, unexpected '}', expecting end of file in /srv/www/woo/public_html/wp-includes/default-constants.php on line 413 The interesting part is that the file has only 411 lines. The file is included in wp-settings.php. When I do error_log before it's inclusion it prints fine, but when I put error_log after it doesn't show the message which proves the PHP parser see the error in default-constants.php file. I tried to disable …
Category: Web

Vagrant Access index.php

I believe this is the right place to ask. First, I've installed VirtualBox and Vagrant. After that, I've cd'd to this: https://github.com/LearnWebCode/vagrant-lamp (downloaded zip, extracted folder) Then after running vagrant up, I've reached the Congratulations page through IP http://192.168.56.101/ After that, I've set an easy-to-read URL in the hosts file, and able to run it but it leads to the Congratulations page and not the index.php's Hello World. Any idea how to rectify? Not sure if this is part of …
Category: Web

xdebug connects but won't break in WordPress with vvv

I am using vvv for local WordPress development and cannot get xdebug to pause on breakpoints. I have ssh'ed in and set the xdebug_on command. phpinfo() shows xdebug installed and active phpinfo() shows remote_autostart and remote_enable both set my xdebug client (VS Code) is configured to listen on the same port as xdebug is configured to broadcast. When I add a breakpoint (for instance, on the first line of substance in WordPress's index.php) and tell my client to listen, then …
Category: Web

Symlink a directory to wp-content/themes

Is it possible to symlink a directory from my project folder to my wp-content/themes folder which is in a Vagrant setup called chassis: https://github.com/Chassis/Chassis ? I tried to symlink already using ln -s, but my wordpress installation did not recognize it as I did not see it in the Appearance > Themes admin panel. I'm wondering if it's possible to do what I want to do. I'm assuming this is done all the time, but why isn't it working for …
Category: Web

Unable to access WordPress server locally running using vagrant

Until recently I have been using Debian on my desktop, however I've decided to migrate to arch. I develop a WordPress website for someone, and I copied the vagrant-local folder containing the vagrant virtual-box containing WordPress to my arch computer. I installed virtual-box, vagrant and mod-probed the kernel drivers and made vagrant successfully run. However I am not able to open the local.wordpress.dev url on my arch computer, which should give me access to the local WordPress server. $ cat …
Category: Web

WordPress Multisite with VVV

In the command line, I used vv create to make a new WordPress multisite, selecting "y" on the multisite option during setup. Once the process finished, the site was created, but was the network had not been setup. I went into the wp-config file, and added /* Multisite */ define( 'WP_ALLOW_MULTISITE', true ); to get the network option in the admin area. Now I am stuck though, because while setting up the network it shows "Warning: An existing WordPress network …
Category: Web

Multisite setup on VVV with bedrock

I am trying to setup multisite on VVV using bedrock stack, but I'm having some issues. First I've added my multisite configuration in the vvv-custom.yml file as my-multisite: hosts: - my-multisite.dev - site1.my-multisite.dev - site2.my-multisite.dev - site3.my-multisite.dev custom: wp_type: subdomain I added the /my-multisitefolder to the /www folder. Inside it, I added the /provision folder with vvv-init.sh #!/usr/bin/env bash DOMAIN=`get_primary_host "${VVV_SITE_NAME}".dev` DOMAINS=`get_hosts "${DOMAIN}"` # Make a database, if we don't already have one echo -e "\nCreating database 'wordpress_my_multisite' (if it's …
Category: Web

Version control for both Vagrant config and themes being developed

I have set up a local Wordpress development environment using Chassis (based on Vagrant), this needed a bit of tweaking to get it how I like, so I feel like I should have this under version control. There will be changes in future. I will be using this Wordpress install for theme development, ideally I would like to develop in the "themes" folder, but would it cause problems having a Git repo within another Git repo? Is there a way …
Category: Web

WordPress development using Docker - how to share directories?

I normally use vagrant (VVV or bedrock flavours) for local WordPress development. But I want to learn how to use Docker. I've installed it with Boot2Docker, ran Docker and learned how to pull images or even start a Nginx WordPress container which successfully responded on my local host machine via http. The docs from Docker helped me with all that. My problem is: I have not understood how to create containers for WordPress with a specific configuration (I prefer LEMP, …
Category: Web

Vagrant script to setup all the common PHP / WordPress version combinations

I am looking for a way to quickly and repeatedly set up testing / debugging environment for our plugin, most probably using Vagrant. Projects like VVV focus on a single-environment setup (or, a couple of environments like stable / trunk) while what I'm looking for is a script that would setup environments like: wp39-php52.local wp40-php52.local wp41-php52.local wp39-php53.local wp40-php53.local etc. (you get the idea) Is there such thing? The closest I found is WordPress Vagrant Boxes which at least does PHP …
Category: Web

NGinx + Wordpress Subdomain Multi with core in Subdirectory

I have a WordPress install that works perfectly on a Apache server. I am currently in the process of both changing my hosting company (the new one offer NGinx) and my development stack (moving to vvv). Here is how the install is set-up: It a Wordpress sub-domain multi-site install, with core in a sub-folder (/wp-app/), wp-content in another sub-folder (/wp-app-content/) and of course my index.php, wp-config.php and .htaccess in the root folder together with these 2 folders. Here is my …
Category: Web

Local install won't work without internet

I have a local install (using Vangrant and VVV) and it works absolutely fine with internet. But without internet, it hangs on "connecting" indefinitely. I think it's trying to talk to wordpress.org and gravatar.com Is there a way to disable these connection attempts when there is no internet present?
Category: Web

Permalinks not working with Vagrant

I am using Vagrant to build up a little Wordpress development VM. When I select permalinks (postname) then the page from an article doesn't load. However, when I select the standard link (i.e page id) all is working good. I've used the service PuPHPet to build the VM. My settings can be found here I am using Wordpress 3.9.1 and Apache2 I've enabled mod_rewrite be executing: a2enmod rewrite And my .htaccess file from Wordpress is as follows: # BEGIN WordPress …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.