Jump to content

AndreasWeinzierl

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by AndreasWeinzierl

  1. I have tried updating from 3.x to 3.0.200, however I get the following error in my log: 2022-10-17 19:51:04 ? Fatal Error: Uncaught Error: Class "FieldtypeMulti" not found in site/modules/FieldtypeTemplates/FieldtypeTemplates.module:30 Stack trace: #0 /wire/core/Modules.php(1686): include_once() #1 /wire/core/Modules.php(1605): ProcessWire\Modules->includeModuleFile() #2 /wire/core/WireClassLoader.php(284): ProcessWire\Modules->includeModule() #3 [internal function]: ProcessWire\WireClassLoader->loadClass() #4 /wire/core/Modules.php(2739): class_exists() #5 /wire/core/Modules.php(3023): ProcessWire\Modules->getModuleInfoInternal() #6 /wire/core/Modules.php(1106): ProcessWire\Modules->getModuleInfo() #7 wire/core/Modules.php(913): ProcessWire\Modules->loadModule() #8 /wire/core/Modules.php(389): ProcessWire\Modules->load() #9 /wire/core/ProcessWire.php(536): ProcessWire\Modules->init() #10 /wire/core/ProcessWire.php(314): ProcessWire\ProcessWire->load() #11 /index.php(52): ProcessWire\ProcessWire->__construct() #12 {main} thrown (line 30 of /site/modules/FieldtypeTemplates/FieldtypeTemplates.module) Any ideas?
  2. Thank you for your fast reply! I have HTML Entity Encoder (htmlspecialchars) listed there. Could be the problem. Ill test it tomorrow. Its there by default, isn't it? At least, I cannot remember activating it. My data is delivered using Protobuf (binary-format).
  3. Hello, I use ProcessWire as a Service for a WebApp. I store text in fields of Type Text. While I save text with the `<`-symbol in the fields, when I read the field using PHP by callinig $page->text (the field is called text), I retrieve `&lt;` instead. Same goes for other symbols. However, I would like to display the text, even with HTML, so it is quite unhelpful, because I have to convert it back again. Whats the way to go there with ProcessWire?
  4. If I set a title of a page to "<15kWh/qm/anno" operations on that page fail. For instance at creation no name is generated, so the path is // instead of /name/. Also the admin page list setting does not work anymore with that sequence of symbols.
  5. Okay, next issue: I tried tracyDebugger, but somehow I cannot find the dumps or set working breakpoints. So I tried xdebug. When I just run the request in PHPStormer, the breakpoints I set are being ignored/and/or I cant get over the initial first lines of index.php. After wire->config I get an exception (but only with debugging). So I tried a little around and finally I started the debugging the browser and got the following error: Warning: Uncaught Error: Class 'ProcessWire\WireDebugInfo' not found in www\wire\core\Wire.php:1758 Fatal error: __debuginfo() must return an array in www\index.php on line 35 What am I doing wrong?
  6. Update: After putting the files into the directory one still has to perform an installation (via the admin interface -> other possibilities?) So access problem solved.
  7. Okay, I guess I do not need to include a module, however, I do not get it to work. It alsways says Class ProcessWire\Classname not found in my file. However, if I rename a already available module, e.g. helloworld, I also cannot access it anymore? What does happen there? Where do I have to flip the bits?
  8. Furthermore, does one module always represent one class with modulename = class name? Should each individual module have an own folder = modulename? Did I miss an example where all this is shown?
  9. Thanks for your reply. I think I am gonna go with the module approach. Do I have to include it, too? Probably, since I cannot access it easily. How would I add it to composer to autoload it appropriately? I guess psr-4 is not possible?
  10. Hey there, I am currently building an API with Process Wire. Because the retrieval of data (although using pages) is a little complex, I would like to separate this from the template. Is it a good idea to, for instance, put kind of a repository class into into the the modules directory? Would there be a better option? Should I also derive from "Module" and add a module ending?
  11. Yeah saw them. Regarding my use case: Do you think it is better to use subpages?
  12. "classmap": [ "vendor/NinjasCL-archive/pw-rest/rest/core/", "vendor/NinjasCL-archive/pw-rest/rest/languages/", "vendor/NinjasCL-archive/pw-rest/rest/login/" ], With this I finally got it working after quite a few hours.
  13. Could somehow help me? I added my vendor folder in the root directory. And I supplemented my composer.json by a library from github: { "repositories": { "pwRest": { "type": "package", "package": { "name": "NinjasCL-archive/pw-rest", "version": "1.3.0", "source": { "url": "https://github.com/NinjasCL-archive/pw-rest", "type": "git", "reference": "master" } } } }, "name": "processwire/processwire", "type": "library", "description": "ProcessWire CMS/CMF", "keywords": [ "processwire", "cms", "cmf", "content management system" ], "license": "MPL-2.0", "homepage": "https://processwire.com", "authors": [ { "name": "Ryan Cramer", "email": "ryan@processwire.com", "homepage": "https://processwire.com", "role": "Developer" } ], "require": { "php": ">=5.3.8", "ext-gd": "*", "NinjasCL-archive/pw-rest": "1.3.*" }, "autoload": { "psr-4": { "restApi\\":"vendor/NinjasCL-archive/pw-rest/rest/core" }, "files": [ "wire/core/ProcessWire.php" ] } } Compose install does work without any problems, but if I try to use autoloading it does not work as wished. Within the templates folder I try to instantiate RestApi\Response or \restApi\Response, but I always get the following error: Error: Uncaught Error: Class 'RestApi\Response' not found in phpFile.php:12 Stack trace: #0 www\wire\core\TemplateFile.php(287): require() #1 www\wire\core\Wire.php(380): ProcessWire\TemplateFile->___render() #2 www\wire\core\WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array) #3 www\wire\core\Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #4 www\wire\modules\PageRender.module(514): ProcessWire\Wire->__call('render', Array) #5 www\wire\core\Wire.php(383): Proce (line 12 of phpFile.php) BTW. The response class is in "vendor/NinjasCL-archive/pw-rest/rest/core/response.php"
  14. so the most efficient query would still be some form of: if($pages->count("/contract/")){ // exists } ?
  15. From the point of view of providing a own rest API, is this tutorial still up to date?
  16. As now, is it possible to define a default value for a field? It would be very handy for a use case. However I have read that this could be a design issue. My use case is the following: Pages have a subpage text. The application allows customization on the text based on a entity. So by default the entity is "Default" (thus a default in the admin panel), but sometimes it could be entity1, entity2. So I have a page with the fields Type and text. I already have considered just having a text and for that text again subpages for entity1, entity2, … But I am not sure if it is really better.
  17. As stated, I deleted the whole content of the htAccess file, like in the trouble shooting guide suggested - didn't help much. Debugmode=true did not help either. The problem was that there was a file called active.php, and the webaddress was not in httphosts in the config file. After that it worked quite well with the "just copy everything, import the sql dump"-method. I did not try the "install on hoster"-method anymore, since the former method already enables a nice&clean automated build process. Thanks for your help though. Ill look deeper into TracyDebugger, I think I could use that sometime - although the configuration tab looks pretty complicated at first sight.
  18. Hello, I have a fine working local installation of processwire and tried to transfer it to strato shared hosting. First I tried to just copy the local files via ftp. It did not work. I get: Many wrote that it is about the .htaccess file. I commented out line by line, until everything was commented out. During that process I had once a little success, which finally showed me database table failures (which is reasonable), but I could not reproduce that anymore. Not even completely removing the file does help. Any ideas? I also tried to install ProcessWire directly on the shared hosting platform - downloaded the files, and completed the installation successfully (while once execute an additional check for the requirements). The result is that the many gui elements are missing in the admin interface after the installation. For instance, the bar on the top does not show any tabs. If I browse in the tree, I get a very broken view. I tried blank and intermediate. What is going wrong? I would appreciate any help. (Locally it works perfectly fine)
  19. Do I have further options here? I would like to use a fieldname different than title.
×
×
  • Create New...