All Activity

This stream auto-updates   

  1. Past hour
  2. Why does sendFile() send the file even if isPublic() is false?
  3. Hi @hacsor and welcome! Sounds to me like you either don't have the path to the RevSliderEmbedder correct, or it's a namespace issue. If the basic-page.php template file includes the ProcessWire namespace at the top, then you would need to change your call to RevSliderEmbedder to \RevSliderEmbedder so you are calling it from the global namespace.
  4. Hi I have a existing project in Foundation 6 with some jQuery plugins, and I'm try to move to Processwire, but it shows a Revolution Slider Plugin error when I open index page . How can I solve this? Thanks!
  5. Today
  6. I couldn't find much about the pagefileSecure option. Is this just a runtime setting I can switch on or off anytime? Or is it only for files uploaded later? Is there anything changing in the files/assets folder?
  7. I have MariaDB on my server, it's fine. I think I will try this dockerized Caddy + php-fpm and skip the VM
  8. Out of curiosity, are you using Apache or Nginx? And which version of PHP? Are you using MySQL or MariaDB? And which version?
  9. Thanks @jmartsch, @Wanze, and @tpr. I tried this and it works: {{ config.httpHost }} So I know TemplateEnfineTwig and TemplateEngineFactory modules are passing the config variable correctly into the twig template. @jmartsch said that it no longer exists. I wonder why $config->urls->root is still listed on It also works in my template file basic-page.php if I set it to variable and then pass it to the view, just not in my basic-page.twig file. I did a bd( $config->urls->root ) in my basic-page.php and it returns "/" I also did a bd ($config->urls); in my basic-page.php and I did notice _root = "/". Maybe the underscore prefix means it is private, which is why it bombs out when {{ config.urls.root }} ?
  10. @Beluga, I think the ImportPagesCSV module should be able to handle 35K rows with the right PHP settings. Ryan has talked about needing to split into batches above 450K rows (!) so 35K should be no problem.
  11. Glad BCE worked for you I am curious though what happened for you with Ryan's module. My local dev setup is definitely nothing special. A 2011 MacBook Pro with 8GB RAM and PHP 7.1 all setup via HomeBrew. I feel like something else must be amiss. I have never used MariaDB - I know it is supposed to be faster if anything and completely compatible with MySQL, but who knows?
  12. Fantastic work, guys. Zeka's result proves that my local setup is somehow silly. Maybe it is too primitive: I don't even use php-fpm. However, you can imagine my surprise, when I returned back home just now after leaving the BCE import running: it had imported all the 35k pages successfully! I should set my local environment up like I have on the server, with php-fpm and Caddy. Thank you for restoring my sanity and trust in PW.
  13. The module does not allow for any Parsedown settings to be set in the module config, so you will have to copy the module to /site/modules/ and make changes there. If you use the Parsedown Extra flavour then you would edit line 70: $str = $extra->setUrlsLinked(false)->text($str); If you use the 'normal' flavour then do the same for line 62.
  14. THX man, a worldfamous chocolate cake from vienna for you! Hero Member! Simple Contact Form - i do it tommorw, not so cool as the old version…
  15. Thanks @Wanze! Referencing what @flydev said; do you think this would still work? I'm confused because if the limit was 8, for example, when it got to '8' items would it not just reset to 0?
  16. Thank you so much @flydev I end up worked with first two link you gave me I managed it work Thank you for your guys patience for newbies...
  17. On some NGO sites, i've the same problem that there is no place for the big commercial ad solutions and they have all regional partners for ads and there members. I setup a simple pagetable template with needed fields for real image banner ads, to administrate these kind of things. I count views and clicks with plain simple PHP and the output is randomized....just some fields(date from until, internal description and so on), templates and some lines of code. Editors can easy change ads. If you are interested write me a PM. regards mr-fan
  18. The "official" blog post about this topic might also be of interest: True, the word "performance" is not even mentioned in it, but I guess this is because this is not really about optimizing performance too much. Optimizing database access by means of proper usage of API calls and cache should matter the most.
  19. Also made small test with Ryan's module. Were added 9359 ( 3119 per minute) pages in 180s before timeout.
  20. Here is my solution for large sitemaps containing thousands upon thousands of pages, without the trouble of timeouts and such. I'm currently running this on website with 170.000+ pages. Relying only upon the ProcessWire API. Just a sidenote: I have no actual need to add all my pages to a sitemap … The keywords here are sitemap index, sitemap and ProcessWire's page numbers. Two templates: sitemap-index.php sitemap-xml.php (with page numbers activated) The structure of mine is this: sitemap-index.php is sitemap-xml.php is And the code for each of them: sitemap-index.php <?php namespace ProcessWire; $out = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . '<sitemapindex xmlns="">'; $templates = "basic-page|blog-post|tag"; $key = $pages->count("template=$templates"); $limit = 200; $pageNum = ceil($key/ $limit); $post = $pages->get("template=sitemap-xml"); $i = 1; while($pageNum >= $i){ $out .= "\n<sitemap>" . "\n\t<loc>" . $post->httpUrl . "page$i/</loc>" . "\n\t<lastmod>" . date("Y-m-d", $post->modified) . "</lastmod>" . "\n</sitemap>"; $i = $i + 1; } $out .= "\n</sitemapindex>"; header("Content-Type: text/xml"); echo $out; ?> sitemap-xml.php <?php namespace ProcessWire; $out = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . '<urlset xmlns="">'; $pageArray = $pages->find("template=basic-page|blog-post|tag, limit=200"); foreach ($pageArray as $post) { $out .= "\n<url>" . "\n\t<loc>" . $post->httpUrl . "</loc>" . "\n\t<lastmod>" . date("Y-m-d", $post->modified) . "</lastmod>" . "\n</url>"; } $out .= "\n</urlset>"; header("Content-Type: text/xml"); echo $out; ?>
  21. Perhaps this could work in twig templates too - in ready.php add this: $view->bd = function($data) { bd($data); }; then use this in twig files: {{ $bd('hello world') }}
  22. $session->count++; You cannot increment the count variable like this, as it is accessed via PHP's magic setter. Try this: $count = $session->count + 1; $session->count = $count;
  23. Module

    Thanks Steve - yes please let me know if it shows up again, but I hopefully it was an old issue that isn't present in the current version.
  24. I am getting the feeling that not everything in the wire folder was copied across correctly. I would suggest deleting it entirely and copying across the new one again.
  25. module

    I do not use this module but these mods are looking great. How about adding the labels to the left of the fields? that would make the form look less crowded and easier to overview. I'm not sure whether the markup allows easy style update.
  26. Module

    Hi Adrian, Sorry, I meant site/assets/sessions/ and the tracy* files within that. At one point there were thousands of megabyte-size files in there. The site this happened on is running Tracy 3.5.5 on PW 3.0.42. OS: Arch linux. PHP: 7.1 Irony of moment: I disabled Tracy, then I deleted the tracy* files AND recreated the backup set, deleting the differentials. I've been back into the admin area and tried re-enabling Tracy, but I'm not seeing the files being created now - suggesting it might have been from an older version of the module (this is a site I use to experiment with new PW stuff, so it has seen multiple revisions of Tracy installed over the months.) If the issue recurs I shall, of course, let you know more. Regards, Steve
  27. because $limit = 1 in your selector, no ? As you get only one news, $count is not incremented in your foreach loop..
  1. Load more activity