Jump to content

verdeandrea

Members
  • Posts

    123
  • Joined

  • Last visited

Everything posted by verdeandrea

  1. @dragan unfortunately i can not go to old state cause a lot of contents are being inserted by my client during these last days. I'll definitely try to merge the two custom modules into one.
  2. @adrian sorry i forgot to mention: PW version is 3.0.62, so it should be the last. @dragan thanks, i'll change my functions names se they are not the same. But i think i understood where the problem is but i don't know how to fix it. I have these two repeaters and their children fields where inverted when I imported them via pw import fields. Then i though i fixed but they are now somehow related. That means that, if i fix one repeater's children also the other repeater get the same children. I suspect it could be some problem with ids in database. Maybe the best thing to do is create new repeater fields from scratch, if you don't have better suggestions on how to fix this problem. Right know i tried to fix one repeater and when I checked the other one, its children fields were changed and were the same of the first repeater.
  3. This are the modules I have installed. There are two custom modules I made (GlobodoroChildren and GustoChildren). But I don't think they can be responsible for this problem. You can find them attached. GlobodoroChildren.module GustoChildren.module
  4. Thanks for the reply. @dragan I'm using the CronjobDatabaseBackup module to make daily backups of the database @Robin S no I'm not using it. If I remember correctly i had this problem for the first time when i used export / import fields tool in processwire to copy this new fields from my local pw to the remote one.
  5. Hi guys, I'm getting crazy trying to figure out what is the cause behind a weird problem is giving me some bad moments with my client. I have a repeater field, with some fields as childre. From one day to the other the children fields of the repeater change and i find other fields as children. Also, all the content my client inserted in that repeaters are gone, cause now we have the new empty children fields. I really don't understand what can be the reasons behind this. This happened more than once. It' s like there is a repeating action that changes the repeater's children. The only repeating action I can think of is the chronjob for the database. Could this depend on that? Have you any idea or suggestion of what should i check or ho to solve this weird problem? Thank you very much!
  6. Hi, i'm working on a website based on an old PW website. I started from the old one and i upgraded PW version to the last one (3.0.62) replacing wire directory, index.php file and .htaccess file. After i started working on it i noticed that it was messing with my repeaters, saving them in wrong parent pages with wrong templates. So i decided to downgrade to the previous version (2.6.1) and now my repeaters are working again. But now i have problems with the Password field and when i try to edit an user or the pass field i get this error Warning: Creating default object from empty value in [...]/wire/modules/Fieldtype/FieldtypePassword.module on line 44 Error: Uncaught Error: Call to undefined method stdClass::setPage() in [...]/wire/modules/Fieldtype/FieldtypePassword.module:45 Stack trace: #0 [...]/wire/core/Field.php(485): FieldtypePassword->getInputfield(Object(Page), Object(Field)) #1 [...]/wire/core/Wire.php(387): Field->___getInputfield(Object(Page)) #2 [...]/wire/core/Wire.php(325): Wire->runHooks('getInputfield', Array) #3 [...]/wire/core/Field.php(554): Wire->__call('getInputfield', Array) #4 [...]/wire/core/Wire.php(387): Field->___getConfigInputfields() #5 [...]/wire/core/Wire.php(325): Wire->runHooks('getConfigInputf...', Array) #6 [...]/wire/modules/Process/ProcessField/ProcessField.module(729): Wire->__call('getConfigInputf...', Array) #7 [...] (line 45 of [...]/wire/modules/Fieldtype/FieldtypePassword.module) This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. When i was using the newer version i made some changes on the password field security options, so maybe it could be related to that. Could some one please help to fix it? Thanks EDIT: Of course i downgraded putting the old wire directory, index.php file and .htaccess back
  7. Hello girls and guys, i'm looking for an Italian ProcessWire Developer that could help me with a website. I've developed a web platform for car sellers since three year now. The website is a training and motivational platform, and every year it has a new "edition" with a new theme a new graphics, but the backend part is mostly the same every year. This year the platform has to be released around the 30th of November but i won't be working for 2 weeks around that date. So I'm looking for someone who can maintain the website and help my clients with possible bugs or problems during these two weeks. This person should know how PW works, should be able to understand and write PHP and fix some minor problem on the front-end side. My client is Italian that's why he or she has to be Italian-speaking. If you are interested or you know someone who cold fit this request, please send an email to andrea at andreaverde dot it or write me a pvt message here. Thanks!
  8. Thanks Bernhard, this is my case: I have a page "Lawyers" that contains other pages, that are groups of lawyers i.e. "Partners", "Associates", etc. Iniside every group i have pages for every lawyer. So in the end is something like this: Lawyers |__Partners |__Donald Duck |__Uncle Scrooge |__Mickey Mouse |__Associates |__Bugs Bunny |__Duffy Duck |__Speedy Gonzales and so on with other groups. I'm using the lawyers page to load and filter all the lawyers by group, name and others criterias, so i'm loading the filtered data via ajax and using vue.js to show them on the page. I'm also updating the page url, using js, according to filtered data. For example, my starting url is "/lawyers/". If i filter al the partners that should be "/lawyers/partners/". If i continue filtering for country that should be "/lawyers/partners/italy/". An that is not a problem as long as i start my navigation starting from "/lawyers/". But, of course, if i go directly to "/lawyers/partners/" pw open the partners page (that does not have a php template). That is why i need everything after "/lawyers/" to be considered as an url segment. Is there a good way to make it work? The only other solution i could come up with is using a different page (not "Lawyers") as starting page for searching and filtering lawyers so that i can use url segments without conflicts with children pages. Is there a better solution? Thanks
  9. Hello! I have pages that have separated fields for first name and last name. I'm working on a search form that has one single input field, so that if someone search for "John Doe" it should find all pages that have "first_name = John" and "last_name=Doe" or, of course, "first_name=Doe" and "last_name=John". What would be the best use of selectors and operators in this case? I came up with first_name=John|Doe, last_name=John|Doe so that i should split the search key with | I'm not sure this is the best solution. What would you suggest? Thank you!
  10. Hello, i read that "URL segments only apply if the requested URL did not resolve to an actual page." (from here) Is there a way to change this behaviour? I have a parent page loading his children via ajax, and i know which children to load from url segments. So that would be nice to have url segments to have precedence instead of children's url. Thanks!
  11. Well, it's not working with my PW 3.0.28 site, e here it says compatibility to 2.6, so i guessed that wasn't compatible with latest PW release. Is this just happening to me?
  12. Is there any valid alternative for batch actions on pages?
  13. Thanks @Robin S I've checked my phpinfo and it says Debug Build = no error_reporting = 32767 So i should change error_reporting? Setting it to what?
  14. @BitPoet they just changed my php installation with a no-debug one, but unfortunately i still get the same exact errors message. Is there something else i can try?
  15. You are right! It says "Design Build = yes". So i need to ask to install a not-debug version of php?
  16. @horst This are my active modules: FieldtypeConcat FieldtypeMapMarker FieldtypeSelect InputfieldCKEditor ProCache ProcessDatabaseBackups ProcessExportProfile TextformatterVideoEmbed ProcessTemplateSetupBatcher.module @BitPoet: Thanks. I've tried putting error_reporting(E_ALL & ~E_NOTICE); at the end of my site/config.php file, but nothing changes. I'll ask to my hosting provider if there is a debug build of php installed. Can i also check this by myself using phpinfo() or something else?
  17. Thanks Horst, yes, I know that. I changed folder and files permissions manually. I changed them using ftp software. I've done as you said, i've checked the file folder of my page and the image is there. The file has 777 permissions, the id directory has 777 permissions and "files" directory has 777 too. I had applied 777 to all assets folder (just for test, i'll change it later) but still no luck.
  18. I've just checked and permissions for the files folder were ok. I tried also to change them to 777 but i still have the same error. I tried to create a new template with a new image field and it still gives me this error when i save, even if i don't upload any image and i left the field blank. This happen only with images/file fields. I don't get any error if i don't have image fields. All filed from the old hoster should be in the new one. But i don't know if there's a way to check it for sure. What else should i check?
  19. Hi guys, i've moved a PW site from an hosting to an other. Now everytime i try to edit and save a page with and image field I get this errors Notice: No file uploaded in Unknown on line 0 Notice: No file uploaded in Unknown on line 0 Warning: Cannot modify header information - headers already sent in /var/www/html/mysite/wire/core/admin.php on line 14 Warning: Cannot modify header information - headers already sent in /var/www/html/mysite/wire/core/Session.php on line 464 Warning: Cannot modify header information - headers already sent in /var/www/html/mysite/wire/core/Session.php on line 465 But if I reload the page i can see that the page's been actually edited and saved. I checked Chrome Developer Tool but there is no error there. If i set debug to false from config.php i see only the first two errors. I tried solutions suggested on this forum (initOldSchool(), changing .htaccess, setting directories permissions, checking logs directory, empty session directory, checking if config.php has some empty lines in the beginning) but i had no luck. Pw version is 2.5.3 and PHP version is 5.4.34 Can you please help with this? Thanks!
  20. Thanks @LostKobrakai! Why do you think that is better than a session variable? (I'm asking just to understand better)
  21. Hi guys, here is my scenario. In my page everyone can submit a simple form with just a input text. User (guest user, no registration needed) writes something in this field and the submits it (the form is submitted via ajax so i don't refresh the page). Every text submitted is saved as a new page. After this step i ask to the user if he/she wants to register his email in order to be updated with infos about his submission. Now, if the user decide to leave his email i need to relate this email with the previously submitted text. What's the best way to do that? Working with some session variable? Putting the new page id in an hidden field? Cookies? Something else? Thanks!
  22. Thanks @adrian! That's exactly what i needed! Super!
  23. Hi guys, I have this structure: - page group A (template group) --- events group A (template group_events_list) ------ event 1 (template group_event) ------ event 2 (template group_event) ... --- news group A (template group_news_list) ------ news 1 (template group_news) ------ news 2 (template group_news) ... - page group B (template group) --- events group B (template group_events_list) ------ event 1 (template group_event) ------ event 2 (template group_event) ... --- news group B (template group_news_list) ------ news 1 (template group_news) ------ news 2 (template group_news) ... - page group C (template group) --- events group C (template group_events_list) ------ event 1 (template group_event) ------ event 2 (template group_event) ... --- news group C (template group_news_list) ------ news 1 (template group_news) ------ news 2 (template group_news) ... So every group has the same structure with events and news but they share the same template. Now, i would like to limit access for group admin to a specific group branch so that the group A admin, can access, edit, and create/delete new pages for group A, but i can not edit other group. The same for group B admin, and so on. I understand that the best idea would be to use a template - role access, but i don't want to create a different template for every group, since every group page has the same fields, structure etc. I've tried this module http://modules.processwire.com/modules/page-edit-per-user/ (even if it says just to pw 2.4 and i'm using pw 2.7.2) and i can limit access to just one group per user, but just for editing pages, not for creating new ones. And if i give page creation permission to a template, let's say group_events_list, for a specific role, than that role can create pages for every group events. How can i limit editing and creating permission just for a single group (and its children pages) per user. Is it possible? Thanks a lot!
×
×
  • Create New...