Paid theme file replacement error
-
Dear all,
I built a website using the free version of a theme (Consultant from Flexithemes), and now I want to use the paid version I just bought. The free version has links in the footer to..questionable websites, so I want it gone. I received an email with instructions, to replace specific files. I tried Filezilla, but cannot connect to the host server (this is not necessarily the part I need to have solved). Another option would be to install the complete theme as a new one, but I’d rather not lose the edits I made to the theme.
I found the code editor in WP and tried replacing the code with the code in the files I was sent. However, it gives some errors that I don’t know how to fix. The errors refer to each other’s files, but WP won’t let me save them regardless so I’m stuck in a loop.
The final result of this mess is that my website is blocked and only displays “All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.” I wouldn’t call links to websites promoting illegal substances family friendly.The instructions:
Re-upload the following files from the unzipped links free version:
header.php (successful)
footer.php (successful)
functions.php (this one gives error)
lib/Themater.php (this one gives error)
lib/default-admin-options.php (if it exists in your theme)
Now, the links should be removed and you can completely customize your footer.Error in Functions
Your PHP code changes were rolled back due to an error on line 614 of file wp-content/themes/Consultant/lib/Themater.php. Please fix and try saving again.Uncaught Error: Call to undefined function wp_initialize_the_theme_load() in wp-content/themes/Consultant/lib/Themater.php:614
Stack trace:
#0 wp-content/themes/Consultant/page.php(32): get_sidebars()
#1 wp-includes/template-loader.php(106): include(‘/home/public/si…’)
#2 wp-blog-header.php(19): require_once(‘/home/public/si…’)
#3 index.php(17): require(‘/home/public/si…’)
#4 {main}
thrownThe line this error message is referring to:
if(!function_exists('get_sidebars')) { function get_sidebars($the_sidebar = '') { get_sidebar($the_sidebar); } } ?>
The error in Themater
Your PHP code changes were rolled back due to an error on line 263 of file wp-content/themes/Consultant/functions.php. Please fix and try saving again.Uncaught Error: Call to undefined function wp_initialize_the_theme_message() in wp-content/themes/Consultant/functions.php:263
Stack trace:
#0 wp-content/themes/Consultant/functions.php(263): wp_initialize_the_theme_finish()
#1 wp-settings.php(508): include(‘/home/public/si…’)
#2 wp-config.php(90): require_once(‘/home/public/si…’)
#3 wp-load.php(37): require_once(‘/home/public/si…’)
#4 wp-blog-header.php(13): require_once(‘/home/public/si…’)
#5 index.php(17): require(‘/home/public/si…’)
#6 {main}
thrownThe line this error refers to:
It’s just a blank line. Though if I select it with my cursor it does highlight..somthing invisible? Here –>This is the code surrounding it:
}?>
There are 3 empty lines in between, forum shows only 1
I hope this explanation makes some sense. Thank you in advance for your help!
- The topic ‘Paid theme file replacement error’ is closed to new replies.