Ask your WordPress questions! Pay money and get answers fast! (more info)

Fatal error WordPress

  • SOLVED

Hi on this page I have a Fatal error message. I was playing around with themes, then it was all broken. I played my backup from local computer back to the server, but the message is still there.

Link: http://abdichtungen-schuurman.ch/

Why?



It's a old WP installation 2.9. and theme K2

Thanks for any help!

Answers (3)

2013-05-12

Eric P. answers:

It sounds like you tried to activate the "twenty eleven" theme on a version 2.9 WordPress installation

BTW, you gave away your database passwords in your dropbox. That's not really wise to do. You'll probably want to change it after this is fixed.

This can be fixed, but you'll have to go into phpMyAdmin and work on the database "schuurman_mysq" to turn off the widgets set up by twenty-eleven. Do you want instructions how to do that?


Simone Fuchs comments:

Yes please, it was exacly what I was doing!


Eric P. comments:

Do you have access to phpMyAdmin on your server?

If you do, you can "undo" your theme selection. Open the database, and go to the wp_options table.

search the option_value column, and anywhere in there that you see "twentyeleven" change it back to K9. Changing "stylesheet" back to K9 should do the trick for version 2.9 of WordPress.


Eric P. comments:

Alternatively, you might try copying the K9 directory under wp-content/themes over the wp-content/twentyeleven directory. If you do that, it should reactivate the K9 theme (even if it's running from the twentyeleven directory).


Simone Fuchs comments:

No I can't access phpMyAdmin, maybe it's easier to aks the provider to play back the database?


Eric P. comments:

You can try one other thing before restoring (playing back) the database.

Try deleting/removing the entire twentyeleven theme (all the files, folders, directories under wp-content/themes/twentyeleven/)

Then, move/rename the k2 directory (wp-content/themes/k2) to be twentyeleven (wp-content/themes/twentyeleven).

That should get you back running. After that, go to Appearance>Themes and activate another theme. If that works, report back and I can finish unwinding the damage and getting you back to the K2 theme from the correct directory.


Simone Fuchs comments:

It was working with overwriting twentyeleven, then I was able to install K2 new. Thanks so much!!!


Eric P. comments:

Congratulations, you're back online. How did you get there?

BTW, you might want to change the password on your database and update wp-config.php with the new password. Anyone who got or looked at your backup files might have your password.

2013-05-12

Abdelhadi Touil answers:

Hi.
Can you share your website link please?
Have you turned "on" the debug mode from wp-config.php file to see all error messages?


Simone Fuchs comments:

No, how I can do this?


Abdelhadi Touil comments:

The error says there is a problem in widgets.php file in wp-includes directory, I think you can fix this problem by uploading a clean wordpress files (the same version you are using).


Abdelhadi Touil comments:

You can download a clean copy of your wordpress version from this link:

[[LINK href="http://wordpress.org/wordpress-2.9.zip"]]http://wordpress.org/wordpress-2.9.zip[[/LINK]]

Then estract the zip file and upload wordpress files (you can just reupload the wp-includes directory files).
Good luck.


Simone Fuchs comments:

I upluaded wp-includes new, but it's still not working...


Abdelhadi Touil comments:

Eric P. is right, wordpress 2.9 does not have Twenty Eleven theme, so sure the problem comes from that. In 2.9 version there is just default and classic theme, I think if you delete the Twenty Eleven theme (after making backup) so wordpress will use the default theme.

2013-05-12

Daniel Yoen answers:

Hello,

try to commented this line in functions.php

add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );

to

//add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );

hope this help :-)


Simone Fuchs comments:

I can't find this lin in config,php


Daniel Yoen comments:

Not in config.php but in functions.php in your theme folder :-)


Daniel Yoen comments:

or you can add this in functions.php to remove unsuported widget

add_action('widgets_init','unregister_unsuported_widgets',11);]
function unregister_unsuported_widgets()
{
unregister_widget('Twenty_Eleven_Ephemera_Widget');
}


hope this help :-)