Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by MrPhil

  1. If you have a properly registered trademark that this guy is violating (infringing upon), your government may be able to help you out (depending on the type of trademark, whether he's in the same country, etc.). If you have a written contract with him, it should define if and how he can use your mark. If there is no written agreement, you're probably out of luck. In any case, you're usually going to have to spend the money to bring in a lawyer/attorney/barrister.
  2. Shopping cart cleanup

    Have you looked at https://apps.oscommerce.com/bY2eV&recover-cart-sales-for-osc-2-3-1 You might have to update it for modern osC releases. At least, it might provide you with a starting point.
  3. How Do I Edit "Contact Information" Page?

    1. Keep a copy of your site on your PC, as backup (if nothing else) 2. Learn to use text-searching tools such as grep (Linux) and findstr (Windows) to search for strings in all your files. They will tell you which file(s) a string is found in.
  4. No images at all? Check to see if your .htaccess has "hotlink protection" enabled (usually it's for image files) and whether you need to whitelist your store's domain. Are your image file permissions the same as for your PHP files? (readable by everyone)
  5. New to OSCommerce

    Could you clarify what you are looking to do? Are you creating a website to sell, trade, or otherwise distribute coupons (make sure you can legally transfer coupons... some are marked "non-transferable"!)? Or are you looking to sell other things on an osC store site and want customers to be able to use coupons? With such clarification, perhaps you could get some responses here. Note that if you want to start an osC store, be sure to use "Edge", and not the official distribution.
  6. Admin Area Having Errors

    Exactly which osC version are you using? The current up to date version is 2.3.4[.1]BS Edge, available on GitHub (see my sig). If you added old code (add-ons or custom) to it, that code may be looking for old "defines" such as table names, that have been removed from the current version. Other missing defines (now hard coded) may be causing you the other problems. Anyway, your starting point is to find exactly what version you're on, and whether you're making changes that expect all the old table and file name defines which are now missing. I think there is a "compatibility" add-on somewhere that puts these defines back in.
  7. login to admin area not working

    Did you install manually a copy from the GitHub repository? If not, you're using the "official" release. While the osC owner calls this "PHP 7 ready", supposedly all he did is suppress the "deprecated" warnings when running on PHP 7. I don't trust this version not to have subtle bugs when running at PHP 5.5 or higher. If you're just starting out, do it right by installing and using the "Edge" version (see my sig below). It's got a lot of bug fixes, is fully PHP 7.0 ready, has new features, and best of all is responsive. Run the following .php script to get information about your PHP installation, including the version: <?php phpinfo(); ?> Do not publicly give out the URL of your script or list all the output; it contains information that might be useful to a hacker. Regarding the subdomain showing in the URL, did you put the subdomain name (as subdomain.domain.com) in the configure.php files, rather than domain.com/subdomain/? If so, some hosts need an .htaccess redirect to take domain.com/subdomain/ and turn it back into subdomain.domain.com. I'm assuming you're using the term "subdomain" correctly, and not actually referring to an "add-on" domain (where you should see www.addonname.com instead of www.domain.com/addon/).
  8. login to admin area not working

    What version of osC, and what version of PHP? osC "Edge" is the only really up to date version that you should be using, known to work well up through at least PHP 7.0. Note that it's not the "official" osC release!
  9. Website gone strange!

    Also go into your hosting control panel and list all your files and look at their "last modified" timestamps. See if there are any recent changes to files that you can't account for. They could indicate a hack. Old versions of osC (and old PHP versions) are quite vulnerable to hacks.
  10. can oscommerce do digital downloads?

    Does Edge now include all the capability of Super Download Shop, or is that add-on still necessary for maximum security? (preventing D/L without paying, preventing multiple D/Ls, etc.) I see SDS hasn't been updated for quite a while (not since Tom Hayden died), so I'm guessing it's not Edge-compatible at this time.
  11. Website gone strange!

    As Jack said, the host probably upgraded PHP (and probably MySQL, too). How ancient an osC system are you on? The only current system is 2.3.4BS "Edge" -- anything older won't even run on current hosting PHP levels. BTW, what is your host running on, and did they just upgrade from what? Unfortunately, you can't install any site software just once, and expect it to run forever. Hosts update, and eventually your software will break, as incompatibilities accumulate. You need to make an effort to stay "reasonably" up to date (no more than a year or two behind the latest release).
  12. Detect if a product is special

    Have you confirmed that tep_get_products_special_price() returns a null and not a 0 or other unexpected result if the product does not have a special price? I'm always a bit leery of code that doesn't explicitly return a null, but relies on something of a side-effect of something not being set (possibly NULL default) in the database. See if == null or != null might be needed, rather than !== or === comparisons. When you say "it didn't work", that means that $ifspecial is never being set true, even when it should be? You might want to check if you need a different comparison for setting $ifspecial. That would be my best guess for where the problem is.
  13. You will have customers who are not paying close enough attention, or think that Purple Wodget is just a new name for Blue Widget. Therefore, I think it's risky to actually go (redirect) to another product's page. You are going to get complaints that you shipped the wrong product, or even legal action if a Purple Wodget is more expensive than the Blue Widget they had intended to buy. I think it's safest to stay on the Blue Widget page (can't order one), and offer links to other product pages, such as Purple Wodgets. Besides, you could potentially offer several alternative products (as links), rather than forcing just one. Another thought: what happens to Search Engine rankings if you auto-redirected to Purple Wodgets? Any penalties for "duplicate content" with Blue Widgets? Will Blue Widgets disappear from results?
  14. Some time ago, either Gary or Jack supplied code to do a math CAPTCHA, where the answer is supplied in the prompt, in case someone misunderstands the question or can't do math(!). I tarted it up a bit to give a variety of prompts, and a variety of answer formats, to discourage bots, and put it on a site Contact page. Unfortunately, I'm now getting an increasing amount of spam through this, which may mean that the bots have cracked it. I may try taking the answer out of the prompt to see what happens, if the amount of spam becomes annoying enough.
  15. Header Tags SEO quistion

    Is the complaint here that a paragraph of text is being placed under an <h2> tag, or that there is a place for <h2> header content and nothing was supplied? The former case is an abuse of a header tag, while the latter simply means that any missing header content should be dealt with in an appropriate manner (e.g., suppress the <h2> output). I agree with Daan that a multiline description should simply be a paragraph, while a short single line could be within <h2>. What is the intent here?
  16. I would be careful about actually redirecting to another product. A customer might not be looking carefully, and ends up ordering a Purple Wodget when they had been intending to purchase a Blue Widget. I think it would be sufficient to go to the old page, and have a very distinct "No longer available" notice, with links to one or more suggested replacements. That might be done with a new "redirect" routine that adds the notice at the top of the product page, or just manually coded into the discontinued product's HTML description.
  17. Fatal error after server crash

    If you're all the way back on osC 2.3.1, I'm not sure it will run with even PHP 5.6, much less 7.0. No reputable host is going to routinely offer anything earlier than PHP 5.6 (which goes out of support at the end of 2018), so you need to think about getting up to "Edge" ASAP, where you can use PHP 7.0 and MySQLi.
  18. What do you mean by "mandatory"? Are earlier versions of reCAPTCHA going to become unsupported? Be aware that various "CAPTCHA" schemes, including reCAPTCHA, are no longer very useful. The spammers can easily defeat them, and cranking up the difficulty high enough to stop most bots means that almost all humans are also blocked! You also have to be careful that visually impaired/blind people aren't excluded from your store, or you could face discrimination charges for failing to make "reasonable accommodations". Unfortunately, almost any anti-bot challenge scheme easy enough for most people to pass seems to also be easy for bots to pass.
  19. Fatal error after server crash

    Run the following script (.php file) <?php phpinfo(); ?> and examine the output to see whether MySQL and/or MySQLi are enabled. Any PHP built in the last decade should support MySQLi, while recent PHP builds may not have MySQL any longer. You should have at least one of them available, or your host has fallen down on the job. By the way, do NOT give out the file name (URL) or list the results publicly, as it contains information that could be used to hack your site. Recent osC versions prefer MySQLi, but will run with MySQL. If you have an ancient osC version (e.g., 2.2), it will support only MySQL. If your host no longer offers MySQL, your only choice is to upgrade to the current "Edge" release.
  20. Is v2.3.4.1 compatible with php 7.0

    I'm not going to call "PHP 7 compatible" if all that's been done is to sweep "deprecated" errors under the rug. These are going to break at some later PHP release (when old features are finally removed), and customers will be complaining that osC is a POS. It may well work (more-or-less) with 7.0, but I'll bet it will break in some manner further down the line, as deprecated features are removed or subtly changed. In my book, an application is "compatible" when the code has been fixed to not use deprecated features at all, as "Edge" presumably has been. I was under the impression that's what HPDL had spent all that time doing, but evidently not.
  21. Is v2.3.4.1 compatible with php 7.0

    What?! Are you telling me that Harald merely suppressed reporting of "deprecated" errors, rather than truly updating to PHP 7? That's not very good news. I will have to go back to telling people that only "Edge" is PHP 7 ready.
  22. 1.280? Are you sure that's an osCommerce version, and not some third party's template version? More likely it's a template on osC 2.2MS2 (still quite ancient). Anyway, the gist of it is that you should install osC 2.3.4[.1]BS "Edge", so you have an up-to-date version that is PHP 7 ready and is Responsive (mobile friendly). If you have product and customer data you want to preserve, you can migrate your database over (as well as product images). If you're really at that old of osC version, there are no tools and it will have to be done manually (compare the schemas [table layouts] for both versions, and update your DB to match the new schema, either via phpMyAdmin, or edit the .sql dump). If you're currently on some template, that may be the best way to do it anyway, as conversion tools may not work on a non-standard DB. Replicating function of add-ons or a template is something that you (or someone experienced with this kind of stuff) will have to deal with on a case-by-case basis. There are a number of themes (most are $) for "Edge", or you can add custom CSS to the user.css file to tweak the appearance.
  23. Is v2.3.4.1 compatible with php 7.0

    Hmm. I seem to recall his saying that the whole reason for the .1 release was to install and run on PHP 7. If you have found incompatibilities with PHP 7, he should be alerted.
  24. Is v2.3.4.1 compatible with php 7.0

    Didn't HPDL specifically state that was PHP 7.0-ready? I've been telling people it is. Fast-CGI, I don't know.