最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Environment to do updates to legacy (4.7) version of WP while staying on php 5.6?

matteradmin5PV0评论

So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.

So, I think I know what needs to happen but I wanted to get the opinion of the community and hopefully some more experienced people. I have to do content and theme updates to a site still running php 5.6. Because of a custom built app that interacts with the site, we can't currently update the php version, although we know this is a security no-no. So, I need to be able to keep the WP codebase compatible with php 5.6. The site already has the update blocking plugin on it, but I assume I would need to have a custom container for local development and a droplet or other VPS for showing to be able to show the updates off before pushing them to them to the live site. Is that right? Are there any shortcuts here? any chance the site will run on a php 7 server? I think most of the changes I need to do are just JS/front end stuff, so I'm hoping to take the lazy devops route here if possible.

Share Improve this question asked Apr 5, 2019 at 15:04 nizz0knizz0k 1198 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

nizz0k,

so not sure exactly what you are looking for but I will give it a try. If you have not updated your WP core or any of the plugins running on this PHP5.6 server then most likely you will have some issue/issues trying to run this same code without any updates on a PHP 7.0 server.

What this issue will be of course is hard to tell as I have no idea what plugins you are running. Here ares some issues I have experience over the past years jumping from PHP 5.6 to PHP 7.0 to PHP 7.2

I have not had my WP site crash but I have many PHP warnings go off. I have also had some things not function properly and some plugins functionality breaking, custom theme templates not working right etc..

The only way for you to know this and figure out everything is to spin up a PHP 7.0 server, if that is your version of choice and place a copy of your site and start updating one item at a time. Turn on debug and start fixing any issues. Then you can get your WP site updated and running on PHP 7. This custom PHP application will also need to be eventually done the same as the site.

This is the only way I see moving your current stuff over.

Post a comment

comment list (0)

  1. No comments so far