close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

XAMPP Conifg Issue?

Thread began 10/28/2016 7:30 am by Henry | Last modified 11/02/2016 11:25 am by Ray Borduin | 1976 views | 7 replies |

Henry

XAMPP Conifg Issue?

I get the following fatal error when I start entering shipping data on checkout.php:

Fatal error: require(): Failed opening required 'confirm_cart.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\develop_new\webassist\framework\ajax_wrapper.php on line 32

... I have a sense this is an XAMPP config issue, any ideas to help me resolve it?

Sign in to reply to this post

Ray BorduinWebAssist

It looks like the include_path setting is wrong. That shouldn't be the folder it is looking in. Unfortunately I don't know that much about configuring XAMPP, so I can't comment on the precise fix.

It does appear that it is a configuration issue... unless of course the confirm_cart.php page doesn't exist. I see you haven't included it in your post.

I could probably figure it out if I did a screen sharing session with you and could actively debug. If you want to sign up for a premier support ticket I could help and I wouldn't charge you if I couldn't fix it.

Sign in to reply to this post
Did this help? Tips are appreciated...

Henry

I see my problem is exactly as in the forum WebAssist Forums › Search Results › eCart › eCart General / Announcements › Ecart 6 checkout errors involving ajax_wrapper.php ... but I can't tell from this forum what the solution was. Can you help to point out what the solution was (maybe it was in private responses?. Thanks.

Also, I checked and the confirm_cart.php does exit, as well as confirm.php

And, in ajax_wrapper.php, where does $site_root get it's value? Perhaps this will help me debug my settings.

some more ...

I set up your eCart webinar example on my local host ... it works till I add to cart on the detail page and I get errors:

Warning: chdir(): No such file or directory (errno 2) in C:\xampp\htdocs\eCart_webinar\webassist\framework\ajax_wrapper.php on line 22

Warning: require(axaxcart.php): failed to open stream: No such file or directory in C:\xampp\htdocs\eCart_webinar\webassist\framework\ajax_wrapper.php on line 32

Fatal error: require(): Failed opening required 'axaxcart.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\eCart_webinar\webassist\framework\ajax_wrapper.php on line 32

... on my development I get add to cart to work, now I don't think it is an XAMPP issue ... WHAT DO I NEED TO CHANGE TO MAKE THE WEBINAR EXAMPLE WORK? EG DIRECTORY "ermo 2" I'M THINKING THIS WILL HELP ME RESOLVE MY CHECKOUT PROBLEMS

Sign in to reply to this post

Ray BorduinWebAssist

We never found the cause in that post. The user just moved the files to the live server and it worked. It was a configuration issue on the localhost.

Are you publishing to the root directory of your localhost? Maybe try moving all of the files to a sub-directory. The root directory is set by the webassist/framework/library.php file.

Sign in to reply to this post
Did this help? Tips are appreciated...

Henry

Nope, I don't publish to the root directory of my localhost, in my case $site_root: C:/xampp/htdocs

I put all the files in a subdirectory called "develop_new" ie. C:/xampp/htdocs/develop_new

$site_root is C:/xampp/htdocs
$_SERVER['DOCUMENT_ROOT'] is C:/xampp/htdocs
$_SERVER['SERVER_NAME'] is localhost

DW server settings are:

Server Folder: C:\xampp\htdocs\develop_new\
Web Url: http://localhost:8000/develop_new/

... can you see anything that may be amiss here? Perhaps the Web Url in DW site server settings?

When I use the eCart checkout wizard I set the Site Address to: http://localhost:8000/develop_new/ ... maybe this is wrong? And I don't use any payment gateway.

My add to cart and shopping cart work very well, it's just the generated checkout that doesn't work.

I will create a new subdirectory and new DW site and try all over in a "clean slate" ... awaiting your response to the above,especially the eCart checkout wizard Site Address.

Sign in to reply to this post

Henry

I did testing today and I think I isolated the problem ... I ripped out the entire form from checkout.php and removed all the form item validations ($WAFV_Errors .= WAValidateRQ) from confirm_cart.php and the checkout page "worked" ... I didn't get any fail errors on submitting an empty form on checkout.php which directed to a page to confirm the order then it went to a success order page (without billing information, only cart data)

It would appear the form on checkout.php that eCart Checkout Wizard creates is the problem - note: the errors only come up when the street field and any field below it are entered.

A localhost config problem? I doubt it. My next step is to try to find out where exactly the problem is in the form.

Any advice/suggestion on debugging would be appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

If you want to set up a screen sharing session I can try to help you debug it.

My guess is that the code is having difficulty calculating the root folder or changing the working directory. I can't say why or where but I'd happily help debug it. If it isn't a server configuration issue I won't charge you for my time.

Sign in to reply to this post
Did this help? Tips are appreciated...

Henry

Going forward I will not use the eCart Wizard Checkout generated pages but will use them as a guide.

Maybe using WA more I can better understand how to debug the problem I have put in this thread.

So, for now I'll pass on your help to debug.

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...