Jump to content

cjx2240

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by cjx2240

  1. You know what, I think I might've figured out the cause. And I should've thought about it when I mentioned this ? I think it's SEO Maestro regenerating the sitemap. It's something that triggers when you load the CMS after 120 minutes. You can get around this by disabling automatic generation and setting up a scheduled task to trigger it, there's more info in the thread for that extension.
  2. That's an interesting suggestion, thanks, I'll give that a go and see how I get on. It won't be going live on this server anyway, so maybe it's a problem that will solve itself for me anyway ?‍♂️
  3. ProcessWire 3.0.184. I'm running a xampp server on Windows 10 server setup Apache/2.4.47 (Win64) OpenSSL/1.1.1k PHP/7.4.19 Database client version: libmysql - mysqlnd 7.4.19 PHP extension: mysqli PHP version: 7.4.19 db Server type: MariaDB Server version: 10.4.19-MariaDB I did eventually get back in but I'm expecting it to happen again in a few hours.
  4. Today I seem to have hit a new wall suddenly. After working in the CMS all day for the last 6-7 hours, all of a sudden I cannot get into the CMS at all Last time I managed to look at some errors in Tracy it reported timeouts from all these within the same minute or two Fatal Error: Maximum execution time of 120 seconds exceeded (line 856 of [...]\public_html\wire\core\Functions.php) Fatal Error: Maximum execution time of 120 seconds exceeded (line 319 of [...]\public_html\wire\core\Session.php) Fatal Error: Maximum execution time of 120 seconds exceeded (line 206 of [...]\public_html\wire\core\PagesLoaderCache.php)
  5. Good idea - I just had another very slow load - and I did that, none of the number seem particularly high to me! Another thing I find odd is that I can't recreate it by clearing my browser session or anything like that, only by coming back after some (unknown) amount of time. So it really seems to be related to something that happens after a certain amount of time has passed, like cache regeneration or something?
  6. Hey guys, thanks for the tips. No lazycron but that would be a very good shout. I have ready.php - but it only has one hook for SEO Maestro tags rendering I don't think _init.php is getting involved called when logging into the CMS - at least if I die() there, it doesn't happen. There are quite a few modules installed, I work for an agency which has a sub to various profields, formbuilder etc. I could try eliminating some of them. The only logs that get written during this window of logging in are compiling the ready.php file for login/ and the successful login in the session... nothing else
  7. Hi all I've just spent a few days moving all the content from a big old site to ProcessWire. Everything was going fine, I've been going in and out of the CMS since the content was added with no issues. There's a lot of fields, a lot of images, not many repeaters though, the majority of it is just text data. Then a few days later when I try to access the CMS, I hit an error: Breaking news… Fatal Error: Maximum execution time of 120 seconds exceeded If I keep trying, eventually I will get in. And when I do, things will be running smoothly. But then the next day, I'm back to that one really long wait again. Any tips for diagnosing where it gets stuck? or any suggestions of things that I can change or turn off that might run once per session?
  8. Oh for crying out loud... you are right... it only happened when I was using the device toolbar from dev tools in Chrome which evidently affects the user agent. I'm certain this never used to happen, not sure if it's a change in Chrome or the latest version of PW. I'll try out the config setting next time I need it but for now just going back to non-device mode has solved it. Thanks very much!
  9. Hi all A couple of times now I've run into this issue. Last time I think it went away by itself in the end. It's making it very difficult to build a site, every time I refresh or load any page on the front-end. I get logged out of the CMS. I haven't written any code for this site to do with front end logins, logouts, sessions etc.. It happens if my browser's cache is enabled or disabled. I have the following entries in my session log which I think coincide with it User '[username]' - Error: Session fingerprint changed (IP address or useragent) (IP: ::1) I'm not using a VPN I would appreciate any hints or suggestions as this is getting a little frustrating!
  10. Hey glad to see the update! Things are also very busy on my end but I definitely want to give this a good look soon. Sounds like all good things.
  11. Does anyone know what I need to let through the restrictions in order to have the popup from the FieldtypeAssistedURL module work?
  12. In your config.php $config->prependTemplateFile = '_init.php';
  13. Hi, I really wanted to try this out but I hit a roadblock straight away... the page didn't appear in the CMS after installation. I made sure the module folder was named correctly (saw the similar issue above) and I have the latest version of the code I also couldn't uninstall the module, it hit a php error. While trying to figure it out I've been uninstalling/reinstalling, it definitely hits various issues with the fact it can't remove/update system templates. It looks very interesting though, hope I can figure it out and have a go! Edit: ahhh well, I see the problem. Your bootstrap for creating the admin page assumes that the admin URL will be "/processwire/" - but mine is not! May be better to grab the admin page name there Edit 2: well I have had a look at it and I really like the idea of the way it works! Bit rough around the edges for sure (one bug I seem to have noticed is that I get errors about a sixth repeater row repeatedly after I have deleted it, same thing happens with snippets. They're gone from the original db, but visible and empty when viewing the migration on the target db more on that later*) but the idea is much more in line with how I would want to do migrations. For me though I hit two snags in my first attempt to use it. One is that it didn't include a hidden page in the export data, nor did it allow me to add something like "include=all" to the selector, so I could only add it by un-hiding my page to create the migration. Another is that it didn't include data from a ProFields: Table field, but I can populate that with a hook which is a great addition! Edit 3: * I actually hit a pretty big bug with this later on. I tried (mistakenly) to remove the errant rows on the target db and save it. I got the message saying that I can't actually save changes on the target db (fair enough) but then the status became "superseded" and I could no longer perform the migration.
  14. Just a couple of quick questions - and I know this might be more of a question for Tracy Debugger itself but - why can't I see "Field Code" in my Request tab? Edit: sorry, found it! Tracy settings > Request info panel > Panel sections if anyone else was wondering. Is there any other useful things I should turn on in Tracy for copying field data and similar?? ? And second question please, how do I add a field to a template and have it be inside a Fieldset Tab? Thanks in advance!
  15. Hi Bill, thanks for looking Not exactly. Although I have done something very similar to what you suggested already, in order to limit which portfolio's I'm getting based on something in the user details, so you were bang on the money on how to do that. All I really want, is to select portfolio-detail items, and have all the details from a matching user available to me in that selection. Eg, I've got a user like this $user->id = 392; $user->name = 'email_example.com'; $user->firstname = 'Jane'; $user->lastname = 'Doe'; $user->avatar = PageImage; And I've got portfolio detail pages like this $portfolio->title = 'Jane Doe'; $portfolio->user_id = 392; The former has all the data I want to grab for each item. But the latter has all the details I need to organise my site like URLs, tags, parent pages, etc. So I just want to kind of... merge them together neatly.
  16. Hi, this is a blast from the past, 2014 the last time someone talked about this module in here! And what a great module it still is. Is this still the best place to discuss? I've noticed today that {{id}} doesn't seem to return anything in the user template, could there be some obvious reason for that which I'm missing? Thanks!
  17. I have created a page with template "portfolio-detail" for every user's that's registered on my site, linked to by a field that stores their user ID. Now I want to be able to grab that user and integrate them with the page selector as neatly as possible. The reason for this approach is that the page, rather than the user, has many things built around it already, other fields, parent structures, etc. that are fundamental to filtering, url structure etc. I currently have this, but it means a separate query to the user table for every single user. This works, but a) I'm sure it could be faster/neater and b) it means I can only access their details with $profile->user->user_field instead of just $profile->user_field $profiles = $pages->find("template=portfolio-detail"); foreach($profiles as $profile) { $user = $users->get("id={$profile->user_id}"); $profile->user = $user; } Is there a better way?
  18. [edit - double post, can be deleted]
  19. That’s such an incredibly good idea I’m mad I didn’t think of it myself. Thank you! And well done understanding my requirements so well!
  20. I'm capturing the main content for a site using a registration/profile process. The end product will be a categorised showcase of their submissions. They're selecting the page that would be the parent category as part of the profile process. The easiest way to do this would probably be to copy the user pages to be "normal" pages when sign-up is closed. But I would like to avoid this as it would fracture the content if we needed to reopen registrations. So instead I would like to try leaving the users alone, and looping them simply by grabbing all users with the current page as their selected parent. It won't be as simple as browsing to /users/user-name, I need to put them in categories based on regular pages like /category/child-category/user-name I think this is easy enough, I know how to select the users and loop through them, load a template based on their page (I think) - but can you think of any reasons why I should or shouldn't do this, any complications I'm not considering? I'm going to try and store a nice unique name for them from their real name, when they sign up that can serve as the URL. Is there anything useful in the API that can make sure a name is unique and add a number if it's not? I know this is a bit vague, but anyone done anything like this before?
  21. Hm, thanks for the suggestion but that doesn't seem to work, I get the following when registering on the front-end. "Warning (requiredIf): dependency field 'hasRole' is not present in this form."
  22. Does anyone have a suggestion how I can make fields required during user registration, without making it so that admins also have to fill them out when making new admins? Thanks in advance!
  23. Hi, first of all great module, very helpful. Found an odd issue with this, not sure if its just some issue with my own setup? I added a second user and used the wrong token (I had generated two for two different accounts and grabbed the wrong one) The new user doesn't appear in the list (though they're in the db table) I also couldn't remove the original user (though they disappeared from the db) It's using the value stored in the caches table but it restores itself even if I forcibly delete that cached row. Forcibly deleting the user row from the module table and then putting it back in right, fixed the user being fetched, although still shows the wrong one in the module settings.
  24. Both of these options are excellent, thank you ?
×
×
  • Create New...