Jump to content

BFD Calendar

Members
  • Posts

    400
  • Joined

  • Last visited

Everything posted by BFD Calendar

  1. Is it also possible to sort the selectable pages in a template in the admin interface? I have hundreds of pages that are 'works'. To add a list of which works were in an exhibition I have a 'works-id' page field in my 'exhibition' template where I can add them just by typing the title. After a while it becomes difficult to see if one is already in the list or not. Sort by name would be a great help. On the website they are sorted (chronological) in the template code: http://www.amvk.be/exhibitions/solo-exhibitions/amvk/more
  2. What if it's not a new installation but a site that's been on for quite some time, where I want the default to be 'nl' instead of English?
  3. @adrian Thank, I tried this but again to no avail.
  4. Unfortunately my luck only lasted 14 hours... Upon logging in today the error is back.
  5. Same provider - two sites - PHP 7.0 - PW 2.6.23 rc2 upgrades works - PW 3.0.42 upgrades gives error. But... there was some old .gitignore file that PW installed in the old days. Removed that and yes! Upgrades are back. I'll keep my fingers crossed and see if they stay...
  6. Ok, I tried all this, to no avail. I'm using PW 3.0.42 on one site and 3.0.62 on another one, same problem. I noticed a .ProcessWireUpgrade folder in the modules folder so I also removed that. Three sites are hosted with OVH.net, one with a different provider doesn't have the problem. So that's where to look, but still I wouldn't know where exactly. PHP version is 5.6 if I'm right.
  7. I'm still experiencing "Error loading GitHub branches" on different sites with different PW versions. 3.0.36 and 3.0.42 for instance still give the error. A final solution for this would be a great help as now it seems more like a procession of trial and error via FTP.
  8. I uninstalled and deleted the module from the server, then reinstalled from the Modules interface and added fields etc. The contact.php template contains $scf = $modules->get('SimpleContactForm'); $options = array( 'emailAdd' => true, 'emailAddMessage' => $input->scf_message, 'emailAddMessage' => $input->scf_name, 'emailAddMessage' => $input->scf_hometown, 'emailAddReplyTo' => $input->scf_emailaddress, 'emailAddTo' => $input->scf_email, 'markup' => array( 'list' => "<div {attrs}>{out}</div>", 'item' => "<p {attrs}>{out}</p>" ), 'classes' => array( 'form' => 'form amvk_contact', 'list' => 'list-item' ) ); echo $scf->render($options); Now the form sends me two messages. The first one has the correct sender and subject (from the module interface) and correct reply address from the scf_emailaddress field in the form. The only content in the message is the scf_hometown information. The second message is all blank. I do understand the honeypot technique. I just wonder why the field isn't invisible by default. "make sure to add a display: none; CSS rule on it" is probably simple when you know where to add that rule. I'm afraid I don't....
  9. Slav, doesn't work here. 30 sec is really 30 sec....
  10. @justb3a Ok, this makes things easier, guess I read some old documentation. I suppose you sent a form from city: whereever, that arrived. But anyway, the scf_website field is still there.... and the other ones I added show up, but now the contact form doesn't pass the test. [FAILURE] Number of fields does not match. And then I still haven't figured out how to format the fields on the form....
  11. I upgraded manually to 3.0.36 on one of my sites by replacing the wire folder and ProcessWireUpgrade worked. Then I upgraded via the module to 3.0.62. Now the error is back....
  12. I installed this module but it stays dead by all means. First I installed it via the Modules interface in Processwire. Only two fields 'scf_name' and 'scf_email_adress' showed up in my Fields list. On the form also 'scf_website' appeared. Filling out a form gave an error message, probably because there was no message content. That went away when I entered a default text in the module interface. But no way to add the supposed fields. So I deleted the module via Processwire and removed the folder from my server. Then I grabbed the zip file from Github and uploaded it to my server. This time no fields were created at all. I added an existing one in the module interface. It shows up alright, but no others except the dreaded 'scf_website' shows up – although it doesn't show up in my Fields list. I'm using Processwire 3.0.62. Contact form is here amvk.be/contact/
  13. Yep, this works. Thanks cb2004.
  14. I'm calling MapMarkers from 'place' pages to get a Google Map with all places, using this code: $map = $modules->get('MarkupGoogleMap'); $places = $pages->find("template=places, MapMarker!=''"); echo "<br><br>" . $map->render($places, 'MapMarker', array('height' => '400px', 'zoom' => '7')); It works fine in PW 2.7.2. It doesn't work in PW 3.0.36. The map starts loading then gives an error "This page didn't load Google Maps correctly. See the JavaScript console for technical details", that says "Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead". In the admin interface the map loads fine. Any ideas to make it work?
  15. @backes It's a thread for Padloper issues. I also referred to the same problem in this thread: Apeisa suggested this: "Try uninstalling the DownloadGuard - quickly looked through it's code and it seems it hooks into Pages::save() and leaves outputformatting to true. If it helps, then we need to notice it's author to fix the behavior." and it solved my problem.
  16. I have a form (by Soma) to change information on a page - a tool lendout system, when someone returns a tool I fill in the return date and the page no longer shows in the lendout list. It worked perfect last semester, now out of the blue there's an error: Error: Exception: Can't save page 3435: /en/lendout/1460370298/: Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved. [return_time] (in /home/mekanoinsa/www/wire/core/Pages.php line 1045) #0 [internal function]: Pages->___save(Object(Page), Array) #1 /home/mekanoinsa/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #2 /home/mekanoinsa/www/wire/core/Wire.php(333): Wire->runHooks('save', Array) #3 /home/mekanoinsa/www/wire/core/Page.php(1482): Wire->__call('save', Array) #4 /home/mekanoinsa/www/wire/core/Page.php(1482): Pages->save(Object(Page), Array) #5 /home/mekanoinsa/www/site/templates/lendout.php(84): Page->save() #6 /home/mekanoinsa/www/wire/core/TemplateFile.php(182): require('/home/mekanoins...') #7 [internal function]: TemplateFile->___render() #8 /home/mekanoinsa/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #9 /home/mekanoinsa/www/wire/core/Wire.php(333): Wire->runHooks('render', Array) #10 /home/mekanoinsa/www/wire/modules This is the form code: // get a page $editpage = $page; $ignorefields = array("title","student_name","lendout_time","language_published"); $form = $modules->get("InputfieldForm"); $form->method = 'post'; $form->action = './'; // get the collection of inputs that can populate this page's fields $inputfields = $editpage->getInputfields(); // make all the fields required and add them to the form foreach($inputfields as $inputfield) { if(in_array($inputfield->name, $ignorefields)) continue; $form->add($inputfield); } // the inputfields don't already have a submit button, so we'll add one. $submit = $modules->get("InputfieldSubmit"); $submit->name = "submit"; $submit->value = 'Submit'; // add the submit button the the form $form->add($submit); $out = ''; // process the form if($this->input->post->submit) { // now we assume the form has been submitted. // tell the form to process input from the post vars. $form->processInput($this->input->post); // see if any errors occurred if( count( $form->getErrors() )) { // re-render the form, it will include the error messages $out .= $form->render(); } else { // successful form submission, so populate the page with the new values. $editpage->setOutputFormatting(false); foreach($form as $field) { $editpage->set($field->name, $field->value); } // save it $editpage->save(); $out .= "Page saved."; $out .= $form->render(); } } else { $out .= $form->render(); } echo $out;
  17. I just upgraded manually to 2.8.30 but still get the "Error loading GitHub branches - https://api.github.com/repos/ryancramerdesign/Processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/ryancramerdesign/Processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server." Can anyone explain me in plain text how to solve this?
  18. Can someone please shed a light on how to get the links for downloading a file? Documentation doesn't mention much and after all that's supposed to be the core business of this module if I'm right.
  19. It didn't work on a local server but it works on a live server. The only thing I haven't figured out how or where to find the download links. The 'Downloads' page is hidden because I don't want a list of all the downloads, just links to files I can add into text on a page.
  20. For some reason, this module doesn't work for me on my site. PW 2.7.2 and only the Superuser given a persistent login. Both sessionExpireSeconds and session.cookie.lifetime are set to 86400, still login lasts less than an hour. This works fine on a local MAMP server.
  21. Recently MapMarker doesn't convert "48° 52′ 8″ N, 9° 23′ 55″ E" address coordinates to Latitude and Longitude anymore. Any chance this has something to do with upgrading PHP? That's about the only thing that changed. PW 2.7.2 and MapMarker 2.0.6.
  22. Modules show as Upgrades 0.0.6 and Upgrades Checker 0.0.5. But I still get error "Error loading GitHub branches - https://api.github.com/repos/ryancramerdesign/Processwire/branches - HTTP error(s): 403 Forbidden: 2: fopen(https://api.github.com/repos/ryancramerdesign/Processwire/branches): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Forbidden - Check that HTTP requests are not blocked by your server."
  23. BitPoet, can you please elaborate on the 'where' you changed user_agent? I don't see it in my .htaccess.
×
×
  • Create New...