Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Rob(AU)

  • Rank
    Jr. Member
  1. Hi Ben, I've been using another Payments module. Am I understanding correctly that yours does not depend on the PaymentModule? If not I can uninstall the unused modules ... Thanks
  2. Hi Adrian, currently it is set at: memory_limit 768M Is that going to be enough? The site has less than 200 pages. Thanks
  3. I am having issues with my site being very slow, for both the front and back end. Having researched and looked at previous posts on the topic has not helped, but the threads I could find were from a while ago. The error I'm getting in the Exceptions Log is: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away In /wire/core/WireDatabasePDO.php line 499 Tech support for my hosting investigated and could not see any MySQL issues. At the same time, the dev copy of the site on my localhost is also going slow. Another site on my localhost is working as normal, so that seems to eliminate the hosting as a problem. I am hoping someone can shed some light on what might be causing this. Thanks
  4. Thank you MoritzLost, you understood the structure correctly. I see now how to access the ingredientType field for each of the ingredients included in the repeater. How do I include / append that data in the array from the repeater to then do the sort?
  5. Hi, I am learning PHP while in the process of building a recipe website and enjoying the challenge. One dilemma has stumped me. I have an Ingredients List page, which is parent to a series of ingredient pages. The ingredient pages has two fields, Title and ingredientType (for spices, dry, wet, vegetables etc). Thus there is one list of Ingredients available to be included in recipes. On the Recipe template there is an Ingredients Repeater field that includes fields for quantity and extra details (like room temperature for butter for example) as well as the ingredient field. If I include the ingredientType field in the repeater it shows as a blank field rather than showing the data saved from the ingredient page. It looks a little like this: Ingredients List page ingredient page - title field - ingredientType field Recipe page title field description field Ingredients repeater field quantity field ingredient field ingredient details field What I want to do is be able to include the ingredientType field in the array that the Recipes template uses to output the Recipe page. I will then use the ingredientType to sort the Ingredients Repeater data for output. Conceptually this could either be at the adding a new recipe stage, or by somehow adding the ingredientType data to the array used for page output. I just can't work out how to do it. Any clues would be greatly appreciated.
  6. I have found a solution and thought I would share it for the benefit of others. It may not be the most efficient or elegant solution but it is working. After some trial and error the solutions suggested in topic 7659, especially by formulate, began to make sense. In the tagging.php template file is the following code: $fullList = $pages->find("$searchTxt=$thisTag"); // this select all pages where page field "Tags" contains a page with title of our tag $tagList = $pages->find("$searchTxt=$thisTag, limit=10"); // this selects the same as above but limits the rsults for pagination $session->taggedPages=(string)$fullList; // save the result of the first search for use in the portfolio template In the portfiolio.php template file the following gets the prev / next pages from the tag search: $fullList=$pages->find("id=" .$session->taggedPages); $next = $page->next($fullList); $prev = $page->prev($fullList); This means that going to the prev / next page is not limited to those paginated on the tagging page. I hope that makes sense and helps someone else.
  7. Thank you horst, that solved an issue I was yet to solve. dragan, your clue was too cryptic for my limited knowledge. PW is certainly easy to work with if you are prepared invest some thought. My issue is not solved, but that's because I didn't describe it clearly enough. The page with the thumbnails (now paginated!) lists all the images with the selected tag. It is based on my tagging template. Clicking a thumbnail opens a page based on my portfolio template for the individual image, each of which has it's own page. What I would like to do is have the prev/next links on the individual, portfolio template styled page move through the images that were on the tagging page. This will change depending on the selected tag, and will be different to where the images sit within the content tree. How would this work in PW? I have a sense that it involves sessions ... but have not been able to work it out.
  8. I am building a portfolio site based on PW 3.0.124 and learning php as I go. The site uses various tags on the pages for each image. The tagging is sorted and clicking a tag link brings up a page of links to images with the same tag using the following code: $searchTxt = $page->searchTag; $thisTag = $page->name; // Current clicked tag $tagList = $pages->find("$searchTxt=$thisTag"); // select all pages where page field "Tags" contains a page with title of our tag I have a Prev / Next section on the image pages, but it relates to the tree location, rather than the tagList page. My guess is that the $tagList array needs to somehow be saved to be used to iterate through it, possibly using sessions ... but I can't figure out how to do that. Any help/pointers would be appreciated.
  9. Thanks wbmnfktr, you put me on the right track. I had WireMail: SMTP installed but not configured. I actually uninstalled the module and emails are now being sent. I am having an issue where an email is sent to my address, but not to the person using the Contact form. The following is in the contact page template: <?php $scf = $modules->get('SimpleContactForm'); $options = array( 'btnClass' => 'butn1', 'btnText' => 'Send', 'emailMessage' => 'You have successfully sent a message to Rob', 'item_label' => "", 'classes' => array( 'item' => 'input-field' ) ); echo $scf->render($options); ?> <br ><br ><br ></div> </div> <?php include('./includes/foot.inc'); ?> Any clues would be appreciated.
  10. I have installed the module and the page appears as expected. The submit button works and redirects to the success page, or not if it detects spam. No emails are sent and I get the following errors in the log: [ERROR] Mail has not been sent to Name [ERROR] Additional mail could not be sent to Name running PW 3.0.123 on PHP 7.1.31 I have searched the forum for a solution. Can anyone suggest where else I might look to solve this?
  • Create New...