-
Posts
1,360 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
Stuck to delayed output for a while before using to a template engine, I really should give a try to markup region with it. A quick ref for myself: https://processwire.com/blog/posts/processwire-3.0.49-introduces-a-new-template-file-strategy/ https://processwire.com/blog/posts/processwire-3.0.62-and-more-on-markup-regions/
-
SOLVED: LOGIN/REGISTER/PROFILE - LoginRegister - Show RegisterForm
flydev replied to DV-JF's topic in General Support
you can just put a get variable ?register=1 on the request and it will show the registration form.. -
If you put namespace ProcessWire; on top of the module file, does it work ?
-
I Will make a thread ?
-
I finally found my mistake - it was an autoload module. Also another mistake was the selector. I was using the has_parent keyword on a ~360k pages, growing each night. Selecting a direct parent reduced considerably the time of the aggregation. It take ~18 seconds to do some calculation on 112 689 pages fetched, but it take 60 seconds to build and show two charts from theses 112k pages. Still looking to improve it before scratching my head into MySQL stocked procedures. Didn't checked the repo, do you have pushed an update regarding the implementation in RockSqlFinder yet ? okay
-
https://github.com/nefe/You-Dont-Need-jQuery
-
Okay, Not sure how to debug the right query in the module, but The findIDs() in buildQuery(), in the DBMS take 0.3087 second for 18119 pages. The query ($query) in findObjects(), in the DBMS take 1.9846 seconds for 18119 pages. And, why we have a difference of ~10 seconds when calling findObjects() or even findMany() from Tracy ? Edit 1: same average with 96611 pages. Edit 2 : I stumbled on this thread : If you are interested, I have the code of two hooks which implement COUNT(), SUM() and DATEDIFF().
-
I don't want to pollute your official thread so I post here. Perhaps you have an idea before I go further in my questions I have a template which contain some fields. Two of them are timestamp, rest are integer. What I want is to fetch pages that are in a date range, so I have this selector : In this example, the system fetch 18119 pages. Results : It take around 10 seconds to fetch all pages, in the DBMS it take 0.3908 second(s) for 18119 pages. I think I am missing something
-
Thanks for this module @bernhard , I am going to test it heavily today. In the project I built, similar to what you showed us, we are calling 30,000 pages to 100,000 pages per iteration (17 atm) and doing heavy aggregation on it to generate statistics and chart - a pain, hopefully fixed with your module. At this moment I am using this module quite modified for my need which add custom functions to the Page object by hooking it. I think that today I will re-write my hooks using your module. Feedback coming. Thanks again for the work and congratulation ?
-
Maybe you could provide a Gulp tasks file along the module which could be called and generate a rockdatatables.min.js/css.
-
Outputting content in different languages
flydev replied to androbey's topic in Module/Plugin Development
If you are not using TracyDebugger, then I urge you to install it then debug both variables, you will find your answer -
Outputting content in different languages
flydev replied to androbey's topic in Module/Plugin Development
The value of the Inputfield is set from an user trough the module config page ? If yes (I dont know how your module work) , then imagine the following, in the getDefaultData() you have : protected static function getDefaultData() { return array( 'ml_myfield_data' => '' ); } In your getModuleConfigInputfields() : public static function getModuleConfigInputfields(array $data) { $data = array_merge(self::getDefaultData(), $data); // [...] $f = $modules->get("InputfieldCKEditor"); $f->attr('name', 'ml_myfield_data'); $f->value = $data['ml_myfield_data']; $f->useLanguages = true; // [...] } Then in module ready() (for testing purpose) you can return the right language : if($this->wire('languages')) { $userLanguage = $this->wire('user')->language; $lang = $userLanguage->isDefault() ? '' : "__$userLanguage->id"; } else { $lang = ''; } bd($this->data['ml_myfield_data'.$lang]); // debug with tracy After you change your language in your profile, it should return the right language. -
Its the same features yes. Only the data space is limited. More info there: https://www.idrive.com/online-backup-plans-faq
-
I lol'd, thanks. Yes sure, but its robust! Like ProcessWire and his 90s homepage ? They work on features, no time for frontend fashion things!
-
Hi @pycode, welcome to the forum. First advice, if you need more answers, try to format your post with the forum tools so it will be more readable by us ! Wrap your code into the code tag, use quote for errors, etc. About the error you are encountering, looking at the line 777 of the _uikit.php $n = $page->comments->count(); It seem that the function want a Page with a comments field registered on the template. To fix it, just add the comments field to the according template and everything should work. I also suggest you to read this thread :
- 3 replies
-
- 2
-
- platform
- processwire
-
(and 1 more)
Tagged with:
-
Cool! I forgot to say that the Dropbox API installation is only supported trough Composer. I will see if I got the time to make a "standalone SDK". Also I don't know if people here already heard about of the cloud backup solution for professional, iDrive. Our company is a long time customer of their services and we never had an issue. They have military grade security implemented on backups. I was not going to promote their service as I trough they had only paid plans, but finally they have a free plan of 5Gb. I would like to say that there are no more reason to not have a professional backup solution for your client ! It will be implemented in Duplicator very soon as I need it quickly! ?
-
For people interested, Dropbox support is back. It needs to be tested a bit
-
Sorry - ok understood, its another issue then. Thanks again.
-
Hello, the module got updated, please upgrade it to version 1.1.9. This version contain some small fixes, the major fix is that packages can be built/extracted on Windows and/or Unix platforms and the exclusion feature still work as expected. Apart from that, I am working on the GoogleDrive feature; It look like that the AmazonS3 feature need an update. Dropbox v2 planned for soon. @adrian I found (another or maybe this is what you was talking about ?) confusing thing with GoogleDrive. Duplicator can store 10 packages in GoogleDrive and delete the older keeping the newer but without differencing packages built on distinct websites. In the current state of the module, when he get files from Google Drive, all packages are threated as "one (1) website".
-
The module in the PW version 2.7.2 create a table with a TEXT (64Kb) field and in PW version 3.0.x it use a MEDIUMTEXT (16Mb) field. @gebeer your are trying to insert 23,536 bytes which could be fine if the string was composed with single-byte characters. But in your case it look like your string is encoded in UTF-8/Multi-byte, so we can assume that each character in your string take 1 to 4 bytes of space and thus the database server truncate your string because the TEXT field can only contain 65 535 chars (using single-byte characters) and your string contain (assuming here) 94 144 bytes (multi-byte characters). It could explain your issue. For testing, you could try to disable SQL STRICT MODE. I hope it make sense.
-
HEEELP! This request was aborted because it appears to be forged!
flydev replied to Pixrael's topic in General Support
The reason, after the upgrade of Plesk and PHP, by default the PHP setting session.save_path point to /var/lib/php/session and not /var/tmp where before he got r/w permissions (I don't know if Plesk was already installed or not before the upgrade). The final problem was not MySQL. -
HEEELP! This request was aborted because it appears to be forged!
flydev replied to Pixrael's topic in General Support
I think it could be checked on the installation process, checking if these path are writable or not and thus sending a warning that potential session issue could arise. I can't tell you, I think nothing, but I never tried to install this CMS ? -
HEEELP! This request was aborted because it appears to be forged!
flydev replied to Pixrael's topic in General Support
It was a server issue and not a ProcessWire one - the reason behind the message "This request was aborted because it appears to be forged" on this case was because the PHP session path was not writable. The website is back online with backend working like a charm ?- 36 replies
-
- 10