-
Posts
219 -
Joined
-
Last visited
Contact Methods
-
Website URL
https://www.coloriamoci.it
Profile Information
-
Gender
Male
-
Location
Turin, Italy
Recent Profile Visitors
23,514 profile views
Manaus's Achievements
-
Blank page after installing on third level domain
Manaus replied to Manaus's topic in General Support
This is the error I get, just after the installation routine (DB connection, Profile import, cleanup) Fatal Error: Uncaught Error: Class 'ProcessWire\Pages' not found in /home/mysite/domains/domain.mysite.it/public_html/wire/core/ProcessWire.php:526 Stack trace: #0 /home/mysite/domains/domain.mysite.it/public_html/wire/core/ProcessWire.php(302): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #1 /home/mysite/domains/domain.mysite.it/public_html/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #2 /home/mysite/domains/domain.mysite.it/public_html/install.php(119): require('/home/mysite/...') #3 /home/mysite/domains/domain.mysite.it/public_html/install.php(1809): ProcessWire\Installer->execute() #4 {main} thrown (line 526 of /home/mysite/domains/domain.mysite.it/public_html/wire/core/ProcessWire.php) The only error I get from the logs. Attached is same but with colors Thank you very much -
Hello, I tried to install PW on a subdomain. Installation was perfect, all requirements met, all lights green. After installation I got a blank page. No errors whatsoever. I tried to change the php version up and down, no change. I read somewhere here in this forum that htaccess might be to blame, but I did not change the one PW put on my server. I checked also the server log, asked support about it (client denied by server configuration). They say it's up to the User, server is ok. On frontend I got a Fatal Error: Uncaught Error: Class 'Pages' not found in wire/core/ProcessWire.php:575. Removed install.php and install folder. Nothing. Debug in config file is set to true, php version is 7.4 for PW 3.x. Database tables were created. One note, the domain is a third level domain, so abc.mydomain.com etc. Installed PW many times, this time I'm not getting meaningful data from the app. Thank you very much for any hint.
-
I understand that the native Processwire engine provided by TemplateEngineFactory is functional to other engines. Nonetheless I find interesting the idea of separating layout and logic, even with php files. The question is: is there a 'yield/block' tag available in this specific engine? Something to use with a layout.php file? Thank you very much
-
I'm managing my users base with the built in users API. Some of the users are learners, some are teachers. I tag them with the roles property. Now, I would like to have in my webiste a section, let's call it 'teachers' whose children bear the same informations I put in the users pages. That is if I load /teachers/paul/ I see on that page users->get('paul')->allDataBlabla . Is there a way to automatize this process of displaying and if possible also creataing pages under the /teachers/ root page? Maybe intercepting the querystring and doing the logic on a 'teacher' page? Thank you very much
-
Hello, does it exist a module for managing login and register pages? Or do I need to write the logic myself? Thank you very much
-
Hello, I'm setting up a multi-author website, where for each Article I can have an author. Pretty basic. Since authors have their profile, I added multiple fields to the user template, such as image, first name, and so on. Now, in the Article template I would like to add the user as author, but I cannot find it in the fields suggestions. So I created an Author field letting me link the 'template' of selectable pages, not the parent, because I cannot find the Users in the suggestions provided. To make the long story short, I need in an Article page a dropdown for selecting a User. That's it Thank you very much
-
Hello, what setup do you suggest? My client needs to sell access to content (articles, mainly). Pay for reading, maybe also with a subscription model. Thank you very much
-
I read on the documentation about `find`: So `get` should fetch also unpublished pages. Still not working... I'm using it through the `child` method, I guess `child` inherits `get` functionalities right?
-
On page A I'm trying to get some fields data from page B, which I need to be hidden/undiscoverable. I'm using `$pages->get` method, but as soon as I make page B hidden/unpub, page A returns error. How can I workaround this? Thanks!
-
Hello, I need to implement such protocol on my website, is there any resource I can leverage for using it on my website? Thank you very much
-
Thank you all, I checked and the value does not exist. Since the code that gives problems is used inside an included file (a header) I should foresee whatever case arises: existence or non-existence, etc. Da2's solution works, but I wonder if Twig crashes so easily on a typical conditional case, and if there isn't a pure Twig approach to use. Thanks
-
Manaus started following Best way for inline images, SimpleMDE and Twig, accessing page values
-
In my template I have set a variable called 'noindex'. Now, in my Twig template I cannot seem to use a conditional like this: {{ if page.noindex }} <do this> {{ endif}} because "Method Page::noindex does not exist or is not callable in this context" Should I put all the values within a `view` object, and pass it to the template? Is there a shortcut? I remember that within Smarty it is permissible to use `{ page->index }` within a template, and it works. Thank you very much
-
Hi, I have a page where I have placed a custom field that has Lorem Ipsum as the label and lorem_ipsum as the name. On the page hosting that field, I would like to print the label. How can I do this? I tried `$page->lorem_ipsum->label` but it doesn't work. To investigate the problem further, I also tried `$page->lorem_ipsum->body`, in case there were several methods to access the various properties of the field. I also tried `name`, but the CMS still considers the field `$page->lorem_ipsum` as non-object. Can I print out the field name without going through the `$fields` object? Thanks
-
Hello, what is the best way to insert images within the text? Is should be simple and straightforward. I'm using SimpleMDE. Thank you very much