• I just moved migrated from a local server to a live site, with not too much trouble. I then tried installing a new plugin and it appears that it tried to install in a local directory instead of on the live site. This is the error i received:

    Warning: touch() [function.touch]: Unable to create file C:/xampp/apps/wordpress/tmp/social-networks-auto-poster-facebook-twitter-g.tmp because No such file or directory in /home/content/j/e/r/jeremiahmoore/html/lucearts/wordpress/wp-admin/includes/file.php on line 155

    Warning: unlink(C:/xampp/apps/wordpress/tmp/social-networks-auto-poster-facebook-twitter-g.tmp) [function.unlink]: No such file or directory in /home/content/j/e/r/jeremiahmoore/html/lucearts/wordpress/wp-admin/includes/file.php on line 479

    Download failed. Destination directory for file streaming does not exist or is not writable.

    Not sure of the best way to fix this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • As far as I can tell, you gotta update your paths.

    Because every time you go from local to live you face broken links and images not showing up.

    If that’s really the problem you can fix it with an SQL query:
    UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yoursite.com/');

    A simple search and replace will probably create more problems than it solves.

    When you move a site, you must replace the old URLs and paths with the new ones. Some of these are stored in the database in ‘serialized’ form where the string length is stored along with the string. You must use special tools to search and replace the old values with the new ones.

    If you replace an old URL or path with a new one of a different length, it will break the serialization, causing many different problems.

    If the old site is still available, you can use the steps shown in this article to copy the site: http://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/

    If the old site is not available, and you still have a copy of the database from that site, you should be able to use this tool to make the changes: http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    inside wp-config.php (and possibly in other theme/pluggin files too I guess) look for anything defining the constant “WP_TEMP_DIR”. Something like the below:

    define('WP_TEMP_DIR', '/home/yoursiteusername/public_html/wp-content/uploads');

    its possible to override and hardcode the default temp upload value with this

    I have the same problem as mooreart above and appreciate the three possible solutions. I think zeniph is correct that something has to be change in the wp-config.php, but I don’t know enough to attempt it without some very explicit step-by-step instructions from someone in the know. Please help if anyone can.
    wavesofchange

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin Install failed after migrating to live server’ is closed to new replies.