Jump to content

Greg Lumley

Members
  • Posts

    76
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Greg Lumley

  1. 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.
  2. 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.
  3. 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. 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
  5. I've only just realised I should have put this in Modules. 🤷‍♂️
  6. 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.
  7. Thank you for sharing, how's it working out?
  8. 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.
  9. 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.
  10. 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. ?
  11. 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.
  12. Thank you! I think I was overcomplicating it in my head. ?‍♂️
  13. 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
  14. @bernhard Thank you. I am using that extension. I'll be sure to follow your guidelines regarding logic as I move forward. Greg
  15. @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.
  16. 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.
  17. 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>
  18. 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
  19. 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/
  20. 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.
  21. 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.
  22. @millipedia Thank you for your help. The URL/Path hooks would do the trick. However I'm inclined to agree with you. I bought an SEO course, and concise urls were suggested, I also felt it would be overkill. And does Google care? Especially when it's logically set up. Thanks for the suggestion on Lighthouse, I'll definitely put more effort into that. "Great looking pictures, though." Thank you. ?☺️ Hope you're having a great weekend.
  23. Hi! Happy Friday!! I'm doing a huge SEO cleanup on my site. At the moment I have urls like: https://www.greglumley.com/photographer/weddings/creative-wedding-photography/ Is there a way to remove "photographer/weddings" from the url without actually moving the page into the root? Of course this would also break any outside links to a specifically moved page too. This would mean I'd also need to setup permanent redirects too. I'd like the url to read: https://www.greglumley.com/creative-wedding-photography/ instead. I've got quite a few pages and I'd like the urls to be much cleaner than they are now. I'd love any suggestions on what you might do? Thank you so much.
  24. Found the issue, I hadn't realised that Hostgator's control panel ammended my .htaccess When I uploaded the local version I didn't have the lines below: # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php81” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit G
×
×
  • Create New...