Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I have managed to nearly get this contribution working, but am stuck on one last point...I can access the admin section no problem, and access all the paypal ipn test pages etc but I can not view my actual shop :huh: By this I mean when I try to view my catalog I get <br>Parse error: parse error in /home/x/x/xxxxxxxx/public_html/catalog/includes/application_top.php on line 256

 

Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/x/x/xxxxxxxx/public_html/catalog/index.php on line 33

 

Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='') in /home/x/x/xxxxxxx/public_html/catalog/index.php on line 33<br>Can someone help me please?

 

Cheers

Posted

Look in application_top.php around line 256...did you make any changes around there? a missing semicolon on like 255 maybe? Also, make sure there are no extra spaces or lines after the last ?> at the bottom of the file. If everything seems correct, then check in your includes/configure.php and make sure DIR_WS_LANGUAGES and FILENAME_DEFAULT are correctly defined there. Again, check for spaces and lines at the bottom after the last ?>. Your cart shouldn't just break on its own, unless you made changes around there. You could always load your backup files, make sure everything works and then try to install again.

Posted

I added

// begin PayPal_Shopping_Cart_IPN

???require_once DIR_WS_MODULES . 'payment/paypal/functions.php';

???paypal_check_order_status();

// end PayPal_Shopping_Cart_IPN <br>

to line 255 in "application_top.php", this seems to be ok, right?

 

I haven't touched "public_html/catalog/index.php on line 33" at all.

 

 

I can't find"DIR_WS_LANGUAGES/FILENAME_DEFAULT" in the includes/configure.php only this "define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');"

 

Any ideas?!?

Posted (edited)

try the require statement as:

 

require_once (DIR_WS_MODULES . 'payment/paypal/functions.php');

 

I don't think that should be the problem but theres no harm in trying.

 

However, I see in your code there is a "<br>" in there which shouldnt be there. This leads me to believe that you copied and pasted the changes from the install.html files. Sometimes when copying and pasting from html, you get extra html tags, spaces, and other extraneous information instead of just text. I suggest going through all the lines of code where you copied and pasted from the included html file to see what is actually there.

 

 // begin PayPal_Shopping_Cart_IPN
  require_once DIR_WS_MODULES . 'payment/paypal/functions.php';
  paypal_check_order_status();
// end PayPal_Shopping_Cart_IPN <br>

 

I don't think there should be a <br> there correct?

Edited by safoo
Posted

The "<br>" is not in the script, i typed it in this forum, my mistake. Still can't figure this out. Has anyone else had this problem? Would it be easier to just start from scratch do you think? With a new install of Os?

Posted

Sorted that out, the brackets were missing and some extra spaces.

 

Next problem I have discovered is this. When I do a test order and look at the order via admin, the customers details are not there, all the items ordered are but no name email etc..?I do have some symbols on the page they look like a y with an apostrophie above it. Any ideas?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...