bdbrown on "[Theme: Hueman] Fatal error when updating"

ساخت وبلاگ

100son.net
Member
Posted 2 hours ago #

Hello,

After updating theme from 2.2.3 to 3.0.4 and 3.0.5

Fatal error: Call to undefined function ot_get_option() in /.../wp-content/themes/hueman-child-master/header.php on line 43

Can you help, please?

Thanks

Hi @css31,

can you share the content of the functions.php file of your child theme on http://pastebin.com/ (or an equivalent service). If your functions.file content is short, just share it here.

thanks

100son.net
Member
Posted 1 hour ago #

It couldn't be shorter,

<?php
/* ------------------------------------------------------------------------- * * Custom functions
/* ------------------------------------------------------------------------- */ // Add your custom functions here, or overwrite existing ones. Read more how to use: // http://codex.wordpress.org/Child_Themes

100son.net
Member
Posted 1 hour ago #

+
Here is header.php

http://pastebin.com/ixcV3aYZ

bdbrown
Member
Posted 15 minutes ago #

Hi 100son. The problem is that the code in the updated version of header.php has changed and code in the old version of header.php is no longer valid with the new version of the theme. This is an issue that users with child themes that contain modified theme files may encounter. The best option is to copy your custom code out of your existing child theme header.php file, replace the header.php file with the new version from the parent theme, then reapply your changes. If you have other modified theme files in your child theme you should do the same for those also.

bdbrown
Member
Posted 5 minutes ago #

This was posted by the theme developer about 2 hours ago:

In the mean time, I've uploaded a new version of the theme which includes a backward compatibility patch for the functions used in the previous templates.
This should fix most of the problem with child theme users who are still using the old function names in their templates.

You could try updating to v3.0.6. In the long run though you'll eventually want to update the template files in your child theme.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 97 تاريخ : چهارشنبه 25 فروردين 1395 ساعت: 1:49