Jump to content

lele_ballack

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

3 Neutral

About lele_ballack

  • Rank
    Jr. Member

Recent Profile Visitors

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

  1. Eventually managed to solve this issue, even though it leaves me with lots of questions. Comparing this website with other fully working websites on the same server, I noticed that the some folders permissions were different. In the working websites, the folders assets and modules belonged to the www-data both as user and group, while in this website those folders belonged to the SSH user as a user and to the www-data as a group (to which the SSH user is part). Changing the latter owner settings to www-data, solved this config issue. I'm not sure about the reason behind it, but now it all works and able again to add new modules from the front end. Thank you all for your help and suggestions! 🙂
  2. Hi @Karl_T, thanks for your suggestion. I did check the permission group and the SSH user is already in it. Just to dig into it and understand more why there is this issue, I did upload on the server a brand new Processwire Blank installation, and there is exactly the same issue, even though when I log in the banner "This site is in debug mode" appears. I'm truly at a loss about what could be the issue!
  3. Hi @adrian, thanks for the heads up! I did read all Tracy docs and now I understand much better how it works. There are no main errors showing. I did try the $config->moduleInstall('download', true); option, but it didn't work. Following up with @wbmnfktr, I tried swicthing back to the last master, but nothing changed whatsoever. I'm still stuck with this issue, and using FTP for the time being, even though it's not ideal in a team environment. What baffles me is that the other websites all have the 3.0.174 and no issues at all!
  4. Thanks for your quick reply @wbmnfktr. I'm actually at the end of my workday, I'll do that tomorrow and keep you posted! Thanks a lot for your precious help! 🙂
  5. Hi @wbmnfktr, thanks again for your reply. I tried all the options, even checked via API and the debug property is correctly set to true, So I'm at a loss. FTP is definitely an option, but it's not ideal having to work with others on this project. And thanks for your suggestions, @BitPoet! I tried it, but again to no avail. What I noticed, comparing it to other websites on the same server, is that Tracy is flared up, the bug icon is red in this website. Is there a place where I can check what's the issue that Tracy found?
  6. Hi @wbmnfktr, thanks for your reply. I do have access via SSH to the server so I could check that the changes were actually submitted. And I checked as well the site/config.php file and there is only one $config->debug line. I tried deleting the site/config.php altogher from the server and loading a new copy of the same file and it has worked to some extend, because for example now Tracy started working and appeared at the bottom of my screen (while before, enough though it was enabled, Tracy didn't appear), but I'm still unable to add new modules. And this is the first time anything like this happens to me after having built and loaded on servers several PW websites.
  7. Hi all, I've just put online on my server a new website, and I'm faced with an issue that so far I'm unable to solve. I've edited both the wire/config.php and the site/config.php to $config->debug = true; but when I go into Modules to add a new one, I always get this message: This issue doesn't appear in my local version, while it shown in my server version. I'm currrently unable to figure out any way to overcome this issue (ProcessWire 3.0.174). Can anyone help me solve this issue?
  8. I have a counter in my homepage that keeps track of different indicators. Some of them are manually inserted in the back end, while some other should be the results of different page count. For example, I have this variable that returns the number of articles: $articles = $pages->find("template=outcome")->count(); And I would like to insert it in the field 'Counting' that's rendered inside the counter in the homepage: <?php foreach ($page->Counter as $counter) { ?> <div class="col-xl-3 col-lg-3 col-md-6"> <div class="counter-wrapper single-counter mb-30"> <div class="counter-icon"> <i class="<?=$counter->Icon?>"></i> </div> <div class="counter-text"> <h3><span class="counter"><?=$counter->Counting?></span><span class="plus-icon">+ </span></h3> <p><?=$counter->Title?></p> </div> </div> </div> <?php } ?> How could I achieve it? How can I pass a variable through a field?
  9. Thanks a lot @Ivan Gretsky! You're right, it was way easier than I thought! It worked like a charm! 🙂
  10. There is something about a search form that I'm unable to solve. My search form has a text input that searches through fields of a specific template: // keyword input if(isset($input->get->q)) { $keyword = $sanitizer->text($input->get('q')); $selector .= "title|Abbreviazione|Sottotitolo|Titolo_Testo.Titolo|Titolo_Testo.Testo~%=$keyword, "; $input->whitelist("q", $keyword); } In this template, there fields are: title, Abbreviazione and Sottotitolo (text fields) and Titolo_Testo (repeater made of text fields Titolo and Testo). When I search any word, it returns the matching pages, but when I reset my form to (or search) an empty value, it only finds pages where the repeater Titolo_Testo is set and filled. How can I instruct it to search for repeaters only if they are set and get all pages results on an empty value search? Or else, is there a way to detect an empty search value as isset still returns true? I'm using PW 3.0.165. Thanks a lot!
  11. Thank you so much @Robin S! Your solution works really well!
  12. Hi everyone, I'm trying to build an index with all the fields' name that belong to a template, excluding those fields that are empty. <?php $i=0; foreach ($page->fields->find('limit=3') as $field) { ++$i;?> <li> <a class="list-item" href="#par-0<?php echo $i;?>" title="<?=$field->name?>"><?=$field->name?></a> </li> <?php } ?> Are there ways to do it in the selector? Thank you 🙂
  13. Thank you so much @kongondo! The tutorial link was pretty clear and this solution works like a charm!
  14. Hi everyone, I'm trying to create an article index using all the heading titles of an article, but haven't succeeded so far. I tried with: foreach ($page->text->h2 as $heading) But I get this: "Notice: Trying to get property 'h2' of non-object" What's the best way to get all the h2 tags inside the textarea? I'm using CKEditor to write the articles. Thank you!
  15. Thanks @kongondo for your quick reply! That worked really well and the warnings disappeared! Just noted that there is small bug though after implementing the new code: the comments counter appears now in the dashboard (title and icons only, without any real counting) even though I chose a blog installation with no comments.
×
×
  • Create New...