Jump to content

Greg Lumley

  • Posts

  • Joined

  • Last visited

  • Days Won


Greg Lumley last won the day on May 6 2020

Greg Lumley had the most liked content!

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Cape Town
  • Interests
    Photography, Festivals

Recent Profile Visitors

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

Greg Lumley's Achievements

Full Member

Full Member (4/6)



  1. Thank you for letting me know! I did so much Google searching and didn't realise there was a forum thread in my favourite place.
  2. If you're not using Ddev as your development environment, you should definitely consider it. I'm astonished at the speed and flexibility. Up till now I'd been using WAMP which, for it's time was a great all round solution but the speed was abysmal, even for a local server. I looked around and found ddev. Here's how to find it: https://ddev.com/get-started/ A few strange things / notes - at least to me, this isn't my full-time job, I'm a photographer who was a dev of sorts for a while: The database host isn't "localhost" it's db, yes, instead of putting localhost as your host, you put db. So if you have connection errors that's most likely why. On windows, you can access your files through: - Explorer - look for the Linux icon - You can also access them through a network share, I forget exactly what that is. You can transfer existing files / projects for windows into the VM via explorer. For VS Code windows there is a WSL plugin, this allows you to work directly on the files inside the Linux VM / container Don't store your files inside windows, as in outside the VM. It's not required and slows everything down, or so I've read. The first project you run downloads everything needed for ddev so it'll take a while. After that, it's quick. If importing a db via ddev, it doesn't seem to give a progress or errors. - I had the "COLLATE" error inside my dump. The import stopped when it reached that table with no error output or warning, I had no idea. - I like phpMyAdmin and imported through that which gave me an error of the issue therefore allowing me to solve it. WSL or windows subsystem layer is a lightweight VM manager, as I understand it. - You can run multiple Linux distros through it. - It integrates the distro really nicely with windows. Lastly, the speed! Omg the speed! I get impatient waiting for reloads when I've changed code. Ddev is blazing fast! I hope this helps someone else who might have some of the same questions I did. Have a great weekend.
  3. I found the problem, unless I missed something, it's not obvious. The host in ddev is "db" not localhost DBname: db DBuser: root or db DBpass: root or db DBhost: db DBport: 3306 Hopefully, this saves someone some Internet Scouring time. πŸ™ƒ
  4. Hi, I realise this is a little sideways. I've just started using ddev, or I'm trying to at least, it really is a fantastic solution from what I can see. I've scoured the Internet and have yet to come across something that explains why it's not connecting. Even with a fresh Processwire install, I get a DB connection error. DBname: db DBuser: root DBpass: root DBhost: localhost DBport: 3306 Loading PhpMyadmin shows the DB exists and is working perfectly. ddev describe gives me all the information: db β”‚ OK β”‚ InDocker: db:3306 β”‚ mariadb:10.4 β”‚ β”‚ β”‚ β”‚ Host: β”‚ User/Pass: 'db/db' β”‚ β”‚ β”‚ β”‚ β”‚ or 'root/root' Is there something else I should be doing when trying to connect? Thank you.
  5. Thank you! I think I was overcomplicating it in my head. πŸ€¦β€β™‚οΈ
  6. Hi, I'm trying to implement the Facebook Conversion Api into a Processwire form. I'm using it for a FB advert that points to a landing page on my site. I've scoured Google and can't seem to find anything that points me in a "code from scratch" direction. Has anyone worked with this, or perhaps there are some resources you might know of? Thank you. G
  7. @bernhard Thank you. I am using that extension. I'll be sure to follow your guidelines regarding logic as I move forward. Greg
  8. @bernhard I absolutely love Rockfrontend and latte, it's so intuative!! The only issue I'm having is bracket pair colours in Visual Studio Code. Is there a way to get VSC to highlight the brackets and div pairs in a *.latte file? I'm sure there must be, I can't seem to find anything online.
  9. Thank you for checking, at least I know I'm not going mad. Okay so I've managed to figure out it has something to do with a Jquery script that's being loaded. As soon as I disable that, it works as expected. I never would have thought of that. I now need to figure out why jquery is changing the behaviour.
  10. Hi, I realise this isn't strictly a process wire question I'm putting it here because of the wonderful help I've had in the past. I've done a lot of reading about but honestly, I'm not getting it. I'm trying to implement a simple search bar in my PW website but user input isn't being captured. <div class="search-box"> <form id='searchForm'> <input type="text" placeholder="Search anything" id="searchMeNow" value='aaaaa'> <a href="#" class="search-btn" id="searchButton"> <i class="fa fa-search"></i> </a> </form> </div> Here is the script which is in test phase, once I have an output from the value field I'm good to go. I'm not sure why this isn't working as far as I know, it should? My alert box returns empty after pressing enter? <script> const form = document.getElementById('searchForm'); //alert(form); form.addEventListener('keypress', function(e) { if (e.keyCode === 13) { /*Testing*/ /*Returns and Empty Value*/ alert(document.getElementById('searchMeNow').value) e.preventDefault(); } }); </script>
  11. So, I'm not sure what the issue was with the host I was using. They maintained there was a security issue with the opcache. After some research, I see there was one, somewhere around 2018 whith earlier versions of PHP. It seems none of the hosts I use now have the urge to switch it off. In a nutshell: BitPoet's solution didn't work but, I'm sure that was due to the hosts settings. I moved to another host. Up till this host, I'd never had the cache issue before. G
  12. Hi! Another solution was to use the: CustomAdminMenus module by @Robin S, thank you Robin!! It allows for up to 3 top level entries with multiple entries below. A perfect solution for my purposes. https://processwire.com/modules/custom-admin-menus/
  13. Hi, I'm getting this error on a new host: I've never seen it before and wondered if someone has dealt with something similar in the past? If so, were you able to solve it? Also, according to phpinfo(); mod_rewrite is enabled but none of the urls are working. I'm ready to move her site to a new host but thought I'd ask here first. Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /usr/www/users/floreng/000/site/assets/cache/FileCompiler/site/modules/AdminLinksInFrontend/AdminLinksInFrontend.module on line 170 Warning: session_name(): Session name cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 294 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 297 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 298 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 299 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 300 Thank you so much.
  14. Hi, I have a settings page which I'd like to include in the admin menu since I'm in there all the time. How do I do that? Thank you.
  • Create New...