• Resolved Ypanesa

    (@ypanesa)


    Since a few hours I get a fatal error, when I try to open a category on the right side of my site https://gifwelt.info. There are the gifs. I geht a fatal error.

    Fatal error: Call to undefined function dkret_entry_header() in /kunden/xxxxxx_xxxx/gifwelt2/wp-content/themes/dkret3/category.php on line 51

    What I did just before. I changed all tags h2 to h1. I did not change anything else.

    When I puttet line 51 in comments, I got the fatal error at the end of the page:

    Fatal error: Call to undefined function dkret_entry_footer() in /kunden/152336_4153/gifwelt2/wp-content/themes/dkret3/category.php on line 89

    I have other sites whit the dKret3 theme and non of them has a category.php. I try very hard in a forum and with my weghost support to find a solution. No way. Can you please help me?

Viewing 15 replies - 1 through 15 (of 15 total)
  • I’m not finding a call for dkret_entry_header() anywhere inside the dkret3 theme, hrm.

    My suggestion would be to remove the offending theme and add a fresh theme back up there.

    *also* do you have any [older] versions of the dkret3 theme in your themes/ folder? If you do, move those older versions someplace else besides the theme directory

    Thread Starter Ypanesa

    (@ypanesa)

    I do have backups. I have no clue how to move it to the existing theme for testing. I have wp-content > themes > dkret3 and wp-content > themes > my-dkret3. Shall I move these two folders completely after renaming the activ folders?

    Yes, I would rename those two folders to like dkret3-old and my-dkret3-old

    then install dkret3 back into the wp-content/themes folder by itself, not having any other duplicate themes in there

    What I have seen is that if more then one theme in the wp-content/themes directory shares the same name:

    Theme Name: dkret3

    that it can cause effects with wordpress not getting the right place to pull the information from.

    The first thing I would check is “move” the theme you don’t use out of the wp-content/themes, like if you use dkret3 but not my-dkret3 I would move the my-dkret3 out of the themes folder, leaving dkret3 in there alone and then see if the error comes up

    Thread Starter Ypanesa

    (@ypanesa)

    I renamed the folders and uploaded the two backup folders. No result, the same fatal error. The panic raises…

    … you need to move those folders out of the theme directory. Again, only one dkret theme in the wp-content/themes directory at a time

    Thread Starter Ypanesa

    (@ypanesa)

    and you still say: /wp-content/themes/dkret3/category.php that file doesn’t exist, at all?

    Thread Starter Ypanesa

    (@ypanesa)

    Of course this file exists. It exists only in this site. I do have 2 other sites with the same theme and this file doesn’t exists there. This file ask in line 51 for the function dkret_entry_header() which doesn’t seem to exist.

    <div class="entry-header">
    <?php dkret_entry_header() ?>
    </div>

    Your my-dkret3 is a child theme, while dkret3 is a parent theme, i downloaded the latest from here https://www.ads-software.com/extend/themes/dkret3 and it doesn’t have that function either,

    HOWEVER, Older dkret3 themes used to have that function as seen here:

    https://code.google.com/p/dkret-theme/source/browse/trunk/library/extensions/hooks-filters.php?r=287

    which doesn’t appear to be in the theme anymore

    In your category.php file I would actually do this:

    <div class="entry-header">
    <?php do_action('dkret_entry_header'); ?>
    </div>

    You should now do the same with dkret_navigation_below

    <?php do_action('dkret_navigation_below'); ?>

    and

    <?php do_action('dkret_entry_footer'); ?>

    Thread Starter Ypanesa

    (@ypanesa)

    You did it! I’m so happy, thank you so much! Can you explain the difference between do_action and the direct call before?

    If you look here:
    https://code.google.com/p/dkret-theme/source/browse/trunk/library/extensions/hooks-filters.php?r=287

    The older version of dkret was using a function to call the hook anyways, doing the exact same thing but adding another step by making it a function.

    SO we just killed the middleman function call and just hit up the action instead.

    Mind you in the new version of dkret3 I didn’t see anything that used those hooks, but /shrug it works right?

    Thread Starter Ypanesa

    (@ypanesa)

    Yesss!

    I thought I use an actual version of dKret. I always take care to update anything (maybe too much).

    Your website is interesting. I shurely will pass some hours there ??

    Thanks ?? Although it caters mainly to the things I work on primarily and most of it probably would not be relative to you, it does however have some good idea’s in it.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Fatal Error’ is closed to new replies.