Code Wizards,
I currently have a website that uses wordpress, and recently had some malware problems. I deleted some files without thinking what they did. While trying to restore the site after getting internal sever errors, I soon started to get errors similar to the one below. However I'am stuck on this one, on what it means/wants me to do.
ß Fatal error: Cannot redeclare get_header() (previously declared in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/general-template.php:21) in /hermes/bosnaweb10a/b2702/ipg.cjhgraphicdesigncom/wp/wp-includes/link-template.php on line 43
I would really appreciate any knowledge on this, my php skills are not the best.
Thank you!
Related
I have a wordpress site which is returning the following
Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /home/wryl/public_html/wp-includes/load.php:16) in /home/wryl/public_html/wp-includes/load.php on line 21
It's not a site i have anything to do with normally but have been asked if i can fix this issue. I've attempted to re-upload clean wordpress files (wp-admin & wp-includes) and made sure all the permissions have been set correctly but still get the above error. I'm a little lost as to what to try next
I just got run into the problem, many of my wordpress sites are showing me error
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/sitename/public_html/wp-includes/default-constants.php on line 248
not one, many sites started showing this error, but not all sites, All of my these sites are on one server but only few are showing me this error, I haven't done anything to WordPress or code and haven't installed any new plugin, I also tried removing all plugins but nothing could helped me, can you please tell me what's the issue?
I attempted to install a wp-ecommerce plugin, it gave me this fatal error and now it only shows the fatal error message when I try to access my wp-admin.
Fatal error: Cannot redeclare class wpsc_gateways in /home4/stickdog/public_html/wp-content/plugins/wp-e-commerce/wpsc-components/merchant-core-v2/classes/wpsc-gateways.php on line 6
If I can access my file manager and I just delete the plugin will it solve my problem? I would rather use the plugin but if it won't work its ok. Thanks for your help.
From a programming perspective it seems like the PHP class wpsc_gateways is being redeclared in the coding. But since this is a pre-packaged plug-in that seems odd. Perhaps sloppy coding on the part of the original author. If you delete the plugin the problem will be solved. But maybe the plug-in was installed twice by accident? Look at the contents if your /home4/stickdog/public_html/wp-content/plugins/ to see if that might have happened.
I recently made a site for someone with Smarty, everything worked like it should. When I had to edit something today (~ 2 weeks after initial release) i deleted the smarty cache to update all pages, now the pages are not generated anymore, it only gives the following error:
Catchable fatal error: Argument 1 passed to _smarty_template_buffer::append_subtree() must be an instance of _smarty_parsetree, instance of _smarty_text given, called in /home/public_html/classes/Smarty/sysplugins/smarty_internal_templateparser.php on line 2167 and defined in /home/public_html/classes/Smarty/sysplugins/smarty_internal_parsetree.php on line 268
The weird thing is, after some page refreshes it randomly does generate the page without the error. I can't tell why this behaviour is happening.
The PHP version is 5.4.17
Can anyone help me with this problem?
just copied my joomla site folder to godaddy domain and when i visit the home page i get this error
Fatal error: Call to a member function getDefault() on a non-object in /home/content/88/8216088/html/public_html/includes/router.php on line 123
any help ?
After some Googling, I've found a similar thread at http://forum.joomla.org/viewtopic.php?p=2441892. Since this sounds like a bug, I don't really think we will be able to solve it here.
The best thing you can do now is to try to help Joomla! developers with reporting the issue and following their instructions for debugging and solving it.