Jump to content

pleini

Members
  • Posts

    62
  • Joined

  • Last visited

Posts posted by pleini

  1. The thing is the whole right management doesn't make so much sense. 

    As soon as a user has edit rights for admin templates (which he needs to edit templates) he can edit itself and add any role he wants since all are managed by the same admin template. 

    So how should I achieve this:

    I want to create a User that can create/edit/delete pages, and can create/edit/delete fields and templates, but can not create/edit/delete users. 

    @ryan is that possible with the core user rights management? 

  2. I have already read this.

    When i am trying to manage the access to different admin pages (like templates, fields, or users) i can only configure them in the admin template. Am i right that i can only grant access to all of those pages or none for a role (Message on users page for example: "Access is defined with this page's template: admin" )

  3. Hello,

    i am currently trying to restructure my user roles. I want to create a User that can create/edit/delete pages, and can create/edit/delete fields and templates, but can not create/edit/delete users. As far as i see the is no specific permission for users, fields or templates. As i saw only superuser can edit templates and fields currently.

    Have i overseen something or is it not possible with the default rights management to create a user with those permissions?

     

  4. I have problems with some 404 URLs, that are not rendering the page_not_found template but the home page template instead.

    Normal URLs that don't exist

    like

    /this-page-does-not-exist

     are redirected to my 404 page without any problems.

    But for URLs like 

    /cool-page%20abc
    /page&=123
    /pagename'A

    the home page is rendered. But when i am checking the webdeveloper console, the return code is 404

    Do i miss some configuration? 

    Thank you

     

    status_code.png

  5. Hey,

    I have a question regarding the fileCompiler: is it possible to compile all files (templates + modules) with the filecompiler at once after a deploy (in a composerPostinstall for example) and disable it afterwards completely. The problem is, when i am deploying a new version to my instances, the cache folders might be replaced, so the files need to be recompiled when the first user is visiting the page after deployment. With that "pre-compilation" i want to prevent that the users have to wait for the filecompiler to compile.

    Thanks

    Chris

  6. Hello Guys,

    i have a question regarding the fileCompiler of PW 3.x. On my page i am monitoring the execution times and sometimes i have some peaks in the execution time. I profiled the code and i recognized that those peaks come from the fileCompiler, more specific from the function compileNamespace (preg_match_all takes the most time).

    So my question is, how does the FileCompiler decides when it compiles the files, and would it be possible that i trigger the compilation of all files after a new deployment so that during requests of visitors of my page there are no compilations, to keep the loading times as low as possible?

     

    thank you

    Joscha

  7. The module from the screenshot is inheriting the FieldtypeFile module and is adding some additional meta fields to the file and is hooking on file save and uploads the file to amazon s3. Another module that failed is inheriting the ProcessRedirects module. Another module is an autoload plugin that adds multiple hooks to Page::render or Page::save where we replace texts or populate fields on pages automatically. Sometimes it happens as well that the class of the inherited module is not found. So for example FieldtypeFile, ProcessRedirects, FieldtypeImage. We hadnt that problem in 2.x. Maybe its a problem with the FileCompiler?

  8. Hey guys,

    i am using PW version 3.0.25 and i am hosting my site on AWS. I have encountered a problem that randomly after a deploy some modules are not available. It happens randomly, and to different modules. Clearing the FileCompiler Cache does not help in this case, after a redeployment the error is gone most of the time. 

    Somebody has encountered the same problem or has any tips?

    Screenshot of the error message is attached

    Thanks and best regards

    Joscha

    module_error.png

  9. Hello,

    i have encountered a random problem with my processwire page. I have build a simple php file where i include the processwire index.php and run 1 simple database query and echo the total execution time of the script. I call this file periodically to check the performance of the page. Most of the time the execution time is under 0.5 seconds, but some times i goes up to over 3 or 4 seconds. The database query takes very little time, so the problem seems to be in the code called in index.php. 

    I checked my server and database metrics and they look perfectly fine. Has anybody experienced similar issues before? Or do you guys have any tips how to debug that issue the best?

     

    Thanks for your help in advance

    BR

    Joscha

  10. Hi, thanks for the suggestions!
    I think multiple copies of the same module is not the best solution, because it's not update safe. If they release an updated version of the module, we have to create a copy again.

    Meanwhile I found a possible solution. They create the page for the Setup menu in the install() function of the original class. In the extended class I update the original page.

    $page->name = self::pageName; 
    $page->process = $this;

    So the page process will be the extended class. What do you think about this solution?

  11. Hello,
    We are using Processwire 3 and sometimes we get error messages from the fileCompiler. The error message is always like "Class: 'MyClass' not found". It happened when I cleared the caches table from the database, but before it appeared randomly. Did you experienced anything like this? How can we get rid of this problem?
    Thanks for the help!

  12. Hello,

    I'd like to extend an existing module, because I want to add functionality to a not hookable function. How can I achieve that my extended class is called first? 
    Currently both modules are appearing in Setup menu, so the original one and the extended as well. I want to achieve that if I click on the original menu item, my extended class is called. 

    Thank you for the answers!

×
×
  • Create New...