Jump to content
thirty bees forum

doclucas

Members
  • Posts

    162
  • Joined

  • Last visited

Everything posted by doclucas

  1. I dunno, maybe it's just me, but I tend to be motivated to help people who know how to express more gratitude and don't take other people's help for granted...it is not.
  2. yep, token=... in the blue section of the cronjobs module page, as you can see blurred out in my screenshot above
  3. @violinparts said in Setting up elasticsearch module: You mean on the cronjobs module page? ?
  4. The token should appear on the cronjobs page, in the blue section, as you can see (blurred) in my screenshot. The fix is not in 2.1.3, you should manually fix the code.
  5. @the-rampage-rado Absolutely. If it is a dedicated server or a VPS you can normally set it up yourself on that, or in all cases, ask your hosting provider to setup elasticsearch 5 service if possible.
  6. Just note that PS 1.7 one page checkout is flawed in the sense that it has full page reloads, rather than quick AJAX responses of each section. You can read lots of discussion about it on the web. And there is: 5. Improve the shopping cart quantity box logic, by changing it to dropdowns that match the max quantity available in stock, instead of AJAX check of every quantity up/down change. 6. Improve checkout by adding a stock check and a stock correction popup that will allow cart quantity to be automatically adjusted to the max quantity available in stock. For example, if I added 5 pieces of a certain item to the cart (when it was available) and check out when there are only 3 left, there will be a popup notice explaining the stock issue that will allow quantity correction with a click of a button (on that popup). Example:
  7. As we just discussed in the chat, modifying the code as explained does work. Please make sure to upload the original theme zipped.
  8. According to your pastebin, you did not change the code. It's still showing config with small c and not capital C.
  9. I don't know where you uploaded it, but you can post it on https://pastebin.com/ and post the link here
  10. @movieseals If it worked fine for you on 1.0.5, the only related change I see on 1.0.6 is the code above. To be able to assist you, please post the entire content of your controllers/admin/AdminThemesController.php file
  11. @violinparts said in Setting up elasticsearch module: One issue I find with the official module is that it does NOT provide cron for indexing. So, I find that I have to manually index every time after I listed products for the products to be included in search. I just found out that the module already has a built-in cron option. All you need to do is just add the following cron job to the thirtybees cronjobs module: https://www.example.com/module/elasticsearch/cron?token=[YOURSITESECURITY_TOKEN] (replace example.com with your site's address and [YOURSITESECURITY_TOKEN] with your site's FO security token. Tested and works perfectly fine. When using the cronjobs module, I highly recommend that you implement the following fix until it gets re-released with it already implemented: https://forum.thirtybees.com/post/20351
  12. You may also want to read this: https://github.com/thirtybees/thirtybees/issues/581
  13. Sorry, had a small typo, revised the code above. @dosbiner does it work for you now?
  14. ~~It seems like the module currently completely ignores (doesn't compare) the cron last execution time and the set frequency that it should be executed and just follows the run frequency set in the server cron manager. That said,~~ to fix the time not getting updated, do this: Edit /modules/cronjobs/controllers/front/cron.php Find: 'updated_at' => ['type' => 'sql', 'value' => 'IF (`one_shot` = TRUE, FALSE, `active`)'], Replace with: 'updated_at' => ['type' => 'sql', 'value' => 'NOW()'], 'active' => ['type' => 'sql', 'value' => 'IF(`one_shot` = TRUE, FALSE, `active`)'], Hope this helps :)
  15. I see. Do you have any more cron jobs configured in other places on your server? Such as cron jobs from your server's control panel? (like cPanel)
  16. What output? And how do you see it?
  17. So how did you confirm that the cron worked?
  18. @slick_303 said in cron jobs Last execution: So, since v2.1.0 cron jobs have been working for me. The problem now is the, Last execution, never gets updated. It seems to stay at Never, even though the job has run. Working fine for me on 2.1.3 Is it still an issue for you, @SLiCK_303 ?
  19. You welcome. :) Thanks for reporting it. It's quite a critical issue.
  20. A very simple & basic way to check is to add the following code: if ($_SERVER['QUERY_STRING'] == 'democheck') { if (defined('_PS_MODE_DEMO_')) { echo '_PS_MODE_DEMO_ is defined'; }else{ echo '_PS_MODE_DEMO_ is NOT defined'; } exit; } Right above: if (!defined('_PS_MODE_DEMO_')) { define('_PS_MODE_DEMO_', false); } Then load your homepage adding ?democheck to the end of the url, like so: www.example.com?democheck It will output on the screen if it's defined or not.
  21. @dynambee said in Setting up elasticsearch module: @doclucas said in Setting up elasticsearch module: Thanks @violinparts @dosbiner I have installed Elasticsearch version: 5.6.10 and it now indexes fine in the BO. I think it's extremely important to write that it is only compatible with ES v5 and is not compatible with v6, both on the module download page and inside the module page itself (in the BO). I believe the PS module was written to work with ES 5.4 (used by Cloudways) and ES 6.0 as those were the two commonly available versions at the time. At one point I had an ES 6.0 server set up for testing purposes and it worked okay. I don't have it running at the moment though so I can't test further. Maybe @lesley can comment on the expected compatibility? ES v6 has implemented some changes in the way the client and server communicate that are not backward compatible, Is it possible you were actually running it on v5 and not v6? I have tried this on several NIX boxes and Windows boxes without success. Only ES v5 works, no matter what configuration I tried, but I would love to see a proof that it is working on v6 and the way to make it happen. :)
  22. Most of my themes come with capital C, a few with small c, which is why I wrote on git, it's better you add both cases. :) I guess the person who made the commit 20 days ago (Fabio) did so because his theme came with a small c.
  23. @Baarssen @Traumflug Found the problem. Edit controllers/admin/AdminThemesController.php Change: $xmlFile = $sandbox.$themeDir.'/config.xml'; to $xmlFile = $sandbox.$themeDir.'/Config.xml'; That's Config with a capital C. Hope this helps. :) On git: https://github.com/thirtybees/thirtybees/issues/579
  24. I have the same problem on TB 1.0.6 on my Linux server. It says Bad configuration file. However, when uploading the same exact theme file to TB 1.0.6 on my windows server (WAMP) it works perfectly. @Traumflug - any way to debug what's causing this?
×
×
  • Create New...