Jump to content

Arctic

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

4 Neutral

About Arctic

  • Rank
    Newbie
  1. Resolved: Removed the additional classes from init AND all whitespace around the processwire namespace declaration. Hi all, I'm using option 1 here for multiple sites with multiple databases: https://processwire.com/docs/more/multi-site-support/ Site 1 (the main site) works fine. When I try to log in to Site 2, I hit a blank page after login. The front end works fine. Here's the debugging info: Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/site-2/init.php:138) in /home/****/public_html/wire/modules/Process/ProcessPageView.module on line 142 Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/****/public_html/wire/core/Session.php on line 874 Warning: Cannot modify header information - headers already sent by (output started at /home/****/public_html/site-2/init.php:138) in /home/****/public_html/wire/core/Session.php on line 886 The extra lines in init are just classes, removing them doesn't change the error. Any ideas?
  2. Same here, I ended up rolling back to an earlier version of PW to import pages. I hope it can be updated; it's a really useful module.
  3. Thanks, that helped! Here's what worked in the end. $allFields = $page->getFields(); foreach ($allFields as $related){ if (strpos($related, 'related') === 0) { //get just the fields that start with related foreach ($related as $tag){ echo "<a href='$tag->url'>$tag->title</a>"; } } }
  4. Hello! I suspect I'm overlooking something simple, but I'm trying to loop through several page reference fields at once. However, this only returns results from related_1. $tags = $page->getFields('name=related_1|related_2|related_3'); foreach($tags as $tag) { echo "<a href='$tag->url'>$tag->title</a>"; }
×
×
  • Create New...