Jump to content
Latest News: (loading..)

MrPhil

Members
  • Content count

    7,930
  • Joined

  • Last visited

  • Days Won

    102

Everything posted by MrPhil

  1. MrPhil

    Admin Error Message

    http://forums.oscommerce.com/topic/350012-error-in-all-page-submits/page__gopid__1467801entry1467801 Your english.php file at or near line 337 is outputting text to the browser. As that's the end of the file, most likely you have a blank or two after the closing ?>. Clean up the file.
  2. MrPhil

    CompareMyPrice

    You must have missed a step somewhere. Assuming the file isn't named FILENAME_comparemyprice, you need to define that macro (name) somewhere (includes/filenames.php?): define('FILENAME_comparemyprice','comparemyprice.php'); or whatever the actual name is. Is there a file includes/modules/comparemyprice.php or something similar?
  3. MrPhil

    Adding a simple meta tag

    Unfortunately, each page has its <meta> tags hardcoded. For each page where you want this new tag, you'll have to manually add the code in the <head> section of that page. Maybe there's an add-on to insert a new <meta> tag more easily? To do it manually, in /index.php, look for <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> and insert your BING <meta> tag right after it. Repeat for any other PHP files you need it in. Look at http://addons.oscommerce.com/info/5497 , but it appears that most of the "meta tag" contributions (add-ons) are oriented towards general SEO. I took a quick look, but didn't see anything else that sounded like a general meta tag inserter.
  4. MrPhil

    How'd you hear about is report.

    Your SQL query was select 0 SELECT ci.... Where did that "select 0" come from? Was there some other piece of code trying to build a query, starting with "select $value"? Is $referrals_query_raw what's fed to mysql_query(), or is there further processing that adds more stuff? Sorry to not get back to you before, but today is the first time that the forum has let me see your replies!
  5. MrPhil

    phpThumb

    I'd be concerned about trying to use file names such as "Diapason actie 10 + 1 gratis.jpg". Even if you're on a Windows server, where blanks may be allowed, the Web doesn't particularly like blanks and special characters in names. Do you have any control over the names? If you do, remove '+' or change it to 'plus', and change blanks to underscores: "Diapason_actie_10_plus_1_gratis.jpg". A browser sending this name back to the server is less likely to have problems.
  6. I don't know this particular contrib (add-on), but you could certainly do something about it, if the author won't respond to your question. You could temporarily re-enable register global variables, if your host will let you. If it functions properly then, you know that's the problem. Even if you can't try that, you can look through the contrib's code and see if there are any variables that just seem to be expected to appear "out of nowhere". You need to find all such variables (anything not explicitly initialized before being used, is suspect) and ahead of their first use, define them: $varname = $_REQUEST['varname']; That should fix it. There are other PHP 5.x problems that you might hit. If this contrib doesn't use the "compatibility layer" to define "long array names" (e.g., $HTTP_POST_VARS), code might break. If you run at PHP 5.3+, you'll get lots of warnings about "deprecated functions". And finally, if you're going from MySQL 4 to 5 at the same time, you need to fix the LEFT JOIN problem.
  7. MrPhil

    Particular product data

    There are add-ons to handle custom attributes, with price changes (+ or -) for each. Is that what you're looking for? Look through the contributed add-ons for "attribute".
  8. I realize that this is a development board. What I'm saying is that for the vast majority of osC users, including almost all those who sign up for this site's forum, they don't want to have to go fishing through github to get the latest and greatest. They want a packaged, tested, approved, endorsed, production-ready (in the case of 2.2) release that they can put on their site and be confident that it will work and solve most of their problems. Most osC users are not developers or even programmers. They want something that works out of the box. They don't want to fool with the innards of osC -- at most, they'll install an add-on to fix something or gain new function, but that's pushing it for most store owners. So, telling people reporting problems with 2.2 (problems that have been known literally for years) to go to github to get the latest and greatest just doesn't cut it. They want an RC3 (or better, Gold) that they can install/update in a clean and predictable fashion, so that they can install their add-ons, preserve their product and account base, and be up and running quickly. After all, most osC users are not here to indulge a programming hobby. They're here to run a business. It's obvious that you don't understand either the abilities or the mindset of most osC users -- they regard osC as a tool to get a needed job done, not as a "fun" project. They need "out of the box" solutions that work, or they'll go elsewhere.
  9. Sorry, but github updates don't count. What counts is only a formal release, be it 2.2 RC3 or 3.0 Beta 1. This is what Fantastico and other packaging services will pick up. This is what appears under "Downloads" on this site. This is the only source of osC that most people will ever try to use -- they don't want to mess with live development repositories (or what appear to be unstable development). In short, you can't just leave "the latest osC" on github and expect everyone to use it.
  10. Unfortunately, the page "overhead" is hardcoded in each file, rather than being included from a common source. And, it will take several include files to handle it, because some files have Javascript or additional <meta> tags to insert into the <head> section. It would have been a much cleaner design to include all this stuff in an include or a function call, but for whatever reason, no one ever bothered to. Even more unfortunately, don't count on any more development in version 2.2. We've been stuck at RC2a for years now. RC3 was promised to be released a month ago, but I'm not holding my breath. All development effort, such as there is, appears to be going into 3.0, leaving 2.2 abandoned. Such is life. I'm sure Mark or Harald will respond in some fashion to deny this, but the fact is that no progress has been made on 2.2 in years. They can claim all they want that 2.2 is still under development, but until fresh releases appear, I'm not believing it.
  11. MrPhil

    phpThumb

    In your browser, View > Page source and see where it is looking for the images. Maybe the database still has an old domain name or URL? Are you producing images on-the-fly, or just showing canned images? If on-the-fly, are you missing any PHP libraries, such as GD, used to manipulate images? You've got to do some detective work here. Are you getting any errors logged anywhere on your site? Do you have "hotlink protection" enabled and your site isn't in the whitelist of allowed sites? Were image names changed while going from one server to another? E.g., underscores became hyphens, or everything folded to lower case? Was your previous server on Windows and your new one Linux, and you never bothered to consistently capitalize names, such that a file is "Product_1234.jpg" and the reference in the database is "product_1234.jpg"? Lots of things could have happened, and you've given us no information to work with.
  12. MrPhil

    Particular product data

    Give an example of "what's different" about this product. Your description was way too vague.
  13. MrPhil

    FATAL ERROR: register_globals

    Your next step is to ask your hosting service for specific instructions on how to enable register global variables. There might be other steps needed besides making a php.ini file.
  14. MrPhil

    FATAL ERROR: register_globals

    You are running an ancient version of osC that requires that "register global variables" be enabled (on) in order to function. Your host has upgraded PHP to a new version, or at least, disabled register global variables because they are a security problem. Hopefully they will allow you to re-enable register global variables for your site. Usually this involves editing (or creating) a file /php.ini with the contents register_globals = on Other things may have to be done, depending on the specifics of how your server is set up (such as if it's running suPHP). The best long term solution is to upgrade to the current osC, version 2.2 RC2a. It does not require register global variables to be on. If your host will not allow you to enable register global variables, you will have to do this.
  15. MrPhil

    Options as Images error

    Next time please use the code tag, so lines aren't wrapped and indentation isn't destroyed. "Unexpected end" usually means that you're missing a closing brace: } somewhere, and PHP thinks it's still in the middle of a compound statement { ... } when it hits the end of the file. This looks suspicious: <?php }//Options as Images.Add the curly bracket as shown on the next line} ?> Try changing it to <?php }//Options as Images.Add the curly bracket as shown on the next line } ?>
  16. MrPhil

    How'd you hear about is report.

    All I can figure is that there is no customers_info_date_account_created field in table customers_info. Check that -- a missing field would probably mean that the alias (date_account_created) wouldn't be created, leading to the error.
  17. MrPhil

    How'd you hear about is report.

    Your variable $date_range_query is improperly constructed. It is 'and date_account_created>=..., leading to a bad SQL query ...WHERE and date... . You want to put that leading 'and' on it only if there is already something in the clause: $date_range_query = ''; if (isset($_GET['date_from']) && $date_from=fmt_date($_GET['date_from'])) { if (strlen($date_range_query) > 0) $date_range_query .= 'and '; $date_range_query .= "date_account_created>='$date_from' "; } ... etc. ...
  18. MrPhil

    New version of OSC2?

    OK, are we talking 2.x or 3.x project? If someone puts effort into keeping 2.x going, is their work going to be ignored? Or will a 2.2 Final and maybe a 2.3 appear? Fair enough. 3.0 has been in "alpha" for years. It should be moving along (ideal world, I know...) at a much faster clip. One can draw the (hopefully erroneous) conclusion that development has seriously bogged down. 2.2 has been stuck at a Release Candidate for 2 years now. Some sort of 2.2 final (perhaps with only the most serious security bugs addressed) right now would show the world that osC is still alive and actively supported, and visible movement on 2.3 would be encouraging (again, to show that osC is alive and well). Of course, if osC 3.0 were believably "just around the corner", there would be no call for a 2.3 (except a few years down the road as a maintenance release, with security patches). If there is to be a 2.3, I wouldn't envision any major architectural changes (save for CSS-driven tableless layout), leaving such improvements to 3.0, whenever we see that. I'm not trying to attack anyone personally, including you, but I'm just passing on what I hear all over the place. People looking for information on shopping carts are advised that osC is hopelessly stuck in the mud and doesn't appear to be supported at all, and that they should look at "more modern" shopping carts. I.e., ones that are actively developed and supported. It's Code Blue. Get those paddles out and start shocking the patient. I hope something can be done before it's too late.
  19. MrPhil

    New version of OSC2?

    Sorry, but I must disagree. Stating that a product is supported, and actually delivering updated code on a regular and timely basis, are two different things in my book. As they say, the proof is in the pudding. If 2.2 RC2a came out almost two years ago, we should have seen 2.2 Gold (final) at least 18 months ago. 2.3 alpha 1 should have been out no more than 6 months ago. If you don't have the development staff to either bring out a final 3.0 now, or finish cleaning up 2.2 Gold and move on to a badly needed 2.3 (with all the non-security stuff I listed), you should know that there are a number of people willing to volunteer their time for a community-support 2.3. If the current developers will not allow that, I'm sure there's enough support to fork an independent project based on osC 2.2. It would be nice to keep it in the osC family, but the product is falling farther and farther behind the competition. It is widely regarded as difficult to use, difficult to maintain, more or less obsolete, and unsupported. If you're not going to have the final 3.0 out the door Real Soon Now, a 2.3 is needed to maintain osC's place and reputation.
  20. MrPhil

    New version of OSC2?

    There are a lot of improvements -- security-related and otherwise -- that could go into osC 2.2 final or perhaps skip that and go to 2.3. Besides security fixes, osC should be shipped with the "deprecated" PHP functions fixed, MySQL 5 compatibility, and a few known bugs fixed (e.g., navigation). Despite the occasional promise that a final 2.2 will be released, it has become apparent that osC version 2 is unsupported. My suggestion would be to fork a new product based on osC. It could include not only all known needed fixes, but also cleaner coding (especially SQL calls), separation of product files from store files, and most importantly, CSS-driven tableless layout. There is a downside to massive code changes -- many add-ons (contributions) will no longer work (or at least, install automatically). That is just a bullet that we'll have to bite -- the forked product can invite add-on authors to update to the new code, or (license permitting) do it ourselves for the most important add-ons. I would not wait for a final 2.2, nor would I wait for version 3.0. 2.2 has been in Release Candidate 2a for what, 2 years now? There are serious bugs that have been known, and left unpatched, for 4 or 5 years. I would have to say that, despite promises of a final 2.2, that we should not count on seeing one. As for 3.0, how long has it been in alpha? 2 or 3 years, anyway? Its development group must be way understaffed (rumor has it that there are only two part-time developers); it should be moving along much faster than that. A "release candidate" should be out for a maximum of 3, maybe 4 months, before going on to the next level. The entire sequence of "alpha" releases shouldn't take more than 6 to 8 months; same for "beta". It's clear that osC development has ground to a halt. If you want to discuss hosting a fork of osC (unless HPDL and the other developers speak up that they are willing to host it here as a community-developed version 2.3), please contact me offline. I have some names of other people who might be interested in contributing. An access-controlled code repository is needed (for authorized developers to change code, and a larger group of read-only testers), as is a discussion group for architecture and features.
  21. MrPhil

    Can anyone help me?

    While waiting for the author to get back to you, look at -- 500 error causes http://forums.oscommerce.com/topic/345637-internal-server-error/page__view__findpost__p__1442374 Maybe you'll find why your restored files are broken (did you remove the add-on, or did you restore the full files?). You don't have your own "error handler"/"error document"/"error page" files defined, and the system is using the default handlers when you get, say, a 404 error (/catalog/ not found). Then it throws a 404 that it couldn't find the 404 handler! Not critical, but if you'd like to get rid of these extra 404 messages, define your own error handlers. To minimize the number of unnecessary error messages cluttering up your account log, you should supply a set of Error Pages for your account: /400.shtml, /401.shtml, /403.shtml, /404.shtml, and /500.shtml at a minimum, along with a /robots.txt (requested by every search bot) and a /favicon.ico (requested by every browser). If you have cPanel, it has a button to produce the *.shtml Error Pages ("Error pages") -- you can customize them all you want with additional HTML code. /robots.txt can be empty until you figure out what you want to put in it. Any "paint" program can produce a favicon for you (16x16 ICON format). Having these seven files will greatly reduce the clutter in your system error log, enabling you to see real errors that you need to address.
  22. MrPhil

    error: HTTP 500

    Checklist: http://forums.oscommerce.com/topic/345637-internal-server-error/page__view__findpost__p__1442374
  23. MrPhil

    Offline payment processing without fees

    I guess you're between the proverbial rock and hard place. Can you get him to at least sign a legal contract that he holds you harmless if his customers or bank come after him for damages due to insecure or fraudulent credit card handling? You warn him in writing that you understand that what he's doing is improper and he takes all responsibility for it. Before springing that on him, express your concern and get him to tell you exactly what's he doing to handle credit cards now. Maybe you misunderstood him? Maybe he doesn't realize he's violating his merchant account agreement? You've got something on him if he refuses to sign, or holds back payment -- you can go to his bank and rat on him. That's the Nuclear Option, but it's possible. I am not a lawyer, so I can't advise you on any specific steps. Just make sure you have some leverage so you can get paid for what work you've done, but don't get yourself in trouble for failing to uphold your end of the contract (refuse to finish the job). Your personal safety has to be considered, too. I suppose you could just keep quiet, do the work he asks for (and get paid), wash your hands of this client, cross your fingers and hope that nothing bad happens to you, and feign ignorance if his bank comes after you. Like I said, you're in an unenviable position. At least with another client, you'll have some knowledge about problem areas. I tried going to the safe2pay.net site, and can't get in to see what it's about. That doesn't give me the warm fuzzies. There are a number of sites which claim to use "Safe2Pay", but they don't say if it's .net or something else.
  24. MrPhil

    Offline payment processing without fees

    Your friend is probably going to be in BIG, BIG trouble with his bank when they discover what he's doing. Most merchant accounts issued for brick-and-mortar stores are not supposed to be used for eCommerce (much higher fraud rate is reflected in higher charges). I don't understand his assertion that he pays no fees to process credit cards -- if he has some sort of merchant account, he must be paying fees for it somewhere! Maybe the fees are buried in other charges, or lack of interest on the balance, or are a flat fee for a low-volume operation, but they're in there somewhere. osC comes with a generic credit card module, but the common advice is not to use it -- its security is very poor, and the site will fail any PCI audit. If you want to use a payment gateway and merchant account, you should use a proper one associated with a specific vendor, and follow all the rules. Or, he can use a third-party payment system such as PayPal to handle credit cards, without all the PCI and security hassle. You are putting yourself at financial risk if you implement an insecure payment system for your friend. Defrauded customers, his bank, or he himself could come after you with a lawsuit (that you failed to inform him of the risk, yadda, yadda, yadda). My suggestion would be to steer clear of any such shortcuts. I've never heard of a legitimate outfit that processes credit card transactions for free!
  25. MrPhil

    Electronic Delivery Shipping Option

    Maybe you've just been looking for the wrong keywords. "Digital Downloads" are already built into osC. You need to enable them, and do some other stuff in setup. When an order is placed, you have to manually OK it (that payment has been booked) before the link will be sent to the customer.
×