Found it! Didn't catch the common.conf path stuff on the first go through![]()
Found it! Didn't catch the common.conf path stuff on the first go through![]()
Ok, I thought I had everything working, and the cart/checkout is doing fine after the .conf file updates.
The last problem I have is that I can't log in to the MOF admin. It gives me a 500 Internal Server Error but I don't see anything in the cgi error logs. Is there anything related to changing the install path of this script that could cause a server error when trying to log in to the admin at
/admin/mofcc.cgi
or
/admin/uadmin.cgi
Here's an extract from a functioning /cgi-bin/mcart/common.conf file.
You don`t say whether you're operating under ssl
But I have had to change some paths on some installtions to accommodate different server mappings.
Maybe this will give you a steer - if not we may need to examine the /cgi-bin/mcart/lib/mof.conf file.
=============
# server name, no http://www
$domain_name = "www.yourwebsite.com";
$mail_merchant_name = "your info";
$merchant_addr = '147 High Road Your Town';
$merchant_csz = 'Your City. BH78 6FF';
$merchant_phone = '00000000';
$merchant_fax = '';
# may set multiple addr in @mail_merchant_addr
@mail_merchant_addr = ('youremail@address.com');
$mail_return_addr = 'youremail@address.com';
$mail_site_url = 'http://www.yourwebsite.com';
# mail to addr for problems
$merchantmail = 'youremail@address.com';
# This is an HTTP only, where HTTP is needed in pkg, even if
# both Front & Back end cart are running under HTTPS (SSL)
# example: Home page link is usually HTTP, even from HTTPS page
$mvar_strict_http_web = 'http://www.yourwebsite.com';
$mvar_strict_http_mcart = 'http://www.yourwebsite.com/cgi-bin/mcart';
# Note: The forward slash appears accurate with XP & Linux
# CART FRONT may be HTTP or HTTPS
# Include www (if applies)
# NO trailing slash
# Leads to /mofcart/all-files.* .. (/mofcart/filename) is appended in configs
$mvar_front_http_web = 'http://www.yourwebsite.com';
# This is the HTTP/HTTPS full URL to the ../mcart Directory root
$mvar_front_http_mcart = 'http://www.yourwebsite.com/cgi-bin/mcart';
# absolute server path to ../mofcart
$mvar_front_path_web = '/home/a/r/yourserveraccount/public_html/';
# absolute server path to ../cgi-bin/mcart
$mvar_front_path_mcart = '/home/a/r/yourserveraccount/public_html/cgi-bin/mcart';
# NOTE: If not splitting cart between HTTP/HTTPS, then back same as front
# Leads to /mofcart/all-files.* .. (/mofcart/filename) is appended in configs
$mvar_back_http_web = 'http://www.yourwebsite.com';
# This is the HTTPS full URL to the ../mcart Directory root
$mvar_back_http_mcart = 'http://www.yourwebsite.com/cgi-bin/mcart';
# absolute server path to ../mofcart
$mvar_back_path_web = '/home/a/r/yourserveraccount/public_html';
# absolute server path to ../cgi-bin/mcart
$mvar_back_path_mcart = '/home/a/r/yourserveraccount/public_html/cgi-bin/mcart';
Thanks for posting that config file, it looks pretty similar to what is in my common.conf file which is located in /cgi-bin/mcart/common.conf
There are some funky differences, it looks like the person who set this up used the subdomain on the host instead of the actual domain in some spots. I tried to make it more like the sample you posted and there were https warnings.
Anyway, what is posted below is working for the cart right now. People can check out. The only problem is we can't log in to the admin, there is a server error. It's probably a path issue somewhere that I can't find.
Code:# ==================== MOFcart v2.5.10.21.03 ====================== # # === COMMON PATH VARS ============================================ # # === REMOVAL OF COPYRIGHT NOTICE IS PROHIBITED =================== # # === MERCHANT ORDERFORMcart ver 2.5 (PKG: 10-21-03) ============== # # server name, no http://www $domain_name = "www.speakertone.com"; $mail_merchant_name = ""; $merchant_addr = ''; $merchant_csz = ''; $merchant_phone = ''; $merchant_fax = 'None'; # may set multiple addr in @mail_merchant_addr @mail_merchant_addr = ('email@email.com'); $mail_return_addr = 'email@email.com'; $mail_site_url = 'http://www.speakertone.com'; # mail to addr for problems $merchantmail = 'orders@speakertone.com'; # This is an HTTP only, where HTTP is needed in pkg, even if # both Front & Back end cart are running under HTTPS (SSL) # example: Home page link is usually HTTP, even from HTTPS page $mvar_strict_http_web = 'http://www.speakertone.com'; $mvar_strict_http_mcart = 'http://www.speakertone.com/cgi-bin/mcart'; # Note: The forward slash appears accurate with XP & Linux # CART FRONT may be HTTP or HTTPS # Include www (if applies) # NO trailing slash # Leads to /mofcart/all-files.* .. (/mofcart/filename) is appended in configs $mvar_front_http_web = 'https://speakerman.powweb.com'; # This is the HTTP/HTTPS full URL to the ../mcart Directory root $mvar_front_http_mcart = 'https://speakerman.powweb.com/cgi-bin/mcart'; # absolute server path to ../mofcart $mvar_front_path_web = '/home/users/web/b1229/pow.speakerman/htdocs'; # absolute server path to ../cgi-bin/mcart $mvar_front_path_mcart = '/home/users/web/b1229/pow.speakerman/htdocs/cgi-bin/mcart'; # NOTE: If not splitting cart between HTTP/HTTPS, then back same as front # Leads to /mofcart/all-files.* .. (/mofcart/filename) is appended in configs $mvar_back_http_web = 'https://speakerman.powweb.com'; # This is the HTTPS full URL to the ../mcart Directory root $mvar_back_http_mcart = 'https://speakerman.powweb.com/cgi-bin/mcart'; # absolute server path to ../mofcart $mvar_back_path_web = '/home/users/web/b1229/pow.speakerman/htdocs'; # absolute server path to ../cgi-bin/mcart $mvar_back_path_mcart = '/home/users/web/b1229/pow.speakerman/htdocs/cgi-bin/mcart'; # Note: all DATA should map to the Front End Filespace # ARES, CC, Temp orders, must use same data files from Front To Back end # This is only used to push possible ./lib/ reference under SSL to @INC # WHERE IS THE LOCATION OF YOUR SENDMAIL ? # You MUST edit this to match where it is on your server # Ask your server admin where sendmail is if you don't know # IMPORTANT: You must include any switches and settings # IMPORTANT: exactly as they should be in your mail program line # EXAMPLE: A typical sendmail location is: # EXAMPLE: /usr/sbin/sendmail -t # EXAMPLE: /usr/lib/sendmail -t # EXAMPLE: Use the "-t" switch - it is a needed security switch # EXAMPLE: qmail without -t switch # EXAMPLE: /var/qmail/bin/qmail-inject $mail_program = '/usr/sbin/sendmail -t'; push(@INC,"$mvar_front_path_mcart/lib"); push(@INC,"$mvar_back_path_mcart/lib"); 1; # END MERCHANT ORDERFORM Cart ver 2.5 # Copyright by RGA 2000-2003
Last edited by jalin; 01-25-2011 at 01:42 AM.
This looks about right, and yes it could be a path issue, but you seem to have worked out where the path settings are set and may spot something peculiar to your server setup (which can be a bit strange with some of the more paranoid hosts) - servers used to be a lot more standardised when this app was written as I recall.
I'll have a think about other reasons why your'e getting the server errors, but don`t discount the possibility that someone has "incorrectly" modified one of the cgi files locally for some reason - which unless they documented the changes would be very difficult to spot. You know the sort of thing missing syntax etc..
If you suspect this may be the case it may be worth replacing certain files from /cgi-bin/mcart/copy - if only to eliminate the possibility of rogue .cgi files.
jalin (01-25-2011)
That's a really good suggestion and unfortunately there is no backup and no installation files anymore.
It probably would be easiest to just reinstall the core files but I can't find a 2.5 install package anywhere.
For an install package - Check the link in post #38 of this thread - but not for about an hour from the time of this post as I'll need to reactivate it...
Great, I'll give that a shot when it's ready. Thanks for helping out![]()
Actually, no need... it was a funky htaccess that needed fixing, the script was doing ok. Thanks all the same![]()
Bookmarks