Jump to content

flydev

Members
  • Posts

    1,366
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. I tested your setup in a VM but with a Linux distribution instead of a Windows and as a result , ProcessWire run smoothly on it, even the default search feature. I will install a Windows server today just to see if there is an extension which could mess the setup. Stay tuned..
  2. ProcessWire currently might not be compatible with this version of MySQL as the RegEx engine is not the same between MySQL 5.x and MySQL 8.x. Could you paste the full call-stack ?
  3. Looking at the error you got, you could fix it by enabling zlib.output_compression in your php.ini. ps: to be clear, you have a server issue.
  4. more info here :
  5. Thanks @Robin S I see, anyway I just tested to call this function, it works fine on ProcessPageEdit but when I switch to, for example, on a ProcessModule (a config module page) the breadcrumbs isn't rendered : <!-- MAIN CONTENT --> <main id='main' class='pw-container uk-container uk-container-expand uk-margin uk-margin-large-bottom'> <div class='pw-content' id='content'> <div class="uk-breadcrumbs"> <?php if ($layout != 'sidenav' && $layout != 'modal') echo $modules->get('AdminThemeUikit')->renderBreadcrumbs(); // echo $adminTheme->renderBreadcrumbs(); ?> </div> [...] Result on ProcessPageEdit : Result on ProcessModule (Breadcrumbs's module config page) :
  6. More info on this threads : Welcome ?
  7. I can't work on the backend without this module ? Just sent a pull request to be able to use this module inside a custom admin theme. I just added an option where we can set our custom hooks. https://github.com/Toutouwai/BreadcrumbDropdowns/pull/5
  8. Hi @cjx2240 I am pretty sure that your $user->get() call return an NullPage, and that is what confuse you. Try this : if($users->get("$newuser->userid")->id) { // user exist } else { // user DO NOT exist }
  9. Yes. can depend on the server config.
  10. I don't know if you call an ___executeXYZ() function in RockCRM to get back your answer, but in one of my app, I have to send the answer from my ProcessModule with : header('Content-Type: application/json'); return json_encode($data); to avoid the first HTML char of the <!DOCTYPE html> string being returned.
  11. @NorbertH you could give a try to a theme I made but still not released: https://github.com/flydev-fr/AdminThemeGitKit Still not finished but already cool. To make the theme more condensed, in the theme settings, you can use the following options : - Layout + Interface > Inputfield column width > Select option B (percentage-based) - Forms + Input > Select option Small - Primary CSS file should be set to : site/modules/AdminThemeGitKit/uikit/dist/css/uikit.git.min.css Feedbacks welcome ?
  12. Hi Zeka, No mystery here, you get an error because you have SQL_NO_CACHE in more than one statement. It's also not permitted in sub-queries. What is your MySQL server version ?
  13. Why not simply checking if the user has this permission (after installation) with hasPermission() ? What say the doc :
  14. Just pushed an update - v1.3.12-ATO - the quantity of megabytes saved before an archive flush is now configurable. When the value is empty or equal to 0 then the option is disabled. @Autofahrn what is this check ? I don't have it in my code ?
  15. Done. pushed the update in Duplicator 1.3.11-ATO. Does your domain name contain a dash char ? If yes, try the latest update (v1.3.11-ATO).
  16. Please upgrade to the dev version 1.3.10-ATO here : https://github.com/flydev-fr/Duplicator/tree/dev Steps : - Rename the Duplicator folder to .Duplicator - Download the dev version and extract the folder in the modules directory - Rename Duplicator-dev to Duplicator - Go to Modules > Refresh It should works.
  17. I ran Duplicator on a Windows Server 2012, IIS and PHP 7.2.18 without issue, which version of Duplicator have you tested ?
  18. You could show us some titles to test it out. Did you read about how to work with the second argument there ? https://processwire.com/api/ref/sanitizer/page-name/
  19. Thanks @horst ! Checking that this week-end - thanks for the sample too ! ?
  20. A small news about Duplicator. There is a work in progress on a development version (v1.3.10-ATO) - nothing which can harm your server and could be already tested on different setup. You can download this dev version on GitHub : https://github.com/flydev-fr/Duplicator/archive/dev.zip or at the end of this post. The module still contain minor issues but the overall processing is faster than before and packages can be built and restored as well. Thanks to @Autofahrn for putting his hand in the module! Autofahrn also added a great feature which give the possibility to exclude file through regular expression. Also, image variations created by ProcessWire are now excluded by default. Duplicator-dev-1.3.10-ATO.zip
  21. If used with HTTPS, "I don't see it" as a security hole that way. Anyway, the question is legit and could lead to his own post in the security section following by bad/good practices, it also depend on the scenario you are in. If a security token is intercepted, you're screwed up, if the login/password is intercepted, same here and cookies will be eat. The password could be weak and guessed but already a bit restricted in the current version of ProcessWire and can be configured to be stronger. SSL/TLS 0-day ? it's not happening everyday.. but it happen. As always, security.... its also about people "education".. The only real drawback I see, is that imagine 3 months later after a valid authentication, a token would be invalid, but the user/login should be still valid. Another scenario possible here but the issue could be tackled. References: http://restcookbook.com/Basics/loggingin/ https://tools.ietf.org/html/rfc2617 Meanwhile maybe @LostKobrakai will have a good comment about that.
  22. Just a note, to give WireMailSmtp a third party access on your Gmail account, you have to enable "Less Secure Apps". https://support.google.com/accounts/answer/6010255 Thanks for this tutorial ?
  23. I don't think but you could explain "in depth" what you need so we can suggest you something or even make something to get you started ?
  24. Sorry dude, I am aware of this issue but forgot to update the first post and the github doc. So yes, basically, In the last version of Duplicator, its necessary (but unwanted) to move the unzipped data to the parent dir.. And about your last issue, try what its said in the github issue linked by @netcarver and more precisely this one : https://github.com/composer/composer/issues/7836#issuecomment-452341683 And just saying, I have not tested the module with PHP 7.x and it might have some issues on this version. sorry for the inconveniences, I hope to get the time to finally work on the V2 ? but I promise you guys to take a look at the actual version and make a revision in the last 10 days or ask to moderators to ban me from the forum ! ? ?
  25. To paginate the result, you have to know the total amount of pages you fetch so we must add another hook to our module (full code here) : Then you just have to write a little script to paginate the result. To try it, create on you webroot directory a file called `test.php` and put the following code in then navigate to hxxp://example.com/test.php : Result : correct, corrected - a bad copy pasta moment ?
×
×
  • Create New...