close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

include file paths when going from testing to live server

Thread began 5/29/2010 12:05 pm by nathan400860 | Last modified 6/01/2010 11:14 am by Eric Mittman | 821 views | 1 replies |

nathan400860

include file paths when going from testing to live server

Hello,
I have developed an ecommerece site. The site is all developed and is working great in my xampp php testing server. All the test transactions are working great! I am at the last step of putting the ecommerece site online. I have a lot of files including the vidal files that ecart 5 has made for me when I intergrated my merchant account and payment gateway into ecart. I have all the files on my computer and they are working great on the test server. I used one of my free hosting accounts so I could test the site online before I buy the hosting package. I am using a linux account which I understand is best for php files. I uploaded all my files from my site. I was told to rename my home home page "home.php" to "index.php" on the linux godaddy server. I went to the domain name to check out the site and I got this error code and warning message.

"Warning: require_once(../WA_eCart/rvproductsnow_PHP.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/s/w/a/swaney777/html/index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required '../WA_eCart/rvproductsnow_PHP.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/s/w/a/swaney777/html/index.php on line 3"

Im really not sure what to do because the site works great on the xampp php testing server but when I put the site on my linux godaddy hosting account I get that error message. I contacted godaddy to see if I had to add somthing my my hosting account or do somthing with it to fix the problem but godaddy said the problem is with in my site. Im guising the problem is within my ecart 5 code becasue it uses the WA_ecart file in the error and warning message. I would really appreciate some help. My domain name is dvinecigars.com.
Thanks,
Nate Swan

Sign in to reply to this post

Eric Mittman

When you get an error like this it means that there is an include on your page and the included file cannot be found in the location specified. Based on the error message it looks like you have an include in your index.php page. The include starts with a ../ in the path. It looks like the page you are working with was in a subfolder in your test site. You will need to either replicate the exact same file and folder structure as you have for the testing server, or you will need to adjust the paths for the includes.

I would suggest that you get the files organized just like on your local testing server to avoid issues like this. When you were creating the page and applying eCart to them the include lines and other code was added to the page based on where that page was in relation to the root of the site. Since the page was in a sub directory the include paths for the eCart files were written with a ../ in them so it would go above the current directory and then look for the eCart folder.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...