mrengc Posted May 15, 2009 Posted May 15, 2009 I am editing the text of the privacy statement (english). I am doing this by modifying the appropriate DEFINE TEXT statement. However, it seems that there is a limit to the amount of text that can be entered. I reach a certain point and the page no longer loads and I get an error. Please help. thanks
FIMBLE Posted May 15, 2009 Posted May 15, 2009 You have probably deleted the surrounding single quotes, the text should have a ' at the start of the text and ' at the end Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
♥geoffreywalton Posted May 16, 2009 Posted May 16, 2009 Or you could be adding text that needs to be "escaped" Try entering the text without any funny punctuation marks. http://www.oscommerce.com/forums/index.php?showtopic=316799 Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
germ Posted May 16, 2009 Posted May 16, 2009 Here's a novel idea... Try reading your first post :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
FIMBLE Posted May 16, 2009 Posted May 16, 2009 maybe a second opinion was wanted !!!! ho hum Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
germ Posted May 16, 2009 Posted May 16, 2009 Ahhhh yessss... I imagine if Doctors GW, Nic, and Germ can't diagnose the problem, it's probably fatal. :o Which brings me to another "medical" question. Do you ever wonder what disease "cured" ham had? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
FIMBLE Posted May 16, 2009 Posted May 16, 2009 not too sure about that, but it must have been cleared up with oinkment :-) Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mrengc Posted May 16, 2009 Author Posted May 16, 2009 Sorry for the second post... I was wondering if there was a oscommerce limit on the variable or something. I remember reading that php variables are dynamic in size (not sure). No... I went through the text a couple of times and NO I am not using illegal characters or characters that need to be escaped. Basically this is what happens. 'I write something like this' -> Its ok and page loads fine 'I write something like this1' -> page fails!!!!
MrPhil Posted May 16, 2009 Posted May 16, 2009 Either you're 1) overlooking an apostrophe (') that needs to be escaped (\') 2) putting in an illegal character that makes PHP barf 3) cutting and pasting from a Microsoft word processor that uses "smart quotes" 4) using a brain-dead editor that's messing up something Any chance you could share your offending definition, or at least the smallest part of it that shows the problem?
♥geoffreywalton Posted May 16, 2009 Posted May 16, 2009 Why not post the entire privacy.php? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
mrengc Posted May 16, 2009 Author Posted May 16, 2009 Here is the nasty culprit: http://www.directgoodies.com/catalog/privacy.php This page will fail as soon as I finish the last word, which is "number". So by adding the letter r, it goes dead. I am not srue if this is a limit by my hoster. Will my host have a error log that I can diagnose this problem with?
mrengc Posted May 16, 2009 Author Posted May 16, 2009 As requested: <?php /* $Id: privacy.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('NAVBAR_TITLE', 'Privacy Notice'); define('HEADING_TITLE', 'Privacy Notice'); define('TEXT_INFORMATION', ' Privacy Policy<BR><BR> Information Collection and Use<BR> DirectGoodies.com is the sole owner of information collected on this site. We will not sell, share, or rent this information to any outside parties, except as outlined in this policy. We collect information from our customers to process orders and better serve you with pertinent information, such as order confirmations and order status updates. Information collected includes your name, shipping address, billing address, telephone numbers, e-mail address, and payment information. We also require you to submit a username and password of your choice for your future access to your account information. To safeguard that your user name and password remain confidential, DO NOT share this information with anyone. If you elect to receive our newsletter or special promotions, your contact information will be used for the delivery of these items.<BR><BR> Registration<BR> In order to process your orders placed on this website, you must first complete the registration form. During registration, you will be required to provide your contact information, which includes your name, e-mail address, telephone number and street address. This information is used to provide you with important DirectGoodies.com services such as automated order status updates via e-mail.<BR><BR> Order<BR> Most of the information collected in the registration process will be used to process orders. During the order process, you may have to provide financial information such as your credit card numbe '); ?>
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 Rather than worry about escaping characters from text by far the easiest/most efficient method is to use here doc. e.g. $text = <<<TEXT This is "some text" there's also some naughty characters in it yet it doesn't throw any errors. I can also interpolate $variables just like using "" to delimit the text. TEXT; define('TEXT', $text); The only restriction is that you can't use variables with a key reference ($variable['key']) and you can't use CONSTANTS because they will be read as pure text. This also lends here doc very well to javascript which can be a pain to escape. you can call the <<<TEXT TEXT; anything you like as long as that same phrase doesn't appear within the code and the closing TEXT; must be on a new line. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
mrengc Posted May 16, 2009 Author Posted May 16, 2009 I appreciate all the suggestions on alternative methods of escaping characters, but that is not helping with the problem that I am experiencing. This post is getting somewhat off topic.
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 I appreciate all the suggestions on alternative methods of escaping characters, but that is not helping with the problem that I am experiencing. This post is getting somewhat off topic. No it is not .. there is no limit on size .. you are getting errors because of exactly what is posted above. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
mrengc Posted May 16, 2009 Author Posted May 16, 2009 Not quite... didn't work! Again the problem is not escaping characters. There seems to be some odd limit.
germ Posted May 16, 2009 Posted May 16, 2009 As you may have noticed, we've arranged consultations from Doctor Phil and Doctor Fisher. :rolleyes: So what are you using to edit the file? :unsure: I was thinking maybe Dr. Phil hit the proverbial nail on the head: 4) using a brain-dead editor that's messing up something If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
♥geoffreywalton Posted May 16, 2009 Posted May 16, 2009 Most of the information collected in the registration process will be used to process orders. During the order process, you may have to provide financial information such as your credit card numbe '); ?> Wonder what caused it to cut off after numbe? Where does it cut off on the screen? Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 Very odd .. sorry I hadn't seen that post probably we posted almost at the same time. Could you post what the full text is "meant" to be please. And I also believe the cause to be the editor. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
germ Posted May 16, 2009 Posted May 16, 2009 BTW, Ray. Next time you log in could you swipe your: 1. Drivers license. 2. Medical card 3. Any major credit card across your screen so we can invoice you properly? :unsure: With FIVE doctors on the case, and it being a WEEKEND EMERGENCY and all, I'm thinking it'll spill over into six figures... :o I hope you're heavily insured... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
MrPhil Posted May 16, 2009 Posted May 16, 2009 the order process, you may have to provide financial information such as your credit card numbe '); OK, what happens if you use your editor to thoroughly clean out everything after "numbe" and before ');? Does it display OK then? I'm wondering if there's some invisible garbage in there. Then if you change "numbe" to "number", does it die again? That's not a terribly large "define" -- I've seen much bigger. So, what editor are you using, on what PC OS, and are you cutting and pasting from a word processor (which one)? Are there any indications from the editor that something's wrong, or does it edit and save OK? Is the problem only showing up when you actually run this code? By the way, is TEXT_INFORMATION unique to privacy.php? That definition is global, so if you have another definition of TEXT_INFORMATION "live" at the same time, the two might be stepping on each other!
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 Unless I'm missing something .. there are two pieces of crucial information that the OP never provided .. 1) What is he using to edit? osC file Mangler or a proper editor. 2) What error is it that he is getting (he mentioned "I get an error"). also .. 3) If using a desktop editor - if he adds the full text and saves to desktop does it contain the full text? everyone is finding this hard to diagnose as it is not making sense. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
mrengc Posted May 16, 2009 Author Posted May 16, 2009 Here is the full text: But as mentioned, it does not get anywhere close to the end. It fails on 'numbe' Privacy Policy<BR><BR> Information Collection and Use<BR> DirectGoodies.com is the sole owner of information collected on this site. We will not sell, share, or rent this information to any outside parties, except as outlined in this policy. We collect information from our customers to process orders and better serve you with pertinent information, such as order confirmations and order status updates. Information collected includes your name, shipping address, billing address, telephone numbers, e-mail address, and payment information. We also require you to submit a username and password of your choice for your future access to your account information. To safeguard that your user name and password remain confidential, DO NOT share this information with anyone. If you elect to receive our newsletter or special promotions, your contact information will be used for the delivery of these items.<BR><BR> Registration<BR> In order to process your orders placed on this website, you must first complete the registration form. During registration, you will be required to provide your contact information, which includes your name, e-mail address, telephone number and street address. This information is used to provide you with important DirectGoodies.com services such as automated order status updates via e-mail.<BR><BR> Order<BR> Most of the information collected in the registration process will be used to process orders. During the order process, you may have to provide financial information such as your credit card number and expiration date information. This information is used for billing purposes and to fulfill your order. If we have trouble processing an order, we will use this contact information to get in touch with you. To properly process your credit card information, we must share your personal and financial information with the merchant bank for authorization and approval. This process is protected by an enhanced security system. See the Security section below for more details on security measures and procedures. We do not share your personal and financial information with any third parties, except those specified in the Sharing section of this policy.<BR><BR>
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 Here is the full text: But as mentioned, it does not get anywhere close to the end. It fails on 'numbe' Privacy Policy<BR><BR> Information Collection and Use<BR> DirectGoodies.com is the sole owner of information collected on this site. We will not sell, share, or rent this information to any outside parties, except as outlined in this policy. We collect information from our customers to process orders and better serve you with pertinent information, such as order confirmations and order status updates. Information collected includes your name, shipping address, billing address, telephone numbers, e-mail address, and payment information. We also require you to submit a username and password of your choice for your future access to your account information. To safeguard that your user name and password remain confidential, DO NOT share this information with anyone. If you elect to receive our newsletter or special promotions, your contact information will be used for the delivery of these items.<BR><BR> Registration<BR> In order to process your orders placed on this website, you must first complete the registration form. During registration, you will be required to provide your contact information, which includes your name, e-mail address, telephone number and street address. This information is used to provide you with important DirectGoodies.com services such as automated order status updates via e-mail.<BR><BR> Order<BR> Most of the information collected in the registration process will be used to process orders. During the order process, you may have to provide financial information such as your credit card number and expiration date information. This information is used for billing purposes and to fulfill your order. If we have trouble processing an order, we will use this contact information to get in touch with you. To properly process your credit card information, we must share your personal and financial information with the merchant bank for authorization and approval. This process is protected by an enhanced security system. See the Security section below for more details on security measures and procedures. We do not share your personal and financial information with any third parties, except those specified in the Sharing section of this policy.<BR><BR> No you are quite right there is nothing wrong with the text at all. you haven't yet stated your method of editing and the error message. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
spooks Posted May 16, 2009 Posted May 16, 2009 Unless I'm missing something .. there are two pieces of crucial information that the OP never provided .. 1) What is he using to edit? osC file Mangler or a proper editor. 2) What error is it that he is getting (he mentioned "I get an error"). also .. 3) If using a desktop editor - if he adds the full text and saves to desktop does it contain the full text? everyone is finding this hard to diagnose as it is not making sense. Robert, clearly you are asking for highly sensitive information here that the OP will guard to the last, after all why should he provide any info that might gain any insight into his problem when he otherwise can keep so many experts guessing. You have laugh/cry sometimes!!! :lol: Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.