Keep Moving Forward… 08.09.10

Posts tagged “Wordpress Theme

My Crius is “unresponsive”

UPDATE: Unfortunately I was too lazy to head and shoulders deep into repairing this theme and have finally bitten th bullet and swapped it out for a generic template. I found that in a desktop web browser the pages weren’t loading, and on mobile not even the menu would load. Such a shame really, I did so like this theme. When I get off my lazy, fat, behind I might get around to developing my own custom site once i finish my Coding Studies…

____________________

The theme in use on this site was the Crius Responsive Theme, purchased from a developer on Themeforest in 2013. Unfortunately the developer is no longer supporting it, and the theme itself is no longer available for purchase.

This in and of itself is not an issue, however there are many, many installations of this theme across the web and they are all going to crash one way or another as a result of the implementation of php 7.0 and most site owners are not going to know why there is a problem. So here’s the heads up, the skinny, if you will.

As of php 7.0 there are several backwards incompatibilities you, or your web developer, will need to be aware of. You, or your developer, will either, need to completely re-write the code, or take the time to change the incompatible code, and there might be quite a bit of it, or…

get a new theme. It is after all, soooo 2013!

BUT! fear not, I have just spent the last hour or so making the necessary changes. It turns out that the help of a WordPress Plugin you can keep your site live, AND scan all the code for incompatibilities with php 7.0 What an amazing tool! It has taken all the worry and guesswork out of the equation.

Are you ready for a major ugrade to your Crius Responsive Theme based site? Here’s what to do.

  1. From the Dashboard, got to WordPress Plugins, Add a New Plugin and search for PHP Compatibility Checker. It should be the first one on the list. Install It!
  2. Activate the Plugin and Run it.After a while it’ll return some Errors and Warnings. In my case 24 errors, and 8 warnings. These basically amounted to 4 distinct issues, site wide. (print out the list)
  3. Next, from your Web Host’s login landing page, log into cPanel, then goto to your File Manager. Follow the file path to the relevant file, click on the file, Click on, “Edit” and make the necessary changes.
  4. Job Done!

The warnings amount to issues related to php 4 style class constructors, so it is strongly advised that you look into these and make some updated changes. The only other issue requires a small amount of rewritten code due to the deprecated, create_function( ) function, which cannot be replaced with the anonymous function, function( ) as it doesn’t directly swap over like, ereg( ) which can be substituted with, preg_match( )

So, if you are having problems navigating around my website, it’s not you, really… it’s me… well, the php.