Jump to content

AndreasWeinzierl

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

AndreasWeinzierl's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

  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"
×
×
  • Create New...