Title: Fatal Error
Last modified: August 21, 2016

---

# Fatal Error

 *  [wiredvoltage](https://wordpress.org/support/users/wiredvoltage/)
 * (@wiredvoltage)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/)
 * Hi I added the following code to the functions.php page and clicked view page.
 * //call a function just before the query runs to fetch posts
    add_action(‘pre_get_posts’,’
   change_post_type’);
 * function change_post_type($var) {
    if(is_category()) { $var->query_vars[‘post_type’]
   = ‘any’; //it will change the value to ‘any’ from the default value of ;post’;//
   can be any, attachment, page, post, or revision. //’any’ retrieves any type except
   revisions. } }
 * I got the following error!
 * Fatal error: Cannot redeclare change_post_type() (previously declared in /home/
   julwre/WiredVoltage.com/wp-content/plugins/map-categories-to-pages/map-categories-
   to-pages.php:72) in /home/julwre/WiredVoltage.com/wp-content/themes/ifeature/
   functions.php on line 349
 * Now I am unable to access the site or any of the functions in dashboard so undo
   the changes.
 * Am I able to access the functions.php page another way so I can undo the changes???
 * Many thanks
 * The blog I need help with is [http://www.wiredvoltage.com](http://www.wiredvoltage.com).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [x500.net](https://wordpress.org/support/users/x500/)
 * (@x500)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/#post-4220502)
 * Can you just FTP to the server using credentials provided by your hosting provider(
   possibly DreamHosts)?
 *  Thread Starter [wiredvoltage](https://wordpress.org/support/users/wiredvoltage/)
 * (@wiredvoltage)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/#post-4220512)
 * OK great I’m there but when I open:
 * WiredVoltage.com/wp-content/themes/ifeature/functions.php
 * I get the following pop up message window:
 * 550 /WiredVoltage.com/wp-content/themes/ifeature/’. get_template_directory_uri().’/
   images/home.png: No such file or director
 * ???
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/#post-4220513)
 * Ask your hosting providers to help you with FTP.
 *  Thread Starter [wiredvoltage](https://wordpress.org/support/users/wiredvoltage/)
 * (@wiredvoltage)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/#post-4220515)
 * OK thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [wiredvoltage](https://wordpress.org/support/users/wiredvoltage/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-935/#post-4220515)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
