• Resolved Andyml

    (@andyml)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author miunosoft

    (@miunosoft)

    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

    (@andyml)

    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

    (@miunosoft)

    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.