Jump to content

Search the Community

Showing results for tags 'solved'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. I just reinstall Processwire with latest RockPageBuilder (6.5.2). After adding a Content-Element (Afred oder Backend) I get an error: Error: Call to a member function render() on string search► RockDevTools LiveReload is active File: .../modules/RockPageBuilder/RockPageBuilder.module.php:1596 1586: } 1587: 1588: /** 1589: * Render content of blocks field 1590: */ 1591: public function render($renderPlus = true) 1592: { 1593: $page = $this->wire->page; 1594: $field = $page->getFormatted(self::field_blocks); 1595: if (!$field) return; 1596: $html = $field->render($renderPlus); 1597: $rf = $this->wire->rockfrontend; 1598: if ($rf) return $rf->html($html); 1599: return $html; 1600: } In Latte-Template: {if $modules->isInstalled('RockPageBuilder')} <main sortable> {$rockpagebuilder->render(true)} </main> {else} If I delete the Content-Element it works like expected.
  2. Hello, I'm encountering a bug, then using the File field type and attempt an a largish file 20mb upload the progress bar goes to 100%, but then the circular icon that spins just keeps spinning. This happened all of a sudden to all of our process wire sites simultaneously. Thinking it might be our host I tried doing a blank install with just the File field present and the same thing happens. I have tried the following: Making sure the PHP.ini file is setup to accept larger files. Changing the permission on the asset folder. Checking the console and logs for error messages (they provided no error). If some of you could try this (uploading a big file with the File field type, I'd be interested to know if I'm just really unlucky or is this a bug in the current build of Process Wire. Also any help would be greatly appreciated. Thanks, Mark.
  3. Hi, i only found posts with Ajax + Search topics, which does not help me with my question i am afraid. Within a form i narrow down the results to specific conditions (here: countries assigned to continents). While the first select (continents, s. Screen 1) is populated on page load, the second one gets filled up by a ajax call/response (form action attribute references to that ajax driven page). Works well. What i cannot figure out is why the ajax driven page does not consider the current language when quering pages ($pages->find()) within the ajax page (s. screen 2 (country names should be in english, not in german). As the ajax driven page is a regular PW template based page, i would expect that PW detects the language versions of the page fields automatically like on any other page. Without specifying something additionally. But obviously not. And i miss something or doing it wrong. Maybe helpful: The ajax page is a processwire page derived from a dedicated template. ProcessWire namespace is set (on the ajax driven page) All language checkboxes (Tab settings) in related pages are active Default language is german, both screens showing the page set to english. Thx in advance for any hint. cheers Olaf Screen 1: Screen 2:
  4. I know this topic has been addressed several times before, but has anyone a solution in 2025? As for my site manual sorting of the child pages is crucial for some users, but they are not supposed to touch the parent page. Can I achieve this somehow? Thanks Torf
  5. Is there a way to hide the publish button for a user? I've had a look around the forums and I can't see that this has come up before, but what I'd like to do is have it so that certain user groups can add pages, edit and save them but not publish them. The idea is that the new pages then have to be approved by someone with higher permissions before the page appears on the site. Linked into this, I'd also like the ability for the user not to be able to edit a page once it's published if that makes sense? So they can add a page (article in this case) tweak it and edit it, let someone with higher perms check over it and publish it, and then at that point the author wouldn't be able to edit the page. I feel like this should be reasonably easy to accomplish with a module but just need a friendly shove in the right direction Something completely different that crossed my mind but would be useful in my situation (and maybe others?) would be the ability to hide a field depending on the user group and set a default value instead. The scenario for this is articles again - I've been using an autocomplete field to tag authors to articles (very occasionally it will have multiple authors), but for users of a certain group I'd like this field to be hidden instead and default the value to their user ID - not sure if that's actually possible? It's not 100% necessary, but again if there's a way to do it with a module I'd happily give it a shot Just as an extra, yet not entirely relevant, piece of information, I was also considering adding a checkbox to the end of the Article temlpate so that the author could then tick the box to say it's ready for review by an editor, and then have a list of articles ready for review on the admin homepage. That might be of interest to someone else working on some sort of approval-based site section, so I'll happily share the code
  6. I am using TinyMCE to define UIkit buttons, but have come across the issue that editors end up with buttons that look like: "uk-button uk-button-primary uk-button-secondary" Because it merges all the added classes, when ideally i'd only want uk-button-primary OR uk-button-secondary I see it's discussed here what to do and didn't really understand so wanted to ask if someone knows the details on how to configure this in ProcessWire. https://github.com/tinymce/tinymce/issues/4035 Thanks in advance!
  7. Fatal Error: Uncaught Error: Call to a member function className() on null in wire/modules/Fieldtype/FieldtypeTextareaHelper.php:41 #0 wire/modules/Fieldtype/FieldtypeTextarea.module (338): FieldtypeTextareaHelper->getConfigInputfields(Object(Field),Object(InputfieldWrapper)) #1 wire/core/Wire.php (417):FieldtypeTextarea->___getConfigInputfields(Object(Field)) #2 wire/core/WireHooks.php (951):Wire->_callMethod('___getConfigInp...', Array) #3 wire/core/Wire.php (485):WireHooks->runHooks(Object(FieldtypeTextarea), 'getConfigInputf...', Array) #4 wire/core/Field.php (1110): Wire->__call('getConfigInputf...', Array) #5 wire/core/Wire.php (414): Field->___getConfigInputfields() #6 /wire/core/Wir (line 41 of wire/modules/Fieldtype/FieldtypeTextareaHelper.php) Hello everyone, recently I stumbled on this error when trying to edit a textarea field... Running php 7.4 and PW 3.0.201. Has anyone by chance encountered this problem? Kind regards, - Igor
  8. One of the fields that I have is 'files' - a self-exlanatory multiple-files type of field, used mostly for PDFs. When I click on the file title in the backend it used to open this file in a new tab (using the browser's built-in PDF viewer). Somewhere in the last few updates I did, this behaviour changed and now the files are automatically downloaded. How to manipulate this, I assume it is a matter of adding target='_blank' to somewhere in the code, but not show where? Again, this is for the backend/admin area of the website only. I am aware that you can do this with right mouse click (and old cmd or ctrl click doesn't work either) but it is not fully streamlined for my specific use case. Any suggestions welcome.
  9. I am a little confused. As far as I remember, on my older Processwire pages, I can only move pages within the parent page (i.e. change the positions of the siblings). Now I've noticed that I can (recently?) move them across the entire page tree. How can I limit the moving of pages? I didn't get any further by setting the user rights.
  10. Hello, I'm looking for a way to append a title beside the headline of a page which is beeing edit. It's about ease of use, at first glance. To figure out, first I tried something like that: (file "_content-head.php" of AdminThemeUikit (just Testing and remove)); if($headline !== '' && !$adminTheme->isModal) { # Test-Line: get current page-id (edit) $p = $this->pages->get($this->input->get->id); # Test-Line: check (type=text) page_field isn't empty $appendix = !$p->page_field == '' ? "($p->page_field)" : ''; echo "<h1 id='pw-content-title' class='uk-margin-remove-top'>$headline . " ($appendix)</h1>"; Then, I tried a Hook, but it alters the page->title and this doesnt fit my need here. wire()->addHookAfter('Pages::saveReady', function($event) { $page = $event->arguments('page'); if ($page->template != 'my_template') return; $page->of(false); $page->title = "\$page->title|\$headline - " . $page->page_field->title; $event->return = $page; }); I read about: Process::headline(), but can't figure out. Does Someone has an Suggestion, how I can extend/append the existing title (page edit) with tiny Text, just render? Thanks in Advance
  11. Hi, I have built a simple website based on image-galleries some years ago. (malabu.de) To add descriptions I used the ImageExtraModule by just3be. In the database I can see, that some of the data are collected in the field 'filedata' in the table field_images, while the fields 'caption', 'description', 'textarea' stay empty. It looks like {"_109":{"data":"ehemalige Post","data1015":""},"_108":"schon lange gibt es hier kein Postamt mehr","_110":"S\u00f6rup","_111":"einhundertelf","_112":"2024-02-17 00:00:00"} very confusing. I would prefer to get the content seperated into the standard fields like 'caption', 'description', 'textarea'
  12. Hi all. I just ran into a very strange problem. The solution is below but I am just not sure if this is a 'feature' or a bug ?! My lister bookmark for selector: 'has_parent!=2, template=62, categories=1072, limit=25, sort=-modified, include=unpublished' gets changed into below selector whenever I am not logged in as a superuser: 'has_parent!=2, template=62, categories=1072, limit=25, sort=-modified, include=hidden' Note the 'include=' part which is changed. EDIT: Template with ID 62 is 'product' in this case. I am referring to it by name instead of ID. From reading the source code, I can follow this exactly here: // if all specified templates are editable, include=unpublished is allowed if($numEditable == count($templates)) { // include=unpublished is allowed } else if($includeMode == 'unpublished') { // include=unpublished is not allowed if($showIncludeWarnings) { $this->resultNotes[] = $this->_("Not all specified templates are editable. Only 'include=hidden' is allowed"); } $includeSelector->value = 'hidden'; $changed = true; } This is taken from ProcessPageLister here. The way the $numEditable variable gets determined is as follows: foreach($templates as $template) { $test = $pages->newPage($template); $test->id = 999; // required (any ID number works) if($test->editable()) $numEditable++; } You can find this here, a few lines above the first snippet. The selector doesn't contain any parents, so these lines are the ones being used. Whenever I am logged in as non-superuser, I can also see the error message "Not all specified templates are editable. Only 'include=hidden' is allowed". So everything behaves just as intended. Now for the solution, which brings me to this possible bug: Adding access control to the template 'product' and enabling editing for the specific role solves the problem. The lister now shows unpublished pages and the error message is gone. So far so good. But: Before the change, the user could still edit the products because access was inherited automatically from the home template. Hence on the surface, the configuration is exactly the same and the user can do exactly what they could before. Only the direct access has changed which has an impact on the 'editable' check. The question now is, is this intended or am I looking at an edge case which isn't covered by the rather simple editability check using an arbitrary new page? @ryan: Could it be that Lister should add a parent to enable access inheritance in this check? I can imagine that this gets very complicated rather quickly...
  13. Hi, I copied my website malabu.de on a local LAMP-server which runs PHP 8.2.7 and got the following Fatal Error: As I am not very familiar with PHP I do not know, how to fix it. This is my _head.php-file: <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo $page->title; ?></title> <meta name="description" content="<?php echo $page->summary; ?>" /> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/malabu.css" /> </head> <body> <!-- navigation --> <div id="menu"> <h1 class="titel"><a href="/">malabu.de</a></h1> <nav id="nav"> <ul> <?php // top navigation consists of homepage and its visible children $homepage = $pages->get('/'); $children = $homepage->children(); // make 'home' the first item in the navigation $children->prepend($homepage); /** * Recursive traverse and visit every child in a sub-tree of Pages. * * @param Page $parent root Page from which to traverse * @param callable $enter function to call upon visiting a child Page * @param callable|null $exit function to call after visiting a child Page (and all of it's children) */ function visit(Page $parent, $enter, $exit=null) { foreach ($parent->children() as $child) { call_user_func($enter, $child); if ($child->numChildren > 0) { visit($child, $enter, $exit); } if ($exit) { call_user_func($exit, $child); } } } visit( $pages->get('/') , function(Page $page) { echo '<li><a class="men" href="' . $page->url . '">' . $page->title . '</a>'; if ($page->numChildren > 0) { echo '<ul>'; } } , function(Page $page) { echo '</li>'; if ($page->numChildren > 0) { echo '</ul>'; } } ); // output an "Edit" link if this page happens to be editable by the current user if($page->editable()) { echo '<li><a class="men" href="'.$page->editURL.'">Edit</a></li>'; } ?> <!-- öffne Mailformular --> <li><a class="men" href="mailto:info@malabu.de"><img src="<?php echo $config->urls->templates?>styles/brief.gif" width="25" height="15" alt="info@malabu.de" title="schreib mir"> </a></li> <!-- search form <form class='search' action='<?php //echo $pages->get('template=search')->url; ?>' method='get'> <input type='text' name='q' placeholder='Search' value='' /> <button type='submit' name='submit'>Search</button> </form> --> </ul> </nav> </div> _head.php
  14. I kept getting these errors on my modules page on one site I have no such modules listed, but inspection via Adminer shows that they have entries in the modules database. Each entry has data listing a number of modules, such as (for .ModulesVerbose.info). 178 summary Tracy debugger from Nette with many PW specific custom tools. author Adrian Jones href https://processwire.com/talk/forum/58-tracy-debugger/ versionStr 4.23.33 I assumed that the database got corrupted somehow (but how?), so I deleted the entries. Everything seems to be OK.... Any ideas what might have caused this? Anyway, thanks @adrianfor Adminer - always useful in extremis.
  15. Hi. Still quite new to processwire and general web developement. After working on localhost for a while, I wanted to upload my site to my live server. But I forgot to remove processwire-master folder from the structure as I installed my processwire profile on my live database (I'm not even quite sure when I should have done that - just after unzipping processwire-master to my root ?). Anyway now I'm stuck with that and even though I could probably install again I feel like this could be somewhat of a learning experience. So how can I move cleanly and properly my site back to the root, and removing pw-master in the process ? I've done the obvious which was, well, just moving the thing back 1 step in the folder structure. But exepectedly, I couldn't access the admin anymore because the url was now wrong, and my ProForm was also missing from the homepage (404). I've tried looking into existing forum posts with little success as I'm not too sure of how to describe my issue other than the title of this post. Please excuse my poor level of technical skills, I come from the design side of things and many things are still black magic to me ?
  16. I'm probably being dim, but can anyone explain why $pages->get('/processwire/access/permissions/') returns a null page? See Tracy console below:
  17. Hi Team I am trying to fetch the label of form fields with this api function. $form = $forms->get('shop-payment-stripe'); $fieldDefinitions = $form->fields; If I try to print $fieldDefinitions it shows empty. Also, if I print $form variable it is surely returning ProcessWire\FormBuilderForm Object. Any suggestions how to get the form field labels. (Field names are surely accessible from form)
  18. Hi, Info: I have a secured section on a website. Users with a certain user role has access to this section through a frontend login form. Summary: When i modify and try to save the current user (e.g. the user is logged in) by API, the `pass` field won't get populated with the new value. Instead the field `pass` is cleared, so the user page is set to `unpublished` on save. // Rough abstract... // Info: var `u` represents a instance of the current user $u->of(false); $u->pass = 'valid-example-password'; // DOES NOT get saved, instead the `pass` field gets cleared $u->save(); $u->of(true); As this was proven before my last PW update 3.0.210 > 3.0.221 some weeks ago, i wonder if this behavior relates to the update (?) If so (which would make sense to me for several reasons), the question is: How can i provide those users the ability to change their passwords within the frontend secured section while they are logged in? Re-login doesn't work (Error: Failed login for 'xxx' - Login not allowed) either. // log in with new credentials $u = $session->login($u->name, $pass); What do i miss here? ;-). Many thanks for your thoughts! Olaf
  19. Hi there, I'm working on an email message template and would like to render a custom one to be sent. I tried to use $files->render() this way // rendering file e.g. a template file or a hook statement in ready.php $body = $files->render('emails/myfile', array( 'myVar1' => $var1, 'myVar2' => $var2, ... )); but $vars seems to be not accessible from within the rendered file. That is, $vars seems to be not set: // rendered file emails/myfile.php $myVar1 = $vars['myVar1']; // is not set $myVar2 = $vars['myVar2']; // is not set ... // is not set How can I get the $vars so to properly render the custom message template for sending the email? Notes: By using $files->include() the $vars is accessible but I cannot use this method because I should retrieve the output $body as a return value for sending the email later. So, I'm still looking to render the custom message using $files->render(). This thread is someway related to this one.
  20. Hi, I'm getting this error on a new host: I've never seen it before and wondered if someone has dealt with something similar in the past? If so, were you able to solve it? Also, according to phpinfo(); mod_rewrite is enabled but none of the urls are working. I'm ready to move her site to a new host but thought I'd ask here first. Warning: Zend OPcache API is restricted by "restrict_api" configuration directive in /usr/www/users/floreng/000/site/assets/cache/FileCompiler/site/modules/AdminLinksInFrontend/AdminLinksInFrontend.module on line 170 Warning: session_name(): Session name cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 294 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 297 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 298 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 299 Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /usr/www/users/floreng/000/wire/core/Session.php on line 300 Thank you so much.
  21. Like the title says. Accidentally renamed "wvprofile_body" to "Body" where I actually meant to change the label. Didn't notice that I had entered that into the wrong field, hit Save. ProcessWire destroyed the wvprofile_body table then showed me an error saying that the field "body" already exists. I have no idea what happened. I've never had this happen before, but I've also never accidentally renamed a field to an existing field name. Has this happened to anyone else? Doesn't PW check for a unique name before deleting data? Looked in the database directly, the entire wvprofile_body table is gone. Keep backups.
  22. Hi have a general question if this would be possible: I have a page that contains a repeater. This repeater holds an image and a cite for each repeater item. On the page itself all repeater items (= all cites) should be visible in a carousel. But on other pages I would like to select a specific single (!) cite from that repeater to be shown. This cite should be selectable from a list, not just hard coded as a ProcessWire selector with the ID of the repeater item... I know that this could be achieved with a page reference field. But in that case I can't make use of the repeater field but instead have to create a subpage for each cite I want to add. The repeater solution seems to be more straight forward.
  23. Hi, I'm wondering what's the best way to provide only the page edit form, without header, footer and breadcrumb (see screenshot). Can I hook into the rendering and remove some parts? Thank you in advance, with best regards Sebastian
  24. I have the need to change the text colors in a TinyMCE field. There seems to be a plugin available for this case: https://www.tiny.cloud/docs-4x/plugins/textcolor/ But in the field settings this plugin option is missing: What could be a workaround for this? SOLVED: The documentation link was for version 4... in the current version 6 you have to insert the "forecolor" setting into the toolbar. That's it!
  25. Since Updating to the latest Processwire Version 3.0.210 I get the following error. I've have this website running since processwire 2.2. Has anyone else experienced this or an idea what the problem might be? Thanks! Peter Fatal Error: Uncaught Error: Undefined constant "languages" in site/templates/admin.php:39 #0 wire/core/WireHooks.php (1051): TemplateFile->{closure}() #1 wire/core/Wire.php (484): WireHooks->runHooks() #2 wire/core/PagesEditor.php (787): Wire->__call() #3 wire/core/PagesEditor.php (478): PagesEditor->savePageFinish() #4 wire/core/Pages.php (840): PagesEditor->save() #5 wire/core/Wire.php (419): Pages->___save() #6 wire/core/WireHooks.php (952): Wire->_callMethod() #7 wire/core/Wire.php (484): WireHooks->runHooks() #8 wire/core/PagesEditor.php (1235): Wire->__call() #9 wire/core/Pages.php (1017): PagesEditor->_clone() #10 wire/core/Wire.php (422): Pages->___clone() #11 wire/core/WireHooks.php (952): Wire->_callMethod() #12 wire/core/Wire.php (484): WireHooks->runHooks() #13 wire/modules/Process/ProcessPageClone.module (363): Wire->__call() #14 wire/core/Wire.php (413): ProcessPageClone->___process() #15 wire/core/WireHooks.php (952): Wire->_callMethod() #16 wire/core/Wire.php (484): WireHooks->runHooks() #17 wire/modules/Process/ProcessPageClone.module (130): Wire->__call() #18 wire/core/Wire.php (413): ProcessPageClone->___execute() #19 wire/core/WireHooks.php (952): Wire->_callMethod() #20 wire/core/Wire.php (484): WireHooks->runHooks() #21 wire/core/ProcessController.php (350): Wire->__call() #22 wire/core/Wire.php (413): ProcessController->___execute() #23 wire/core/WireHooks.php (952): Wire->_callMethod() #24 wire/core/Wire.php (484): WireHooks->runHooks() #25 wire/core/admin.php (160): Wire->__call() #26 wire/modules/AdminTheme/AdminThemeDefault/controller.php (13): require('...') #27 site/templates/admin.php (101): require('...') #28 wire/core/TemplateFile.php (328): require('...') #29 wire/core/Wire.php (413): TemplateFile->___render() #30 wire/core/WireHooks.php (952): Wire->_callMethod() #31 wire/core/Wire.php (484): WireHooks->runHooks() #32 wire/modules/PageRender.module (575): Wire->__call() #33 wire/core/Wire.php (416): PageRender->___renderPage() #34 wire/core/WireHooks.php (952): Wire->_callMethod() #35 wire/core/Wire.php (484): WireHooks->runHooks() #36 wire/core/WireHooks.php (1060): Wire->__call() #37 wire/core/Wire.php (484): WireHooks->runHooks() #38 wire/modules/Process/ProcessPageView.module (184): Wire->__call() #39 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage() #40 wire/core/Wire.php (416): ProcessPageView->___execute() #41 wire/core/WireHooks.php (952): Wire->_callMethod() #42 wire/core/Wire.php (484): WireHooks->runHooks() #43 index.php (55): Wire->__call() #44 {main} thrown (line 39 of site/templates/admin.php)
×
×
  • Create New...