Jump to content

ocr_b

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by ocr_b

  1. SQL Error? Solved by making my own selector string. Can you also explain a bit this a bit deeper? From the docs: »Include pages that user doesn't have access to view.« — Why is the user not having access to the pages even though it has user-admin permissions? — How is it possible to give the user the rights to see the pages without check_access? Thanks!
  2. I have the exact same problem. I have a page ref field for user selection, and no role, but the superuser, can find users. Under »Input« I have »Users« withing the »Parent« section of »Selectable Pages«, and a »custom find« to to the special role gives no entries for the logged in user (as OP) (Roles Name Equals Reseller | @roles.name=reseller | it matches 10 pages.) Is check_access the solution for this, and how would I implement it within the page field? thx
  3. yes. to clear it up: for me it works only if the custom page module gets a dedicated permission, otherwise if the user has no superuser role, he wont have access. but with the permission it works good. you want to reinstall the module to install a permission and you want to refresh the modules cache after you add a permission to another module. it does not install a permission with a simple module cache refresh. thanks for the quick replies bernhard, much appreciate.
  4. thats what i thought, but it didnt work. i had several custom pages and all been not accessible. then i added a permission to one(!) of them and reinstalled the module to make pw install the permission. i don't fully understand what happend, but now every page is in default visible like you said, even if i remove the permission again. (solved)
  5. Hi, which rights does a user role needs to have to access those pages? — i have multiple user-roles, which can login to the backend and should work with custom pages. but if they try to access such a custom page, they get a 404 error, because they dont have access to it — it works if they have the superuser role though. but i dont want them to have superuser rights. — did i overlook someting?
  6. you really know every post in this forum. i am so impressed ? no really, i am impressed... thanks for another good hint. i will take your advice and after i finished the work i will come back here and tell you how it went and what i did, maybe somebody else will find a solution in this too. :) thanks!
  7. thanks for you reply. i really do consider working with the backend. i didn't think its hard to bring in the functionality, i am concerned about the outcome dealing with my custom design. what i loved about processwire, when i changed some years ago, was that you do not have to strike down code you didn't wrote, but can modularly build up your own template, simple and easy. your crm looks really powerful, but the design is mostly the one from the pw-backend. my design doesn't look like this at all, so i would have to tweak the complete admintheme(uikit), which doesn't even have a css preprocessor (does it?), going into code i didn't wrote. if i would decide for a frontend application i would just have to write the ui for what i have there, while tweaking the admintheme may break something, because css classes overlap. (what i hate is to get a template [for example wordpress] and have to change some "minor" things, these sometimes taking much longer then just rebuild everything with pw) hard to tell for me how this turns out, maybe i am wrong, maybe right. i think i will follow your lead and do it with the backend.
  8. Thanks for the feedback. I wasn't quiet clear about what the user has to do, because I didn't want to give too much unnecessary information and bother with your time ? The website is more like an application, where there are 3 types of users, and everything is hidden behind a login (or create account): reseller, admin and production. the reseller is able to order assets. the admin is able to upload assets and the production will receive those assets. also there will be email notifications after successful actions. pages will have a different output to which user-role is visiting it. e.g. "orders" page: reseller – sees only what he ordered, admin – sees all, production – sees all, and also can change the production status. Also dedicated designs for every page. — so i thoughts its easier to build a frontside site and use the formbuilder, rather then redesigning and hooking with modules into the backend. thanks also for the link, i must have missed this update and will have a look. any more feedback is welcome.
  9. Hi, i will build a small site with around ~100 users. they will have an account page with details like address etc and are able to edit pages like change text and do uploads etc. i want to use the formbuilder pro module for all kind of editing they have to do. i wonder: how do you manage the users in processwire? • would you modify the user template so it can hold the information? — or make a new page called accounts, with children-pages for each user, which are then connected to the pw-user? • the users should never see the processwire backend, would you then use the pw-login and redirect them, or build your own login? • any other advices, best practises? looking forward to read your thoughts! thanks!
  10. Hi, i am looking for an italien hosting company to run a small/mid-sized processwire application. it should be managed, shared is fine for now. any recommendations? thank you!
  11. Hi, i changed one line in the JS code of the InputfieldRepeater.js in /wire/modules/Fieldtype/FiletypeRepeater to have this field behave like i want: instead of appending the new items to the container it should prepend them, so every new item is on top instead of at the bottom. $inputfields.prepend($addItem); // $inputfields.append($addItem); how would i make this change update proof? can i just copy the file to /site/modules/(...)? or is there any smooth way to hook into this javascript function? best, ocr_b
  12. I striped out any filecompiler entry in caches, I think those have to remain, otherwise Processwire will not know which modules are installed etc? Will try tomorrow. Thank you.
  13. Okay, thank you! I think we already tried to empty all the caches. But I will give it another spin. Basically I can remove the complete site/assets/cache + site/assets/logs + site/assets/session folders and PW will cache everything new at the first call of the page, right? It endlessly waits, so I guess its loading something. It does not end. (or takes 2 hours??). Debug is turned on. They said they cannot see anything in the server error logs also the pw logs are empty, thats why this is so hard to debug... My guess is that the file-compiler is not having the right permissions (but they said its 777 for everything) or missing some php functions, or timeout? BUT, a fresh installation works: Maybe file-compiler does not do anything on a new installation?
  14. Do you mean the old or the new server with other / second server?
  15. What happens in Processwire when the backend link slug is tryed to be opened in the browser? Here is the problem: A clean Processwire installation runs seamlessly on the server. But with some unknown reason duplicating another Processwire runs into the problem that opening the backend (/processwire) breaks the site. By duplicating i mean: 1. copying all files from one server to another. 2. exporting the database with phpmyadmin from he old server 3. importing the database with phpmyadmin to the new server By breaking i mean: 1. It loads and loads and loads and »waits« for the server. No logs in site/assets/logs are updated. 2. If i want to open the root (/) now it now also loads and »waits«. 3. If i delete the sessions in site/assets/sessions the root (/) works again. We tried to deinstall all modules before the duplication – but this also does not make it. We thought about that it's weather a Cache or FileComposer problem. But even with every possible permission for every file it does not work. What would you say is the problem? Thanks, ocr_a
  16. There is a htaccess file. Maybe it's not working – true. You think it's a permission problem? Cannot access the clients server anymore, they are »trying out things«. I'll keep this topic up-to-date. EDIT: Forbidden You don't have permission to access /2018/site/assets/active.php on this server.
  17. Sure. Makes sense. But I cannot test it, because my PW installation does not have any (sub)pages, but only the homepage, it is a one-pager. So /processwire backend is the only page I tried and need to access.
  18. I found similar problems with Typo3 and Wordpress in a Subfolder: (for example here, german: https://www.typo3.net/forum/thematik/zeige/thema/92162/) I think the setup is the following – i do not have insights in their file system: root: Typo3 with htaccess root/subfolder: PW with htaccess url to base: example.com url to subfolder: example.com/subfolder — works because it has its own htaccess example.com/subfolder/processwire — does not work, because /subfolder/processwire does not exist physically. as of this the main typo3 htaccess at example.com gets the routing, because its prior to the htaccess in /subfolder. solving (not tested yet): prevent the typo3 htaccess from taking over the /subfolder: RewriteCond %{REQUEST_URI} !^/(subfolder) does this makes sense? does anybody here is more versatile in htaccess issues than me? — where to I have to put the rewritecond, at the beginning? Thanks, ocr_a ps. congrats @Soma!
  19. I thought about something like example.com/wire/core/admin.php with dedicated permissions I have no idea how their file system works and why typo3 takes over every routing. But it's good to know that you guys see the problem more on the typo3 side. Thanks, ocr_a
  20. the backend page-slug is called processwire. (the standard slug) i can access the home-page, but the backend-page gets a typo3 404-error. everything is activated, typo3 just takes over. I think the typo3 .htaccess file is the right direction for now. What would you change? I will ask their IT-guys. — Their guess was that the processwire installation is broken because of permissions. But a new installation locally works totally fine... (with duplicator) Still: Is there something like a hard link to the backend? Thanks alot, ocr_a
  21. Hi, Here is the problem: A client runs a Typo3 Installation. We installed Processwire in another folder of the server. (its only a one-pager so no subpages) But the Typo3 Installation catches the /processwire before Processwire does and throws a 404-Error (its styled by Typo3, not PW) Is there a hard link to the backend, maybe like index.php?it=/processwire (I found it= in the htaccess, but I do not know the meaning of it) Or anybody has another idea? (What would a Sys-Admin do in this case?) Thanks, ocr_b
  22. SOLVED: For every newbie like me: Read the docs more carefully and use "{{ page.title }}" instead of "{{ page->title }}" within a twig-template I am new to Twig and want to implement into my default PW installation and get the following error: What did I do wrong? PW Verson is 3.0.98 Error: Exception: Unexpected token "operator" of value ">". (in /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/site/modules/TemplateEngineTwig/TemplateEngineTwig.module line 94) #0 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/site/modules/TemplateEngineFactory/TemplateEngineFactory.module.php(121): TemplateEngineTwig->render() #1 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/wire/core/WireHooks.php(822): TemplateEngineFactory->hookRender(Object(ProcessWire\HookEvent)) #2 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #3 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array) #4 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERPLATE/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Page->render() #5 /Applications/MAMP/htdocs/_PROCESSWIRE-BOILERP This error message was shown because: you are logged in as a Superuser. Error has been logged. Thanks
  23. Thanks, been around here for some time, but mainly reading ? This question is directed to everybody working on the Page Export/Import Core Module. (And I could not find a better place to post this question, or should I open a new topic?) I just wondered if and why if its not including templates directly, although its including fields. Maybe there is a downside / use-case I do not see at the moment.
  24. Little question here: So the export exports fields and references to the files, which will then be downloaded via http by the import. Why did you decide not to export the template file of the selected page(s)? -- My first thought was: Cool, now I can develop a new template in a dev-enviroment, maybe also changing some other old pages, and deploy everything in one step to the production...
×
×
  • Create New...