Jump to content

KenM

Members
  • Posts

    5
  • Joined

  • Last visited

KenM's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. New to PW and new to PHP, so sorry in advance! I am trying to set up a database connection. I have a small test file in the web root (next to index.php), and if I point my browser at that I can connect to my database. If I take the same lines of php code and insert them into a template file that I want to use (asset-register.php), it gives me a fatal error with Class 'mysqli' not found in site/templates/asset-register.php:56 What am I missing? I've attached the file, but it is currently just a hack file.. The end goal is to be able to print a report from a database, but I need to be able to connect first! asset-register.php
  2. Problem resolved, thanks to the above help. A basic error in that mod-rewrite was not enabled. Did not prove straightforward to enable it in the Alpine image I was using, but one of the provided links pointed me to several Docker containers that are already set up for pw. Using the joyofpw/docker container instead of the one I was using got me going within a few minutes. Many thanks for all the help.
  3. I am using Docker Desktop on MacOS (Big Sur). I am using a lamp stack: php-Apache-MySQL-containerised, which was recommended on a site, but I will look into MAMP as an option as I am fairly agnostic as to what I use, as long as I can get it to work! I’ve checked the Dockerfiles and no versions are specified, so I should be defaulting to the latest versions. I’ve checked that debug is enabled, but it does not seem to be giving me any messages that I know of. I’ll try out the various other suggestions on Monday, to see if this gets me any further forward. Thanks for the pointers. I will let you know if I make any progress...
  4. I'm new to ProcessWire, but I just installed ProcessWire in a Docker container. All appears to have gone smoothly, but nothing seems to happen when I try to log into the admin page, other than a screen refresh. No error message, with or without the right password, just a page refresh. Noticed a similar support topic where: $config->sessionFingerprint = false; $config->sessionChallenge = false; was suggested, but that does not seem to have made any difference for me. Wiped everything and tried again several times. Always the same issue. The 'modules.txt' has an odd message: "Found 2 module(s) missing file: FieldtypeNumber => /var/www/html/site/modules/FieldtypeNumber/FieldtypeNumber.module, ProcessPage => /var/www/html/site/modules/ProcessPage/ProcessPage.module" The files do not exist at those locations, but then nor do they appear to exist on a working installation that I looked at (although that did not have the 'missing file' notice in the modules.txt file). I'm completely stuck. Any suggestions where I go from here? modules.txt messages.txt system-updater.txt
×
×
  • Create New...