Jump to content

Dennis Spohr

Members
  • Posts

    49
  • Joined

  • Last visited

Contact Methods

  • Website URL
    www.dennisspohr.com

Profile Information

  • Gender
    Male
  • Location
    Portugal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dennis Spohr's Achievements

Jr. Member

Jr. Member (3/6)

9

Reputation

  1. Sure, just posted it here: https://github.com/processwire/processwire-issues/issues/1297
  2. $pages->parents()->rebuildAll() took around 16 seconds on our dev-server. For now we switched back to pw 3.0.148 and it seems that the error is not happening anymore. Also changing the parent is not as slow anymore. So there's definetely something going on with this new pages_parents table, but we were not able to reproduce the error with $page->find() on purpose. It randomly happened and for sure the pages_parents table was not correct anymore. But somehow fixed after seconds or minutes.
  3. I am running PW 3.0.165, the latest master version. Unfortunately I can’t tell if it was faster before migrating to this version. Sometimes it was kind of slow, but I didn’t look into this in detail before. Today we figured out another problem with parents. When using $page->find() sometimes it doesn’t find an existing page (with $pages->find() it’s there). In this case it has to be something with the has_parent selector. After at least 20 minutes of testing and debugging, it was finally working without us changing anything. Probably the pages_parent table is not working correctly or is created/updated too late. But this doesn’t fix the first issue regarding the performance. Something strange is going on.
  4. Changing the parent is slow in general. In my case $trash is my own custom page, not the trash of ProcessWire. I have other places in my code where I change the parent not using my own trash and there I have the same behaviour.
  5. Hi all, when I update the parent of an existing page, this process takes extremely long (20-30 seconds). $page->of(false); $page->parent = $trash; $page->save(); Sometimes these tested pages doesn't even have a single child-page. Our database is quite large (but with a very fast server): 900.000 entries in the pages table. 90.000 entries in the pages_parents table. Is there any other way to change the parent or does anybody now where this could come from? We have multiple places where this is happening now. Thanks! Dennis
  6. I have cleared the entire browser cache - but still the same problem.
  7. Hi guys, yesterday I did an upgrade from ProcessWire 3.0.148 to 3.0.165. On the front-end part everything went fine. But on the Backend the CKEditor is just not loading anymore. In the console I can see the following errors: Any idea where this comes from? Thanks! Dennis
  8. I have to reopen this thread, because I still have these problems. I am absolutely sure that my user-name is valid and unique. Still, if using $users->add($name) I'm getting a NullPage back, but just sometimes. I couldn't find a way to reproduce this error on our test-server. Our database is huge, we have some traffic and probably sometimes users are created nearly simultaneously (but definitely with unique names) Currently we have more than 150k user-accounts in the system. Do you think that could be a problem? The solution of @Noel Boss is interesting. How will the user-name be generated in this case? Any help is really appreciated! Thank you!
  9. Hi all, I have a custom login-page for my vistors and I want to implement a 2-factor authentication. Looks like the TfaTotp-Module already has this functionality for the login-form of ProcessWire. Can I use this module via the API for my custom login-form? How can I implement it? I couldn't find any documentation. Thanks, Dennis
  10. I created a tool where users can design their individual landingpage. Lately users want to implement their own html- and/or javascript code, for example for loading an iframe or custom tracking codes. If I give them an textarea, where they can paste their custom html or javascript code - is this secure? I would use $sanitizer->text to prevent sql injections. But is this a safe way? I don't (really) know which code they would save (and load). I would like to get an idea and your thoughts. Thanks and greetings from Malta, Dennis
  11. Yes, but it does not work if you have child-pages with a SelectOptions-Field. Thank you very much for all your help and support! I will check with the latest developer-version.
  12. Probably it got fixed already? Because I tested it with ProcessWire 3.0.98.
  13. I just created an issue for this: https://github.com/processwire/processwire-issues/issues/711
  14. Finally I was able to reproduce the problem on the clean install of ProcessWire. It seems to be a problem with a SelectOptions-FIeld, when no value is set. I did the following on the clean install: Create a new SelectOptions-Field with some values in it. Assign the field to a template Create a new Page of this template using the API: $mypage = new Page(); $mypage->template = 'basic-page'; $mypage->parent = $pages->get(1); $mypage->title = 'TEST'; $mypage->save(); print ($mypage->id); Copy the ID of the new page and do the following: $mypage = $pages->get(1042); $pages->clone($mypage); While doing this I get this exception: selectoptions is the name of my SelectOptions-Field. Settings $page->selectoptions = ''; seems to create the same problem (no value set). I don't think this should be the expected behavior?
×
×
  • Create New...