Title: Moving WP site &#8211; now getting php errors
Last modified: August 22, 2016

---

# Moving WP site – now getting php errors

 *  Resolved [sppunk](https://wordpress.org/support/users/sppunk/)
 * (@sppunk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-site-now-getting-php-errors/)
 * I had a Joomla install at [http://www.highlandgardens.org](http://www.highlandgardens.org).
   I dropped the Joomla tables and deleted the files.
 * I want to point the url to a WordPress install that’s build and ready in the /
   wp subdirectory. My index.php in the root folder shows this, the index.php in
   the wp doesn’t – .htaccess files are in both directories.
 * I’m getting the following errors:
 * Warning: Unexpected character in input: ”’ (ASCII=39) state=1 in /home4/grdnguru/
   public_html/index.php on line 17
 * Warning: Division by zero in /home4/grdnguru/public_html/index.php on line 17
 * Warning: require(0php) [function.require]: failed to open stream: No such file
   or directory in /home4/grdnguru/public_html/index.php on line 17
 * Warning: require(0php) [function.require]: failed to open stream: No such file
   or directory in /home4/grdnguru/public_html/index.php on line 17
 * Fatal error: require() [function.require]: Failed opening required ‘0php’ (include_path
   =’.:/opt/php52/lib/php’) in /home4/grdnguru/public_html/index.php on line 17
 * On line 17 I have this:
    require( dirname( __FILE__ ) . ‘wp/wp-blog-header.php’);
 * My directory IS wp. I’ve tired with /wp/wp-blog … as well and get the same message.
   I have the site URL in my WP dashboard correct, the WP url is siteurl.org/wp
 * Any help? Please!

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

 *  Thread Starter [sppunk](https://wordpress.org/support/users/sppunk/)
 * (@sppunk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-site-now-getting-php-errors/#post-5790662)
 * Turns out Mac’s TextEditor was messing with the PHP text and causing it to not
   be read correctly. Updating via capable fixed this issue.
 *  [junaidrehman](https://wordpress.org/support/users/junaidrehman/)
 * (@junaidrehman)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-site-now-getting-php-errors/#post-5790705)
 * if you have access to the database then go to wp_options table and change site_url
   and home to sitename.com/wp
    if you want to move your site to sitename.com then
   use sitename.com in site_url and home fields in wp_options table

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

The topic ‘Moving WP site – now getting php errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [junaidrehman](https://wordpress.org/support/users/junaidrehman/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/moving-wp-site-now-getting-php-errors/#post-5790705)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
