Guest Posted February 12, 2003 Share Posted February 12, 2003 I am guessing that this is a pretty easy one to answer but I'm a little lost. I am using Worldpay 4.0 V1.0 and all works fine exept the callback. I am very new to osCommerce and WP but the concept I do understand. The problem I have is the URL to enter into the WP admin screen. I have followed the instructions in the install.txt file that appear to tell you to place the wpcallback.php file in the root. In the package however the file is located in /catalog. If placed in the root I get the following error:- Warning: main(includes/application_top.php) [function.main]: failed to create stream: No such file or directory in /home/www/deignerc/wpcallback.php on line 15 Fatal error: main() [function.main]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/local/lib/php') in /home/www/deignerc/wpcallback.php on line 15 I assume this is because application_top.php is not in the root. I have tried putting wpcallback.php into the /catalog folder and into the /catalog/includes directory but although the error msg is gone I don't get a callback page? Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2003 Share Posted February 12, 2003 Just to clarify the above question. I am using tep_snapshot-20030208.zip The WorldPay module is :- Worldpay V4.0 - Version 1.3.zip Hope that makes the problem clearer. Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2003 Share Posted February 13, 2003 Any suggestions please? It's driving me crazy trying to figure this one out. Link to comment Share on other sites More sharing options...
Hyzepher Posted February 14, 2003 Share Posted February 14, 2003 freerap check that you have the following configured proberly at your worldpay account. Check Callback Enabled? - ie ensure that it is ticked. Check Use callback response? - ie ensure that it is ticked. Hyzepher Link to comment Share on other sites More sharing options...
Ian-San Posted February 14, 2003 Share Posted February 14, 2003 I have followed the instructions in the install.txt file that appear to tell you to place the wpcallback.php file in the root. If I read you right, you are putting the file in the wrong place. In this case, 'root' means the same place as your default.php (or index.php) file in the catalog directory (if you have one). The error must be because this file tries to load application_top but cannot due to it being in the wrong directory. Normally, you would not have a catalog directory unless you are using a launch page. Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2003 Share Posted February 14, 2003 Thanks for the reply. If I understnd you correctly then, the wpcallback.php file should be in /catalog/wpcallback.php and the URL entered in the WorldPay admin screen should be www.mydomain.com/catalog/wpcallback.php I am also curious about your comments on not having a catalog directory? I followed the install instructions at http://guide.oscdox.com/ which I was under the impression instructed you to create a catalog directory when doing the install Link to comment Share on other sites More sharing options...
Ian-San Posted February 14, 2003 Share Posted February 14, 2003 If you use a catalog directory you either need to show your url as being: www.yourdomain.com/catalog/ or use a 'click here to enter' type launch page at: www.yourdomain.com or use a redirect that search engines hate. So doing away with the catalog directory and having your default.php (or index.php) file at the highest level possible is clearly the best thing to do - I really dont know why anyone would recommend anything different? osdox is very good - but extra to the project - so I guess they just went for simplicity. You can also place the admin directory as a sub-directory of your domain with no problem if you want - it just needs to be within your domain or you will get upload permission problems. Ian-san Flawlessnet Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.