Title: Localhost to Server Problem
Last modified: August 21, 2016

---

# Localhost to Server Problem

 *  Resolved [Andyml](https://wordpress.org/support/users/andyml/)
 * (@andyml)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/localhost-to-server-problem-1/)
 * Hi there,
 * I recently installed the plugin on my localhost site, and eventually migrated
   everything to a host. Unfortunately everything worked except the Amazon Auto 
   Links plugin. I’ve got a widget displaying on the index page but all I’m getting
   are these 2 errors:
 * Warning: include(C:\xampp\htdocs\nailsite\wp-content\plugins\amazon-auto-links\
   template\category\template.php) [function.include]: failed to open stream: No
   such file or directory in /var/sites/n/naildesignsforyou.com/public_html/wp-content/
   plugins/amazon-auto-links/class/AmazonAutoLinks_Unit.php on line 377
 * Warning: include() [function.include]: Failed opening ‘C:\xampp\htdocs\nailsite\
   wp-content\plugins\amazon-auto-links\template\category\template.php’ for inclusion(
   include_path=’.:/usr/local/lib/php’) in /var/sites/n/naildesignsforyou.com/public_html/
   wp-content/plugins/amazon-auto-links/class/AmazonAutoLinks_Unit.php on line 377
 * I’ve tried uninstalling and re-installing the plugin but the same problem persists.
   I feel like it must be something obvious and simple I’m missing, any help would
   be great.
 * Thanks very much!
 * – Andy
 * [https://wordpress.org/plugins/amazon-auto-links/](https://wordpress.org/plugins/amazon-auto-links/)

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

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/localhost-to-server-problem-1/#post-4886202)
 * Hi Andyml,
 * I think I know why that happens. The plugin stores the path of the activated 
   template and tries to load it on your production site. But the path does not 
   exist because the local path is different from your the production site.
 * To solve the issue, reactivate the templates by going to Dashboard -> Amazon 
   Auto Links -> Template. The template listing table has the `Deactivate` link.
   Click on that and the `Activate` link will appear.
 * I suppose even with the PHP warnings, the site is still operational. And after
   re-activating the templates, you should no longer see the warnings.
 * Let me know if it works.
 *  Thread Starter [Andyml](https://wordpress.org/support/users/andyml/)
 * (@andyml)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/localhost-to-server-problem-1/#post-4886482)
 * The templates were actually activated, and I tried deactivating them.. which 
   worked! So for some reason the main template I’m using is currently deactivated
   but everything is working on the website. Which seems weird. But it’s working,
   so I’m happy!
 * Thanks!
 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/localhost-to-server-problem-1/#post-4886483)
 * Glad to hear it! enjoy!

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

The topic ‘Localhost to Server Problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-auto-links_eeeeee.svg)
 * [Auto Amazon Links - Amazon Associates Affiliate Plugin](https://wordpress.org/plugins/amazon-auto-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-auto-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-auto-links/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-auto-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-auto-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-auto-links/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/localhost-to-server-problem-1/#post-4886483)
 * Status: resolved