Tag Info

Hot answers tagged

4

In almost all cases you can simply delete the plugin and it will be switched off automatically, and in fact that is advice I've given many times to help reel in broken sites. The same is true for themes. Some plugins are actually more complicated than that and require additional steps. Notably, the caching plugins tend to fall into that category as some add ...


3

"the errors (…) don't show a stack trace" - they would if you were using xdebug. It means $wpdb is not loaded yet, not loaded properly, or gone: If you added code that calls it to your wp-config file or something to that order, remove it. If you've a db.php file in wp-content, it's probably broken so rename it. If you're messing around with things on a ...


3

Don't mess around with changing those files directly. It will break when that file gets changed in an update. Do this instead. add_filter( 'wp_mail_from', 'override_mail_from_address' ); add_filter( 'wp_mail_from_name', 'override_mail_from_name' ); function override_mail_from_address($email_address) { $from_array = explode('@', $email_address); ...


1

If there are hooks in place that will do the job, as in @XIROXAS answer, I think that using those is the best solution, but pluggable.php contains functions that are meant to be overwritten. If, for example, you want to alter get_user_by, which you mention in the question, just create your own function with that name in a plugin file and it will be used ...


1

Q1: [H]ow to fix the error? Stop calling the do_settings() function in this line. It is not a WordPress function and it is apparently not a function that you have defined. Perhaps you meant to use one of these functions. <?php do_settings( 'mhomepage_option_group' ); ?> Q2: [W]hat is the correct file name in <form method="post" ...


1

Well it looks like it's running ok from front end. I did get a notice saying that your Wordpress Database needed upgrading though. I'd suggest you visit: http://www.azraar.com/wp-admin and click that (after backing up your DB as previously suggested) as it might fix your problem. Good luck


1

Probably the update wasn't complete and some files are missing. If you have FTP access, follow these steps. Download you wp-config.php and save it somewhere. In the wp folder on server delete everything but the wp-content folder Have a DB backup, if you can Download from wordpress.org the zip of wordpress and extract it At this moment remove the ...


1

I had the same problem but it occured while importing the theme-unit-test-data.xml along with its attachments. I am using WP 3.8.1. It's a WordPress issue so editing the php.ini has no effect. WP uses a hardcoded value (60 secs) for http_request_timeout of WP_Http in class-http.php. To solve it, place this code in functions.php of your currently active ...


1

The CSS for my parent theme (core) was incorrectly formatted. The code at the top read: Theme Name: Core Theme URI: http://www.domain.co.uk Description: The core theme. Author: Squideyes Author URI: http://www.domain.co.uk Template: Core Version: 1.0.0 Tags: clean, simple, easy The Template: tag should only appear in the child theme css. This is what ...


1

You can try to use functions.php to handle the form submission and send the data via AJAX. Add a hidden field in your form with the action to be taken (on functions.php): <input type="hidden" name="action" value="save_contact"/> In you footer.php add the jQuery code to handle the AJAX request: jQuery('#your-form').submit(ajaxSubmit); function ...



Only top voted, non community-wiki answers of a minimum length are eligible