joe72joe
Members-
Posts
20 -
Joined
-
Last visited
Everything posted by joe72joe
-
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe replied to joe72joe's topic in General Support
@flydevthanks for the hint. I have to read that in peace and try to understand that. As a non-coder not so easy :-) -
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe replied to joe72joe's topic in General Support
-
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe replied to joe72joe's topic in General Support
@gmclelland unfortunately that does not work, I have the error messages again ... I think I will omit this part ... After the first shock I'm glad that the site is running again ... I will report if I can do it with the pagination thanks -
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe replied to joe72joe's topic in General Support
hmmm ... the "projects" stands for a variable, but I'm not sure anymore ... I had the code from the forum and modified it: https://processwire.com/talk/topic/12147-continuous-prevnext-links/ .. and it worked ... but I have to look at this again in peace, there seems to be a lot confusion in the code and with me ... -
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe replied to joe72joe's topic in General Support
Hello @wbmnfktr, thanks for your quick reply .. I build up an Template of my own no, i didn't After looking again in the Error-Logs there I saw this message: .../wire/core/Page.php(2458): ProcessWire\PageTraversal->prev(Object(ProcessWire\Page), NULL) for there in the past I had this Code-Snippet in the Bottom of one of my Template-Files: <div class="container"> <div class="col-sm-12"> <nav> <ul class="pager"> <?php $portfolio_pages = $pages->get->projects; ?> <li class="previous"> <a href="<?php echo $page->prev($portfolio_pages)->url; ?>" class="text-muted"><span aria-hidden="true"></span><i class="fa fa-angle-left"></i> Vorheriges Projekt</a></li> <?php $portfolio_pages = $pages->get->projects; ?> <li class="next"> <a href="<?php echo $page->next($portfolio_pages)->url; ?>" class="text-muted">nächstes Projekt<span aria-hidden="true"></span><i class="fa fa-angle-right"></i></a></li> </ul> </nav> </div> </div> After deleting this Snippet it works now again .. !!?? Not understandable to me, because this code has worked in the past. I'll leave it without this snippet for now. Apparently the code is not completely clean or it causes problems. thank you again -
After upgrade to 3.0.123 Pages aren't displayed correctly
joe72joe posted a topic in General Support
Good evening together, wish everyone a happy new year. I have a problem after updating to the latest version (from 3.0.116 to 3.0.123) I can log in, everything works. In the frontend, the start page is displayed, but as soon as I want to click on a subpage, only parts of the page will be displayed (In the frontend, a message will be displayed at the bottom of each subpage.) -> Internal Server Error The server encountered an internal error or misconfiguration and was not to complete your request. " The following error message appears in the backend under "Logs": Error: Exception: Selector must be string, array or Selectors object (in /homepages...../wire/core/PageTraversal.php line 410) This is very strange because before the upgrade to 3.0.123 everything in the frontend everything was shown (without error message). Although I have created backups with Duplicator, i'm afraid to delete everything on the server right now including the database to reinstall. My PHP knowledge are very rudimentary. Maybe someone in the forum knows this error message. Or should I better delete everything and reinstall the Duplicator package in the hope that this works Many thanks in advance. -
@adrian you are right. Now it works. I have cluttered up some of the syntax between html and php. In any case, the foreach loop had to go up, as I had suspected. I'm really excited about Processwire. After using Contao for a few years I am overwhelmed by the flexibility of this system. I will continuing with studying ... Many thanks for your help, guys
-
just noticed that my created repeater is a template, which is called in -> Templates "repeater_portfoliothumbs". If I change the foreach loop now in: <?php foreach($page->repeater_portfoliothumbs as $portfoliothumbs) { <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <?php foreach($portfoliothumbs->port) { I get this message: Parse Error: syntax error, unexpected '<'
-
sorry, i did it now. Thx
-
now i tried to put another loop at the top, but then i get an server error ... somehow I do not look through there. Is my syntax wrong? <!-- Portfolio--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <?php foreach($page->portfoliothumbs as $portSet) { <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <?php foreach($page->portSet as $port) { <div data-groups= echo "{$port->lb_home_port_datagroup}"; class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"> echo "<a href={$port->lb_home_port_img_thumb_url->url}><img src={$port->lb_home_port_img_thumb->url} alt={$port->lb_home_port_img_thumb->description} >"; <div class="portfolio-overlay"> <div class="caption"> <h5> echo "{$port->lb_home_port_titel}"; </h5> <span> echo "{$port->lb_home_port_description}"; </span> </div> </div></a> } ?> </div> </div> <!-- Thumbs End --> </div> </div> } ?> </section>
-
Hello, thank you for the quick feedback. Processwire is installed locally. When I put in the html-code in home.ph, everything looks good. As soon as I replace the tags, it works, too, but the pictures, titles etc. are placed one after the other at the respective position. That's why I think I would have to put the loop on top of the div data-group .. is just a guess ... but if I'm honest, I have no idea at the moment ... my php knowledge is very limited ... I do not see the forest for the trees :-(( respectively i can't find the error in the syntax
-
Hi, first of all, I wish the whole community a good start into the new year. After some time, I have some time again to take care of my implementation problem. I try to achieve that: That is the html-code: <!-- Portfolio Thumbs--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <div data-groups="["design", "web/ux"]" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"><a href="#"><img src="site/templates/port_1.jpg" alt=""> <div class="portfolio-overlay"> <div class="caption"> <h5>Titel 1</h5><span>Here my small description</span> </div> </div></a></div> </div> <div data-groups="["kataloge", "design"]" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"><a href="#"><img src="site/templates/port_2.jpg" alt=""> <div class="portfolio-overlay"> <div class="caption"> <h5>Titel</h5><span>description</span> </div> </div></a></div> </div> <!-- Thumbs End --> </div> </div> </section> In Processwire I have adapted the code, unfortunately, the images and the rest are displayed one below the other and not separated: That is the adapted code: <!-- Portfolio Thumbs--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <div data-groups="<?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_datagroup}"; } ?>" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"> <?php foreach($page->portfoliothumbs as $port) { echo "<a href={$port->lb_home_port_img_thumb_url->url}><img src={$port->lb_home_port_img_thumb->url} alt={$port->lb_home_port_img_thumb->description} >"; } ?> <div class="portfolio-overlay"> <div class="caption"> <h5> <?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_titel}"; } ?> </h5> <span> <?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_description}"; } ?> </span> </div> </div></a> </div> </div> <!-- Thumbs End --> </div> </div> </section> Processwire fields: I suspect the "foreach loop" needs to start at the top. I tried that but get constantly error messages in the syntax ... Can someone of the PHP professionals give me a tip how the code has to look, so that the div blocks place next to each other Thx in regard
-
Hello Steffen, thanks for the answer. I do not really want to have so many templates to achieve the goal, but keep the whole thing relatively light. My thought was that I basically have the home template, then by using the Tree -> Home -> "Edit" I always have a possibility to include a new block (Thumb) ... I have to confess that I'm not a PHP expert ... I just read by coincidence about content blocks - perhaps this could be an approach ... ? I will dig through the content Thank you first
-
Hello to the community, I am currently trying to implement an HTML template. Unfortunately, I do not know exactly which approach is right for the attached image. In the picture I have drawn up how my template is built. It consists of a home.php File. The header and the footer File is included in home.php. So far it works. My problem now is how I bind the tumbnails into the home.php now in a reasonable way. I would like to be able to control this block from the backend with fields. Should I directly put the source code (see attached image) in the home.php? Is it perhaps useful to put the thumbnails code into a separate .php file and include the file to home.php? Thanks in advance
-
After logout Fields aren't displayed on Frontpage
joe72joe replied to joe72joe's topic in API & Templates
woah, that was the error ... after allowing the guest to see the field it works. I am impressed. Thanks abdus for the quick help -
A greeting to the community, I have a very weird behavior regarding ProcessWire. Probably it is because of my very basic knowledge in PHP. I am currently trying to transfer an HTML template to ProcessWire. So far this works well. For example: in the admin, I set a new field, assign it to the template and enter the field name in the home.php at the relevant place. I see in the frontend the text, which I entered in the backend. Now the strange thing. When I logout of the backend and reload the frontend the fields are no longer displayed or rendered !! When I login and update the Frontend the Fields are again displayed ... Coud it be that some File Permission aren't be set correctly during installation, although I didn't get error messages The system runs at 1und1, ProcessWire 3.0.62. The File-Permission from config.php in site/templates is set to 440 Does anyone know this behavior. Many thanks in advance
-
1und1 after Installation blank page on backend
joe72joe replied to joe72joe's topic in Getting Started
@iNoize perfect, I've just tried it and finally, I see the backend ... thanks -
1und1 after Installation blank page on backend
joe72joe replied to joe72joe's topic in Getting Started
@dragan looked in this directory: -> site/assets/logs there are only two files: modules.txt + system-updater.txt can not find any "errors.txt" file @iNoize changed the # RewriteBase / to RewriteBase / now i get -> ----------------- Multiple Choices The document name you requested (/index.php) could not be found on this server. However, we found documents with names similar to the one you requested. Available documents: /index.html?it=custom-name/ (-> "custom-name" stands for my admin-directory, my path is structured like this: http://mysite.com/subdir/custom-name/) ----------- when I choose /index.html?it=custom-name/ the next message ist: The document name you requested could not be found on this server. Will continue to test and report thx -
1und1 after Installation blank page on backend
joe72joe replied to joe72joe's topic in Getting Started
@justb3a I enabled debug mode but nothing happens, blank page. After this i looked in the view source -> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style type="text/css"> html, body, #partner, iframe { height:100%; width:100%; ..................... it seems that the url's are not working or don't reach the backend ... i think i have to look in the .htacees file ... @LostKobrakai i will report thx -
Hello everybody, I have often heard of ProcessWire and now I have installed it on 1und1 Server. Everything worked wonderfully and all the necessary components were marked green. After installation, I'm able to access the front but once I click on admin login I get a white page. Tryed the installation already several times, but always with the same error. Does anyone know this behavior. Many thanks in advance (.. and sorry for my bad english) Joe