Jump to content
thirty bees forum

datakick

Administrators
  • Posts

    3,144
  • Joined

  • Last visited

  • Days Won

    497

Everything posted by datakick

  1. @Briljander handling invalid inputs is a really hard problem for us developers. What should we know when we know for sure that the input is incorrect? When we know that the caller made a mistake, that there is more definitely a bug? Shall we try to recover somehow, or just give up? From my personal experience, recovering does not usually work very well. That's because we don't know the context, what the caller expects, etc. For example, take a division by zero. I have seen many programs that just bails the caller out ty returning zero in that case. You must agree that's not a good solution, since it will most likely cause other problems later. What if the returned number is used to multiply the cart total? The total result would be zero as well, and merchants could quite easily loose real world money because of such bug. It's very similar in this case. TB core doesn't know what the caller use the result for. But we know that such key can not exists in the db. Can we simply return null? Since we don't know what the result is used for, it would be a real gamble. Again, this might very easily cost you money. I'm a big fan of fail fast philosophy in these cases. I understand that, in this particular case, it would be probably better for @violinparts if thirtybees just returned null. His site would work as before, and he wouldn't have to solve this crisis. But by failing fast we have discovered and fixed another bug in the code, making the whole product more stable for everyone
  2. The problem is not in the tb core, it's in the elasticsearch module, on line 484: $defaultCurrency = Currency::getCurrencyInstance(Configuration::get(' PS_CURRENCY_DEFAULT')); The intent of code above is to return currency object for default currency. But it actually never did, because of the typo in configuration key. The Configuration::get(' PS_CURRENCY_DEFAULT') statement returned null because ' PS_CURRENCY_DEFAULT' does not exists (there exists only key without leading space) That in turn resulted in Currency::getCurrencyInstance(null)call, which returned brand new, unsaved currency. As you can see, everything's wrong. The rest of the code continued to evaluate with wrong currency object. We don't know what went wrong down the stream, but rest assured -- this definitely manifested in some other bugs later on. Thirtybees 1.0.8 introduced new check that actually detects these kind of bugs. I agree that the die was too much, simple warning in log might have been enough. But then again -- nobody really notice these warnings in logs, right? To fix your problem, simply replace the line with $defaultCurrency = Currency::getCurrencyInstance(Configuration::get('PS_CURRENCY_DEFAULT'));
  3. datakick

    Full Page cache

    This will be addressed in the next release, one way or another. Hopefully this functionality will be salvaged :)
  4. @hedgehog try to separate the images by ; instead of ,
  5. @hedgehog are you using correct multiple value separator ?
  6. @hedgehog that's definitely enough memory. So the culprit must be somewhere else. Could you please try to modify this line in classes/Tools.php and change it to look like this: 'verify' => _PS_TOOL_DIR_.'cacert.pem',
  7. @gandalf why the no override requirement?
  8. @hedgehog what is your memory limit? When thirtybees copy image, it needs to resize it. It's likely that the source images are huge, so they require large amount of memory to process. TB will not try to resize such images if you run on server with limited memory, as it would lead to server crash.
  9. Don't forget to toggle Display to customer
  10. @andyc if it's showing 1.0.7, then it probably wasn't. Did you encounter any problems during update?
  11. @Fabsca without error message we can't really help you much. Please look into thirtybees error logs inside log directory server's error log -- location can vary depending on server's configuration, but it's usually /var/log/apache2/error.log or something like that. If you have some sort of cpanel, then you should also be able to access your error logs through there. Once we know what the problem is, we can fix it
  12. You need to increase php memory_limit in your php.ini, 128MB is not enough.
  13. Hi @LucaSabatoUK, does this module work on vanilla ps16? If so, what issues did you encounter? Since we are talking about open source module, could you provide link to github repository? I'll have a look at it in my spare time
  14. That's true, the source images must be high quality. Merchant needs to make sure that the white background does not blend into the image. At this point, it's probably easier to just remove the background altogether, and make it transparent png. Then we could simply show this image on top of any background
  15. I think it's indeed some on-the-fly image manipulation. https://static.toom.de/produkte/bilder/1450502/145050202.png https://static.toom.de/produkte/bilder/1450502/145050202.png?grey=1 This effect can be achieved by imagemagick, for example by using floodfill. For this to work, source images must be in good quality, and have pure white background.
  16. Does this module work on ps16?
  17. @Steve, if your php can't send emails directly, you can always use stmp. Simply enter your credentials for your gmail (or any other) account, and thirtybees will send emails through this email address.
  18. highest 1.6 version, in this case 1.6.1
  19. @Fabsca look into log directory inside your thirtybees installation, there should be file with error log. Let us know the error message
  20. sure, it will be part of the upcoming release. Here's all the commits that are scheduled: https://github.com/thirtybees/thirtybees/compare/1.0.7...1.0.x
  21. @danwarrior could you share link to your course?
  22. Try to change this order by
  23. did you restarted php server after you changed php.ini file?
  24. When downloading modules from github, it's always recommended to download official releases. When you click on big grean clone/download button, you are downloading source code. But that does not mean it's a valid module. Some modules require build process to be performed. Developers often do this for you and publish valid packaged in release tab.
  25. @haylau sure, you can download and use the new version right now. Or you can wait, as it will be part of the next tb release
×
×
  • Create New...