Jump to content

creativeguy

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by creativeguy

  1. Hi all, After a google search and a couple searches on processwire nothing turned up, but thought it was still worth asking here. Is there anything resembling a discussion forum module or plugin (not sure the best term) that can be installed in a PW site that would provide the tools to build a community forum? Thanks in advance for any pointers.
  2. Thanks @ryan - I'm Shawn, and my friend that passed was Anthony Taylor. Apparently he corresponded with you to some extent. It was the htaccess as you said. Thanks for the help.
  3. Hi all - I'm a designer with a little coding experience. My friend, a PW user, forum contributor, developer, passed away in 2020. I've now inherited a number of projects he worked on. I know a beginner level about processwire, but I'm not a server/technical guy. So, my issue is likely so simple, it's not even a problem, but it is to me, in any case. I grabbed a copy of a live site built a couple years back, and installed it locally in my Mac MAMP dev environment. I managed to reconnect the site to the DB on my local and can visit the local URL and the site loads. However, if I click on any page in the menu I get a "Page not found" error. When the main page does load, when I turn on debugging, I get this message: Notice: Trying to access array offset on value of type int in /Applications/MAMP/htdocs/giftfunds/wire/core/PagesLoader.php on line 138 I can find that page, but I don't know what that error means, or if it's an error, or if its related to my problem. That line of code is as follows: if($selector[0] == '/') $selector = "path=$selector"; A little guidance would be appreciated.
  4. I'll take a look. That other site has since moved to a different platform (no longer hosted by me), but I do have an archive version. I'll pop the admin open on my local and take a look at the differences. That might take a week or so, though. I'll update this once I'm able to do that.
  5. Thanks both of you for the help. Actually, your dialogue back and forth got me to thinking I should check the blog post entry in the admin. I found the issue. There seems to be an error between the comments manager as a separate utility, and the comments on the page itself. The same comment that is "Approved" in the comments manager is marked "SPAM" on the blog-post page in the admin. Once I set the status inside the post VS the manager, the correct status is reflected on the site. So, there's a problem between the comments manager and the site-wide approval of the comments. Weird.
  6. Sorry, I wasn't clear. Approved comments are not showing up on the site. Yes, I have another PW site that uses comments and it works as you describe. This site does not. No comments, approved or otherwise, appear on the site. I only see them on the site if I'm logged in.
  7. Yes, I went through that as well, as I mentioned, I can't see anything in my settings that would prevent a user from seeing comments.
  8. Hi everyone. First, my blog site is NSFW. It's a sex doll blog. FYI. I just realized today that people have been commenting away on the blog, but I didn't even know. They weren't (and still aren't) displaying on the site. I just thought no one was engaging with comments. Nope. I only realized it because I was logged in and writing a blog post. I forget why, but this time I stayed logged in to the admin and loaded a post to check something, then saw a whack of comments. But, it was half legit and half SPAM. I popped over to another browser where I wasn't logged in and there were no comments displayed. I then popped into the admin and checked the comments - sure enough they they are. But, they have been set variations of either "Pending" or "SPAM". I was seeing them all on the posts. I then checked the template - not written by me, and I'm not a developer at the level of most here - I'm a creative pro with some experience. I can't recognize a glaring problem, but obviously there is one and I can't diagnose it. On the blog-post.php template, here's the code to kick out a blog post comment and the form: <?php // blog post content echo dbbBlogPost(page()); // comments $comments = page()->comments; // comment list if(count($comments)) { echo ukHeading3("Comments", "icon=comments"); echo ukComments($comments); } // comment form echo ukHeading3("Post a comment", "icon=comment"); echo ukCommentForm($comments); // link to the next blog post, if there is one $nextPost = page()->next(); if($nextPost->id): ?> <p class='next-blog-post'> Next <?=ukIcon('chevron-right')?> <a href='<?=$nextPost->url?>'><?=$nextPost->title?></a> </p> <?php endif; ?> This is what's in the _func.php: function dbbBlogPost(Page $page, $options = array()) { $defaults = array( 'summarize' => null, // Display blog post summary rather than full post? (null=auto-detect) 'metaIcon' => 'info-circle', 'moreIcon' => 'angle-right', 'moreText' => __('Read full post'), 'categoryIcon' => 'hashtag', 'bylineText' => __('Posted by %1$s on %2$s'), ); $options = _ukMergeOptions($defaults, $options); $title = $page->title; $date = $page->get('date|createdStr'); $name = $page->post_author->title; $body = $page->get('body'); $mainImage = $page->image->url; $metaIcon = "<i class='fas fa-".$options['metaIcon']."'></i>"; $moreIcon = "<i class='fas fa-".$options['moreIcon']."'></i>"; $categoryIcon = "<i class='fas fa-".$options['categoryIcon']."'></i>"; $n = $page->get('comments')->count(); $numComments = $n ? "<a href='$page->url#comments'>" . ukIcon('comments') . " $n</a>" : ""; $gallery = ""; if($options['summarize'] === null) { // auto-detect: summarize if current page is not the same as the blog post $options['summarize'] = page()->id != $page->id; } $categories = $page->get('categories')->each($categoryIcon . "<a class='uk-button uk-button-text' href='{url}'>{title}</a> " ); if($options['summarize']) { // link to post in title, and use just the first paragraph in teaser mode $title = "<a href='$page->url'>$title</a>"; // $body = sanitizer()->truncate($body, $options['summarizeOptions']); $body = explode('</p>', $body); $body = reset($body) . ' '; $body .= "<div class='post-preview-more'><a href='$page->url'>$options[moreText] $moreIcon</a></div>"; $class = 'blog-post-summary'; } else { $class = 'blog-post-full'; } if($options['summarize']) { $heading = "<h2 class='uk-margin-remove'>$title</h2>"; } else { $heading = "<h1 class='uk-article-title uk-margin-remove'>$title</h1>"; } $byline = sprintf($options['bylineText'], $name, $date); if(!$options['summarize'] && $page->gallery) { $gallery = renderGallery($page); } // return the blog post article markup return " <article class='uk-article blog-post $class'> <img class='feature-image' src='$mainImage' alt='Post image' /> $heading <p class='uk-margin-small'> <span class='uk-article-meta'> $metaIcon $byline </span> <span class='categories'> $categories </span> </p> $body $gallery </article> <hr> "; } I also know there's a comments field with various settings, but nothing I can find there would prohibit anyone from seeing comments, nor would it specifically show a logged in user all comments including SPAM. Any guidance would be appreciated.
  9. I posted something here about a year ago for the same reason, but now a different site. My developer partner and Processwire guy Anthony passed away in 2020. I now have to make some modifications to a PW site he created for one of our clients. Not sure how best to describe the issues, but I'll try. The site was hacked and redirecting to a Viagra website. He called me, and I asked him to contact GoDaddy, as this wasn't really a design issue. They sorted it out, but recommended he update the PW version and change the DB passwords, etc. My actions: I downloaded the latest PW and installed it as a blank profile I grabbed the DB data from GoDaddy and updated my local database I pulled down the "site" folder to get all the front-end files, etc. When I connected my clean PW install to the existing site data everything went haywire. When I log into the admin, I get these errors: Modules: Configurable module check failed for FieldtypeImage. If this error persists, please do a Modules > Refresh. Field: Fieldtype 'FieldtypeTextareas' does not exist Field: Fieldtype 'FieldtypeTable' does not exist Modules: Configurable module check failed for FieldtypeFile. If this error persists, please do a Modules > Refresh. Modules: Configurable module check failed for PagePathHistory. If this error persists, please do a Modules > Refresh. Then there's a list of "36 module version changes" followed by a number of "System updater ... skipped" items. I know Anthony used several Pro PW Admin add ons for grouping fields and such. I don't have those. Is that what's triggering this issue? Will I have to purchase all of them now as well, to be able to load and edit a site? Or is this something else? Did I do this the wrong way from the start? Some help would be appreciated - I'm a creative pro with limited knowledge of back-end.
  10. Awesome, thanks Robin. That's what I needed.
  11. Hi - wondering if there's a module or plugin for PW that would allow users to "Sign up for access" that would also manage what pages of a site are accessible to someone who's signed up using a valid email address? I did a search but didn't see anything of the sort. Thought I'd post here in case I'm missing something because I'm not searching the right terms. Again, I want to replace the "pay for access" my website currently uses for something that uses validated email as the signup mechanic. The idea is that users who sign up must "click to validate" their email address, and that allows them to "join site and get access to content". Any existing tools of this sort?
  12. I have a blog site that uses Processwire (among a few PW sites), but it was developed by my late friend, so I don't know of he used any special PW features to make it more "bloggy". I think he did, and I recall there was a blog-based theme or something, but I don't remember. Anyway... for the blog I'm considering adding a discussion forum to try and grow that as part of the brand. Is there a PW discussion forum tool? I know there are tools like phpBB, but before I look into that, I'd like to keep it in PW, if there is such a tool and IMPORTANTLY if it's secure.
  13. With help from Elabx, I'm now able to see it again on FF. The HTTP was being redirected to HTTPS so it was failing to load. Problem solved.
  14. Okay... well, this is interesting. I tried opening it up in another browser and it worked. Brave rejected it, but Firefox opened it.
  15. Update, I found the logs files in my MAMP folder. Nothing in the PHP log, but the apache log has a few things. [Sat Mar 27 09:30:19 2021] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Mar 27 09:30:20 2021] [warn] pid file C:/MAMP/bin/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Sat Mar 27 09:30:20 2021] [notice] Digest: generating secret for digest authentication ... [Sat Mar 27 09:30:20 2021] [notice] Digest: done [Sat Mar 27 09:30:21 2021] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.0.13 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations [Sat Mar 27 09:30:21 2021] [notice] Server built: May 6 2016 10:19:53 [Sat Mar 27 09:30:21 2021] [notice] Parent: Created child process 18520 [Sat Mar 27 09:30:21 2021] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Mar 27 09:30:22 2021] [notice] Digest: generating secret for digest authentication ... [Sat Mar 27 09:30:22 2021] [notice] Digest: done [Sat Mar 27 09:30:23 2021] [notice] Child 18520: Child process is running [Sat Mar 27 09:30:23 2021] [notice] Child 18520: Acquired the start mutex. [Sat Mar 27 09:30:23 2021] [notice] Child 18520: Starting 64 worker threads. [Sat Mar 27 09:30:23 2021] [notice] Child 18520: Starting thread to listen on port 80. [Sat Mar 27 09:30:33 2021] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/docs-assets, referer: http://localhost/MAMP/
  16. swapped out the htaccess - no luck. Sorry if this is an amateur question, but where would I locate the PH)P error logs in my local? Usually Anthony looked at those, so I never located them myself.
  17. Hi, and thank you both. My local environment is MAMP on Windows 10 PHPMyAdmin version: 4.4.15.5 Web server Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.0.13 mod_perl/2.0.8 Perl/v5.16.3 Database client version: libmysql - 5.6.34 PHP extension: mysqli PHP version: 7.0.13 My method was to take a copy of the database, download the relevant PW site from my host and create a new database with the live DB imported. I opened the config.php and changed the DB location, user and password to match those of my local environment and made sure 'localhost' was included in the array of URLs for the site. When I visit the site via locahost, the error indicated that the connection was refused by localhost. I tested my other local PW sites and they fire fine. I also went as far to do a clean installation of PW, and connect to the database, replacing the tabs and columns of the install to those of the new DB. The clean version of PW loaded fine in the browser, but not after connecting to the database.
  18. Okay, so, this is the pickle I'm in: My friend, business partner and development teacher - also a member of this community - passed away last year (not of COVID). I'm not sure what his PW handle was but his name was Anthony Taylor. I know a lot now about PHP, HTML and CSS because of him, and for that reason, I feel like I owe it to him to learn and maintain the sites he's built with me. My dilemma is that the site exists and is online, doing it's thing. But, I can't make a local copy work. I've compared the config.php to other sites I have in my local, but this one is more robust due to the nature of the site and it's features. I can't diagnose why it won't fire on localhost. And to make matters more difficult, he was the only person I knew and know with PW experience. No one here knows me or has any reason to help me. 2020 took a hit out of my bank account as well, so I can't even hire someone. What I'm asking I guess, is anyone out there willing to spend a little time looking at the code to see if there's something obvious to a knowledgeable person, or if it needs further effort. I can pay for time, but it might take a few installments. Anyway, I'll also mention a suitability warning: the site is adult-themed. Not illegal or something dark, it's a legit site with affiliations and a fanbase. I'd just want someone to know that before even responding. Let me know if there's anyone willing to give me a hand getting past this pot-hole.
  19. So, if I try to make more than one or two edits to content inside the admin, I get a red screen with this error (I swapped the actual local path for domain, just for clarity). This happens when I'm changing page content, not logging in or out.: Error: Exception: Please wait at least 15 seconds before attempting another login. (in C:\MAMP\htdocs\domain\wire\modules\Session\SessionLoginThrottle\SessionLoginThrottle.module line 97) #0 C:\MAMP\htdocs\domain\wire\modules\Session\SessionLoginThrottle\SessionLoginThrottle.module(65): ProcessWire\SessionLoginThrottle->allowLogin('admin') #1 C:\MAMP\htdocs\domain\wire\core\WireHooks.php(792): ProcessWire\SessionLoginThrottle->sessionAllowLogin(Object(ProcessWire\HookEvent)) #2 C:\MAMP\htdocs\domain\wire\core\Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Session), 'allowLogin', Array) #3 C:\MAMP\htdocs\domain\wire\core\Session.php(758): ProcessWire\Wire->__call('allowLogin', Array) #4 C:\MAMP\htdocs\domain\wire\core\Wire.php(389): ProcessWire\Session->___login('admin', '', true) #5 C:\MAMP\htdocs\domain\wire\core\WireHooks.php(698): ProcessWire\Wire->_callMethod('___login', Array) #6 C:\MAMP\htdocs\domain\wire\core\Wire.php(442): ProcessWire\WireHooks->run This error message was shown because: you are logged in as a Superuser. Error has been logged.
  20. DAMN - copy, paste,typing error. That got it. Thanks again!
  21. Here's one of the includes code. This is the whole code inside the includes file. <section> <hr/> <h4 class='caps' style='font-style:italic;'>Featured Collections</h4> <div class="home-features"> <?php $allFeatures = $pages->find('template=feature-page,sort=random'); $counter=0; ?> <?php foreach($allFeatures as $feature): ?> <?php $counter++; ?> <div class="home-feature"> <a href="<?= $feature->url ?>"> <img src="<?= $feature->images->first()->url ?>" /> </a> <p><?= $feature->title ?></p> </div> <?php if ($counter >= 5) break; ?> <?php endforeach ?> </div> <a class="seeall" href="<?= $config->urls->root ?>features">See All the Features ></a> </section>
  22. Yes, I caught that and and corrected it when I tried it, but it didn't work in any case.
  23. Hello again, sir. Amazing... NONE of those worked. I've been staring at my screen, reading each letter to make sure I didn't typo, and it's not getting there. I don't get an error, I just get nothing. The includes file is HTML with embedded PHP - do I have to echo something? The include returns NULL. I feel like I'm missing something really basic, but I can't figure it out.
×
×
  • Create New...