Jump to content

ryanC

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by ryanC

  1. Hi, I have created a new install of Processwire 3.0.98, (local machine) and I am unable to install any modules from within Processwire itself. I go to Modules/Site/Add New/ then under "Module Class Name" I enter the name. The module appears, I hit "Download and Install", but I always get an error. For example: "File could not be downloaded (https://github.com/adrianbj/TracyDebugger/archive/master.zip) 2: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version, 2: fsockopen(): Failed to enable crypto, 2: fsockopen(): unable to connect to ssl://github.com:443 (Unknown error) (tried: curl, fopen, socket)" I have been able to track down some of the modules and just upload the zip file manually, but this is happening with every module that I had previously installed in another installation with no problems. Any ideas? Thanks!
  2. Thanks BitPoet, man I already had it set up that way originally. I don't know why I changed it. My template already had: <?php $myPath = $config->urls->templates;?> at the top, and my links were already "<a href="/site-name/pagename"> So now it works again by reverting. Not sure why I changed it... I guess I just didn't comprehend what that <?php $myPath = $config->urls->templates;?> was doing... means my site name itself can be anything I want. Thanks!
  3. Hi, I am testing my site on a local machine. I am having an issue with navigation links being broken on my form template after changing the link paths from direct to relative: I have two templates, “main-template” and “form-template”. Those templates include the same header file: <?php include("includes/header.inc.php"); ?> That file contains the site navigation. Originally, the links were direct paths: <a href=“/site-name/pagename”>Page with direct path</a> But I changed them to relative paths: <a href=“../../pagename”>Page with relative path</a> So far, so good. Everything works on the site except the navigation on the form page breaks. Clicking on those links wants to take me back to my root htdocs folder. I think it might have something to do with the form not being able to post to a template file, so it posts to itself instead. I have found a temporary work around, which is create a NEW header include file that only the form template uses. If I give those links shortened relative paths: <a href="../pagename"> It all works, except I now have two unique navigation menus I have to keep track of, when I would rather have just one header file for the entire site. Any ideas on how I can keep the same header file with the main-template and form-template? Thanks!
  4. Do I make that change to the "TracyDebugger.module" file on my desktop, or is this in the processwire api itself?
  5. Cross post...Ok I hit reload and now I see a bunch of stuff in network. One sec...
  6. Here's everything in one window:
  7. That's the thing, it's not behaving like a link. When I hover over it, I get a tooltip that says it's Tracy, but that's it. My cursor doesn't change like it would if I was hovering over a link, it's just like its inline text. So when I hit inspect element (over the icon) those are the errors in the screenshot from my first post.
  8. Hi, I just uninstalled/reinstalled, still just that little icon on the left hand side. -In my Chrome dev area I get network errors, but none appear to be about Tracy. -I don’t know how to check if there are permission issues in the Tracy folder -I went here to download Tracy…https://tracy.nette.org/ and it seems to have the same folders and files that processwire installed. I think yesterday (when it was working) I minimized the panel by clicking the little arrow and I don't remember seeing it after that.
  9. Hi Adrian, 1-I just set PW’s debug mode in the config file…I think previously it was set to false, but tracy was working anyway. The other questions I am not sure how to go about solving. I think I will try to uninstall then reinstall Tracy first, if that does not work I will see if I can go over each bullet point. Thanks!
  10. Hi, my Tracy Debug bar has gone missing. It was in the lower right hand corner of the screen, but now there is just an icon that doesn't do anything in the lower LEFT hand corner of the screen. Before this I exported my site profile and am working on a new site, though I'm not sure what that would have to do with it. I have looked at all the options on the module settings page and no matter what I choose, nothing happens. I have now just upgraded to version 4.8.23. I'm testing locally on MAMP. Attached are some screenshots of the icon and the errors I get in Chrome. Any ideas? Thanks!
  11. Thanks flydev! I pasted your code into my template, and I got the attachment in the email! I owe you a beer. I've been slowly reading the php documentation on file uploading, to try to understand the theory behind all this stuff, so I can better understand the tips you guys are giving me. Thanks again!
  12. Ok guys, this is going to be my last question for awhile. I am really trying here, and I'm getting really frustrated. I just went to stack overflow and asked a question hoping someone would helpfully explain to me how image attachment works, and I instantly got a bunch of down-votes. If at some point, someone could just in simple english give me a paragraph or two of the theory behind image attachment... not even the code to make it happen, just an overview of how the process works for someone with limited PHP knowledge. From that, I can probably do some forum searches on updating my script. In the mean time I believe I will see what PHPMailer is all about, I can do a simple contact form now through processwire so I am happy about that.
  13. Bernhard, I had this post up for a few days, and didn't get a response so I figured that was because it was in the wrong area.
  14. Thanks adrian, yeah I know I'm way out of my element here. I appreciate the help given with my site by you guys. As of now, I have form that works and sends emails. If I have to leave it at that, I can live with it for now until I learn more about PHP. Regarding the "known path to image", that's what I can't really get my head around... I don't know what that path is. All I know is the "path" is the actual field itself is "user-image". I'm trying to speak in full sentences with this stuff and I'm still learning basic vocabulary. As of now, I can LITERALLY do anything in processwire I would want for a website EXCEPT put an image in an email. So that is something! I'm re-reading posts in these forums over and over again, trying to get it... I will figure it out eventually.
  15. Thanks horst, my form uses POST method. I will see if I can apply some of what you wrote to my code.
  16. Does anyone have ideas on this? I guess there is way more to it than just the wireMail attachment code above. I've been looking at swiftmailer, php mailer...of those two, which would be easiest to integrate into ProcessWire for attachments?
  17. Hi Fractalflux, I'm also a designer with a lot of HTML/CSS experience but very minimal PHP. It can be challenging, but once you wrap your head around where to place the processwire/php tags, you can do quite a bit. I was really struggling when I got started, but with some help from the forums I'm wrapping up a website that has a lot of functionality. I chose this route because as someone who is more confident just writing my HTML and CSS by hand, I was looking for a CMS that would let me do as much by hand as possible, and I didn't want to get into WP etc. and something where all my options were pre-cooked modules that I had to code AROUND. I've had enough of coding around pre-made systems. I think once you know the basics of how to create your templates, and how to make sure your links/images show up correctly, it's basically back to HTML/CSS mode.
  18. So, taking my code from earlier that makes a temporary upload path, I have: $upload_path = $config->paths->assets . "files/useruploads/"; then $userimage = 'user_image'; $mail->attachment($upload_path->$userimage); $mail->send(); what am I leaving out?
  19. Hi, I am trying to implement wireMail attachment method into my form. I started a thread in the 'getting started' area but maybe this is the better place for it since it is specifically about wireMail. Basically I just want someone to be able to add an image to a form, then send it in an email. The field in my form is: <input type="file" name="user_image" /> I've been looking at this thread and trying to cobble something together. I am very new to php. I know this is wrong but this is as far as I can make out what I'm supposed to do: $user_image = 'user_image->$filename'; $mail = wireMail(); $mail->attachment($filename); $mail->send(); Any links to any other forum threads, or php info, would be greatly appreciated. I've been trying to figure this out for two days. The documentation at https://processwire.com/api/ref/wire-mail/attachment/ is nice and simple but too simple for where my understanding is at. Thanks!
  20. documentation for wireMail attachment says: $m->attachment(string $value); string = Full path and filename of file attachment. But I get lost here. In my form, $value is $user_image. But how do I find out the path when it's just someone's computer desktop? Am I anywhere near coding this correctly? I am trying a hybrid of the attachment documentation and posts from this thread: https://processwire.com/talk/topic/5704-wiremailsmtp/?page=7&tab=comments#comment-142333 my form image field is called user_image. This is my script: $user_image = 'user_image'; $tempname = $user_image->$filename; $mail = wireMail(); $mail->attachment($tempname); $mail->send();
  21. Hi flydev, I tried that a little last week but I'm missing something. I'm still pretty new to php so I know there is a step I'm leaving out. I had already tried these: $mail->attachment($config->paths->assets . "files/useruploads/"); $mail->attachment($user_image->$config->paths->assets . "files/useruploads/"); $mail->attachment($files); $mail->attachment($user_image); then... $mail->send(); But the image isn't included with the form content. Is it being canceled out by the wireUpload code that precedes it? I would actually much prefer the $mail->attachment method, but since that wasn't doing anything I settled for the wireUpload putting the image on the backend.
×
×
  • Create New...