Jump to content

derelektrischemoench

Members
  • Posts

    35
  • Joined

  • Last visited

Recent Profile Visitors

1,543 profile views

derelektrischemoench's Achievements

Jr. Member

Jr. Member (3/6)

3

Reputation

1

Community Answers

  1. Hey guys, I know this thread is somewhat dated; the host of a customer of mine just notified me they will be upgrading all their db servers to MySql 8 by the end of the month. Are there any new experiences on whether these updates will break my sites? The processwire instances I host on this server are v.3.0.165. So I'm kinda curious to know if anyone has had experiences with this combo. I guess eventually I'm going to try this out on my dev machine when I find the spare time to update my MySQL-Server to v8. Greetings, derelektrischemoench
  2. Hi @dragan, I've tried everything you mentioned, none of it worked / led to any clue as to what the problem might be. My error logs are empty / don't show any error; I already have setup a vhost, checked my hosts file, changed my hosts file, changed my vhost, my apache configs are identical... I have no clue as to what could be the problem. I might try to install tracy debugger, although I'm not quite sure as how to achieve this, since I can't access the backend and I don't have composer running. But I'm guessing that this can be done via the api. Anyhow, if anyone has further ideas, please let me know; @dragan: thanks so far. Greetings derelektrischemoench
  3. Hi @Gideon So, the website is currently hosted on three separate machines; one staging / preview system which is accessible over the internet on a shared hosting space with strato; a large german hosting provider, also I have setup my two main dev machines which are my PC and my laptop, both running ubuntu 19.10 with apache 2.4.41 and Mariadb 10.3.20. My hoster on the other hand uses mysql 5.6.42 which I can't influence or change.
  4. Hi @Gideon So thanks for your input. I've tried modifying the session fingerprint values, but that didn't solve the issue for me. Does anyone else have any ideas? Greetings derelektrischemoench
  5. Hi guys, I'm facing a somewhat strange issue here which I can't quite wrap my head around. I have a PW site in development which runs on three machines simultaneously, one staging server which is accessible as a preview instance for my customer, my PC and my laptop. I have three completely identical settings on each of the three machines (same apache version, same php version, same codebase, same database); however on my PC I am unable to log into the backend. I get no error message or anything, when I try to login; i just get redirected to the login page. I have already enabled database driven sessions (I enabled them on my laptop, then I dumped the database and copied it to my pc); I have cleared the cache directory; I cleared the sessions in the database; I cleared my browser caches, I tried different browsers, all to no avail; I am unable to login when using my pc, the instances all have the same .htaccess. Is there something I'm missing here or does anyone have a clue as to what my issue here might be? I'm using processwire 3.0.123 Thanks for any input, greetings derelektrischemoench //edit: I've noticed something interesting; despite the directories of my web folders being the same layout; when I open the admin page i get a 404 on the processwire/ resource in the networks panel of chrome; on my laptop I get a 200.... I guess this is where my problem is; but why?
  6. Hi guys, I'm facing a somewhat strange issue here which I can't quite wrap my head around. I have a PW site in development which runs on three machines simultaneously, one staging server which is accessible as a preview instance for my customer, my PC and my laptop. I have three completely identical settings on each of the three machines (same apache version, same php version, same codebase, same database); however on my PC I am unable to log into the backend. I get no error message or anything, when I try to login; i just get redirected to the login page. I have already enabled database driven sessions (I enabled them on my laptop, then I dumped the database and copied it to my pc); I have cleared the cache directory; I cleared the sessions in the database; I cleared my browser caches, I tried different browsers, all to no avail; I am unable to login when using my pc, the instances all have the same .htaccess. Is there something I'm missing here or does anyone have a clue as to what my issue here might be? I'm using processwire 3.0.123 Thanks for any input, greetings derelektrischemoench
  7. Hi Kongondo, thanks for including my input and change requests :) very cool! I'm gonna give it a try, asap. Greetings derelektrischemoench
  8. Hi guys, hi @kongondo, I have a menu which I built using your code from some pages back: which works fine, although I have a question regarding the submenus. I have selected to include all native descendants of my page into the submenu. which generates something like this: <ul> <li> Projects </li> <ul class="submenu"> <li class="submenuItem"> Project 1 </li> <li class="submenuItem"> Project 2 </li> ... -> render all remaining Project objects which are children of the Projects Page </ul> This, however, bloats my submenu, if I have a lot of projects. Is there some option to limit the amount of projects that are rendered, to e.g. 10 and then provide a link as the last project item which leads to a project list view which displays all projects? I just don't quite get the code; e.g. where the code fetches the native descendants of the ``projects`` page. Any help would be appreciated. Greetings, derelektrischemoench
  9. Ugh I found the solution; turns out I'm just too stupid. I created the template in the admin but the template file was missing. Which of course returned a 404. Created the template; baaam. Everything works.
  10. Hi wbfmnfktr, thanks for your input. I tried activating the rewritebase as you suggested. Interestingly, when I activate rewriteBase / and rewriteBase/pw/ I get a 500 with and this apache2 error: AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://processwire.localhost/ If I only activate RewriteBase/ I get a 404. So I assume the 500 is preferable in this case, since it shows some kind of debug message, right? ?
  11. Hi guys, I'm facing a weird issue here. I cannot access any other page than / or /admin; whenever I try another page I get a 404. Interestingly though, I am able to get into the backend and edit my pages and whatnot without any problems. I'm using the standard htaccess bundled with processwire. Is there any solution to this? I have attached my htaccess below. Thanks in advance, best wishes derelektrischemoench
  12. So... just in case anyone is facing a similar issue, I found the solution to my problem. In my case it was due to mod_rewrite being somewhat borked. I reinstalled apache2 and activated mod_rewrite and voilà it worked.
  13. Good morning guys, I have a weird issue with Processwire 3.0.123. Whenever I try to edit my root page in the backend I get the "Bookmarks" section instead of the edit page view. (-> http://localhost/processwire/page/edit/bookmarks/) The link target of the root page in the backend, however is shown as: http://localhost/processwire/page/edit/?id=1 So there seems to be some redirect happening in between. Has anyone ever faced such an issue? Any help would be appreciated, since I basically can't edit my homepage. //edit: I thought about removing the bookmarks module since I don't need it, which should in theory help with the problem. I wasn't able to find bookmarks as a standalone plugin that can be deactivated. Is this possible? Greetings derelektrischemoench
  14. HI guys, I'm using twig for my frontend and I'm trying to pass $options to the menu for rendering. For some reason I can't achieve what I want, as I seem unable to pass associative arrays to the render() call in twig. I'm using markupMenuBuilder to render the menu. I generate it as follows: $menuBuilder = $modules->get('MarkupMenuBuilder'); $options = array( 'has_children_class' => 'has_children', 'current_class' => 'active', 'menu_css_id' => 'main', 'menu_css_class' => 'nav', ); $view->set('options', $options); $view->set('menuBuilder', $menuBuilder); to make menuBuilder accept the options I would have to pass them to the render function in php like this: echo $menu->render('sidenav', $options) I can't get this to work in twig since I don't get how to pass the options to the render function when using twig. Can anyone point me in the right direction plz? Best whishes deM
  15. Hi guys, I'm trying to resize images which I query through getRandom(). I can't seem to get it right though. What I have so far is: $randomImage = $pages->get($targetPageId)->images->getRandom() Which returns an image, albeit in original resolution. I assumed I should be able to call resize() on the image like so: $randomImage = $pages->get($targetPageId)->images->getRandom()->width(400) Which unfortunately gives me an exception. I assume this is because getRandom() might not return an image but something else(?). So how would I do this correctly? Greetings derelektrischemoench
×
×
  • Create New...