• edappleby

    (@edappleby)


    I’m rebuilding my site from the old Comic press at edsrus.com to a new comic easel powered site at edthecomicguy.com. I was mucking about with the design, managed to get the comic up, as well as a lot of the functionality. Really happy. Then I went to the “add comic” tab and got this lovely message…

    Fatal error: Uncaught Error: Call to undefined function ereg() in /home/edapp/edthecomicguy.com/wp-content/themes/herothemetrust/functions.php:760 Stack trace: #0 /home/edapp/edthecomicguy.com/wp-includes/class-wp-hook.php(288): save_postdata(7474) #1 /home/edapp/edthecomicguy.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/edapp/edthecomicguy.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/edapp/edthecomicguy.com/wp-includes/post.php(3581): do_action(‘save_post’, 7474, Object(WP_Post), false) #4 /home/edapp/edthecomicguy.com/wp-admin/includes/post.php(608): wp_insert_post(Array) #5 /home/edapp/edthecomicguy.com/wp-admin/post-new.php(70): get_default_post_to_edit(‘comic’, true) #6 {main} thrown in /home/edapp/edthecomicguy.com/wp-content/themes/herothemetrust/functions.php on line 760

    I have a feeling that I might have accidentally deleted or moved something around… however I was getting the same error message when i was working with elements of the theme (Theme trust’s “Hero”), and they just corrected themselves after a while.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • MaxVaehling

    (@maxvaehling)

    Apparently, the post information doesn’t get sent right. Might be something as small as a ‘}’ or whatever missing somewhere that does that. The difficult part is to locate it.

    Do you get the same error when you try to save a regular blog post? If so, does it remain when you switch CE off?

    By switching your plugins off and on one by one you can get a grasp of where, roughly, the problem is. If it’s with one of your theme tweaks rather than the plugins: Are you working with a child theme? If so, you can delete and undelete files to see if one of your theme changes caused it. (If it’s the theme.)

    Thread Starter edappleby

    (@edappleby)

    The blog posting also doesn’t work. I’ve tried switching off the plugins and that doesn’t fix it either, so I guess it’ll have to be in the theme, when i switched out the theme it seems to work. I’ll re install the old theme and figure things out. thanks.

    MaxVaehling

    (@maxvaehling)

    Make sure to use a child theme for your changes. Makes it easier to track any mistakes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Add comic” function not working’ is closed to new replies.