Errors when creating Child Theme

Hi Roman and friends

I am using Perth on my localhost. I have tried to create a Child Theme to remove the footer credits using the plugin Child Theme Configurator. However I get the following errors -

Please contact this Theme’s author and report the items inside the box above (below). You may or may not be able to use this Theme as a Child Theme while these conditions exist.

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Services_Type_A has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-services-type-a.php on line 8
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Facts has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-facts.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Testimonials has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-testimonials.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Action has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-call-to-action.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Employees has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-employees.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Perth_Separator_Type_A has a deprecated constructor in F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\widgets\fp-sep-type-a.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0005367264{main}( )…\index.php:0
20.0008369320require( ‘F:\wamp64\www\pro-visionfootball\wp-blog-header.php’ )…\index.php:17
30.0012384728require_once( ‘F:\wamp64\www\pro-visionfootball\wp-load.php’ )…\wp-blog-header.php:13
40.0014397264require_once( ‘F:\wamp64\www\pro-visionfootball\wp-config.php’ )…\wp-load.php:37
50.0021501784require_once( ‘F:\wamp64\www\pro-visionfootball\wp-settings.php’ )…\wp-config.php:89
60.557130811144include( ‘F:\wamp64\www\pro-visionfootball\wp-content\themes\perth\functions.php’ )…\wp-settings.php:426

So, I manually created my own child theme and activated it OK. However any changes I then made in the customiser weren’t recognised eg. font size, so I had to revert back to the main theme.

Any thoughts how I can fix this please? I believe that with the Pro version we can easily remove the footer credits anyway and add our own via the customiser, is this correct?

Many thanks as always

Bibs

Hello Bibs,

I’ve already added this issue to our list, thank you for pointing it out.

Yes, you can easily change Perth Pro footer credits in Customize → Perth Pro options → Footer credits section.

Kind Regards, Roman.

OK, thanks Roman. So just to be clear then - at this time we aren’t able to create child themes for this theme?

I’m thinking of upgrading to Pro as each page can have a different header image. Are we able to change the header text for each page too?

Also will there be any customisation loss when upgrading from free to pro (as there is when changing to a child theme)? How about any problems upgrading before I go live (I am currently creating the site on my localhost before uploading the site to a live host)?

Thanks again

Bibs

Hello Bibs,

  1. I think that you should be able to use a child theme, not sure why you couldn’t change settings in Customize area, maybe some plugin conflict or something.

  2. By default no, but we can try to help you with some custom coding.

  3. Yes, just like after changing to a child theme.

  4. I’m not sure that I understand your last question, can you please describe it more precisely?

Kind Regards, Roman.

Thanks for the info Roman.

With regard to query 4 I was just wondering if there’s any problems with upgrading on my localhost before making the site live - I assume not though. :slight_smile:

Thanks alot

Bibs

Hello Bibs,

I think that it should be okay, but please remember about importance of regular full site backups (files and database):
https://codex.wordpress.org/WordPress_Backups

Also you might want to check this tutorial:

Kind Regards, Roman.

Thanks as always :slight_smile:

Bibs

You are always welcome Bibs! :slight_smile:

Kind Regards, Roman.