Greg Lumley
Members-
Posts
76 -
Joined
-
Last visited
-
Days Won
1
Greg Lumley last won the day on May 6 2020
Greg Lumley had the most liked content!
Contact Methods
-
Website URL
www.greglumley.com
Profile Information
-
Gender
Male
-
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 (4/6)
57
Reputation
-
Hi, I'm getting the following errors on my site. Could anyone tell me what the issue is? Notes: All these errors seem to be referenced in the database looking through the .sql file in vs code, I'm not sure what to do about them though. Duplicator Module: I pulled the latest version of the duplicator module but it crashed the site I manually deleted the folder. Once the site was up and running, I deleted the module from the database and refreshed Thank you in advance.
-
Using DDEV for local ProcessWire development (tips & tricks)
Greg Lumley replied to bernhard's topic in Dev Talk
I'm really enjoying DDEV and ProcessWire as I dive back into web development more seriously after many years. However, debugging has always been one of my weak areas, and I'm keen to get that sorted out. So far, I've struggled to find a great tutorial on setting up DDEV with VS Code specifically for ProcessWire. Most of what I've come across are lengthy Drupal tutorials with Drupal-specific settings, which end up overwhelming me. If there isn't a good resource out there, could you please share your setup procedure and the VS Code extensions, settings you've made in "settings.json" that you use with your DDEV ProcessWire environment? For example, I'd like to be able to open a file with a reported error from Tracy Debugger in VS Code, by clicking on it but of course: but my current setup isn't allowing me to do that. I'm also using RockFrontend—thank you @bernhard It's a pleasure to work with, especially when adapting static HTML templates. Thank you so much. -
Oh boy! Of all people I know to provide details and I didn't! Apologies! No, as it turns out there is some sort of error in an array: I have the following code in _main.php (simplified for ease of explanation): <div id="content"> <h4 class='text-center'> <br><br><br><br> We're making a few backend updates to the site, please check back shortly. </h4> <br><br><br><br> </div> If all goes well with RockFrontEnd parsing a template, the <div id="content"> is overridden with the latte template output. If however, there is an error in RockFrontEnd parsing of a .latte template, it outputs: "We're making a few backend updates to the site, please check back shortly." Which is great for the end user but not for me while developing because I didn't know what the actual error was. Enter TracyDebugging tool: Through my own fault: I didn't have debug enabled for certain templates. Hence it wasn't visible on pages I was trying to debug. I seriously need to polish up on my debugging skills. I hope that makes sense. Greg
- 4 replies
-
- rockfrontend
- tracy debugger
-
(and 1 more)
Tagged with:
-
For Tracy Debugger - I've figured out that I hadn't set the debug bar in selected templates. This will allow me to move forward
- 4 replies
-
- rockfrontend
- tracy debugger
-
(and 1 more)
Tagged with:
-
I've only just realised I should have put this in Modules. 🤷♂️
- 4 replies
-
- rockfrontend
- tracy debugger
-
(and 1 more)
Tagged with:
-
I need help please, I'm having a difficult time debugging with Rockfrontend, there seems to be some sort of error and it isn't parsing the "content div" So it outputs the default home page content div instead. Since there is no visible error to work with, It makes the bug difficult to find. Also, although I've got Tracy Debugger installed, it isn't visible. I can't seem to see what I'm missing. I'd apprecaite any input and advise please. Thank you so much.
- 4 replies
-
- rockfrontend
- tracy debugger
-
(and 1 more)
Tagged with:
-
Comments module with Cloudflare Turnstile
Greg Lumley replied to millipedia's topic in API & Templates
Thank you for sharing, how's it working out? -
Ddev is astonishing! Here are a few notes from a Windows user.
Greg Lumley replied to Greg Lumley's topic in General Support
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. -
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.
-
Using DDev - Database connection information did not work.
Greg Lumley replied to Greg Lumley's topic in General Support
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. ? -
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: 127.0.0.1:32781 │ User/Pass: 'db/db' │ │ │ │ │ or 'root/root' Is there something else I should be doing when trying to connect? Thank you.
-
Facebook Conversion Api - has anyone done anything with this?
Greg Lumley replied to Greg Lumley's topic in General Support
Thank you! I think I was overcomplicating it in my head. ?♂️ -
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
-
@bernhard Thank you. I am using that extension. I'll be sure to follow your guidelines regarding logic as I move forward. Greg
-
@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.