Jump to content

benbyf

Members
  • Posts

    804
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. How would one pass a variable set in one module to another module via a Hook? e.g. module 1. public function ___saveUser($vars){ $userSaved = true } module 2 public function init() { $this->addHookAfter('module1::saveUser', $this, 'userSaved'); } public function userSaved($e){ $userSaved = $e->userSaved; return $userSaved; // true? }
  2. Hi, I'm making a new subscribers module, which enables you to register users, and view them as a list of the new role in the admin. Having trouble with installation currently and keep getting Invalid field type in call to Field::setFieldType module: https://github.com/benbyford/subscribers/blob/master/Subscribers.module
  3. Think my tutorials are a good starter and start prietty basic. let us know if you think there are anything missing... e.g. if it would be worth making some screencasts etc https://tutsplus.com/authors/ben-byford
  4. good damn it, thats the second one I've found of a site ripping off my articles
  5. Added ProCache today which has helped alot on my server stats, as the CPU has gone from around 50-60% right down to 20%. however my RAM usage is still up the 80% which isnt great. Analytics are still at around 300-1500 hits a day. Will check out that site @Sérgio for sure.
  6. you could also simply include your javascript lower in the page without injecting it into the head... but the Jquery option seems solid.
  7. wow just read this back, and its amazingly badly typed, sorry. Yes mailchimp, I'm looking into it so will post back my implementation when done.
  8. found this in the wiremail logs Error in hnsmtp::send : cannot connect to smtp-server!
  9. Really sorry but its a clients site not my own personal project. I cant seem to send out through wiremail() so that might be the issue. php mail() works fine.
  10. Loving this suite of modules. I was wondering what exactly it does when you click the Optimize button in the Database module - for my own understanding and safety of the data integraty of the site.
  11. I didn't try the test as it wasnt obvious. I installed, added the settings, then went and created a user in the admin and got the error a couple of times (even when hard coding the email in the module as suggested above).
  12. could this modudke be used with third party email senders? link mailchimp etc?
  13. I am also getting: Session: No email was sent to the new user because of an unknown problem. Please try the 'Re-send Welcome Message' option. PW 2.7.2
  14. Anyone happen to have created an mailchimp signup modules? Just looking into it now. Looking to create a simple module that signs people up to a list on mailchimp when a new suer is created.
  15. Latest episode of The Machine Ethics podcast with @matthewchannon_ on Law, insurance & future of #AutomatedVehicles https://t.co/0izbvoNj49

  16. sweet! added, so hopefully that'll help Also good to know! not encountered swapfile before and its also to know. I feel like that might be something else going on though. I'm running PW 2.7.2 on this site and I opened up permissions to 777 briefly on assets/cache/Page and still got the errors in the logs, e.g.: Error: Exception: DirectoryIterator::__construct(/srv/users/serverpilot/apps/betaville/public/site/assets/cache/Page/1/): failed to open dir: No such file or directory (in /srv/users/serverpilot/apps/betaville/public/wire/core/CacheFile.php line 208)
  17. Will check and get back thanks!
  18. might be an issue as there are LOOOOOOTSSSSSSS of pages
  19. should be normal vistors, but not sure how i would tell... not sure what you mean here... thought so too but its currently 775 on a user and im not going to go 777 for obivous reasons.... but why would it not have a problem caching the other pages, or not...? thats the strange thing, im only ever seeing those two pages id's in teh cache folder and in errors
  20. Not sure if this makes a difference, but lots of pages have caching enabled but only two have folders in the assests/cache/Page/ home (1) and rss-feed (1029).
  21. doing that I get a constant flow of paths (denoting someone accessed), but not all corrispond with an error, so it must be caching some and not others...
  22. not sure how to do that without breaking my site (which i did abit just now)
  23. found this in logs: exceptions: errors DirectoryIterator::__construct(/srv/users/serverpilot/apps/betaville/public/site/assets/cache/Page/1/): failed to open dir: No such file or directory (in /wire/core/CacheFile.php line 208) Error: Exception: DirectoryIterator::__construct(/srv/users/serverpilot/apps/betaville/public/site/assets/cache/Page/1/): failed to open dir: No such file or directory (in /srv/users/serverpilot/apps/betaville/public/wire/core/CacheFile.php line 208)
  24. HELLO! I've had two Timeouts recently on a site due to the server being overloaded. The site is hosted on digitalocean on a single distro with 512 MB Memory, 20 GB disk, Ubuntu 14.04.4 x64. as shown below before each outage I can a climbing peak in user bandwidth then the CPU hangs: (the light blue above is user, and the dark blue sys) Not really had anything like this before with processwire as am puzzled. the site gets between 200 - 1000 visits a day, and I'm using the PW built in caching. Any advice or tips would help loads!
×
×
  • Create New...