Jump to content

Spiria

Members
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Spiria

  1. I have a problem with Rockfinder. The user of "*=" seems not to be allowed? What am I doing wrong? findRaw() returns the result. $search = 'template=blog_article,title*=Processwire,sort=-created,limit=10'; $found = pages()->findRaw($search); $rockFinder = modules()->get('RockFinder3'); $finder = $rockFinder ->find($search) ->addColumns(['title', 'blog_author','blog_summary','blog_picture']) ->addPath(user()->language->name); $rows = $finder->getRows(); The result of findRaw(): Error message with RockFinder
  2. I know. We have no control over that. We just delivered the site ?
  3. The PJCCI is a Canadian government agency. This may be the reason...
  4. Yes, they are with Cloudfare. This is not us who set that .
  5. Hello, Where you attacking? ? Website is fine here. Are you still experiencing the issue?
  6. https://jacquescartierchamplain.ca The Jacques Cartier and Champlain Bridges Incorporated (the Corporation), in Montreal Canada, is responsible for the Jacques Cartier Bridge, the original Champlain Bridge, the Estacade, the Île des Sœurs Bypass Bridge, the federal sections of Bonaventure Expressway and the Honoré Mercier Bridge, as well as the Melocheville Tunnel. They asked Spiria to rethink the content of their site in Wordpress and to optimize the customer experience. The site is highly viewed as it shows live traffic status for the various structures managed by the organization. Once a work notice is registered, administrators can directly send to Mailchimp mailing lists and also post directly to Twitter, in both official languages. Most of the coding is done in-house, but the usual modules (FormBuilder, ProCache, ProFields, SeoMaestro, WireMailSMTP, etc.) are put to work. The module TwitterLatteReplace was used for rendering the pages. Administrators love their new experience with ProcessWire!
  7. Yes, it's also a way to go. I found also this to give it a try:
  8. Bonjour, We have a complex RepeaterMatrix field with several presentation scenarios. We were wondering if it would be possible to adopt a visual presentation or at least add a meaningful icon to each choice. Another option would be to be able to create a note attached to this field with an HTML markup. I imagine this could be done through a javascript embedded in the Admin template. Is there any other way to do this?
  9. Hi, I have a lot of trouble figuring out what I am doing wrong when I try to send a file to a given address. If I send the file in a program similar to Postman, I get the confirmation I want. If I try a similar operation with WireHTTP(), the file is not sent, it seems... The attritute sent should be "file". $forms = wire('forms'); $form = $forms->get('application_lever_form'); $entryId = session()->get('entryId'); $entry = $forms->getEntry($entryId); $filename = $entry["attach_your_cv"][0]; $urlFile = $forms->getFileURL($form->id, $entry['id'], $filename); $url = "https://api.lever.co/v1/uploads)"; $http = new WireHttp(); $http->setHeader('Content-Type', 'multipart/form-data'); $http->setHeader('Authorization', 'Basic ' . $this->accessToken); $http->setData(['file', file_get_contents($urlFile)]); $result = $http->post($url); I have tried also this: $forms = wire('forms'); $entryId = session()->get('entryId'); $entry = $forms->getEntry($entryId); $filename = $entry["attach_your_cv"][0]; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); $url = "https://api.lever.co/v1/uploads)"; $http = new WireHttp(); $http->setHeader('Content-Type', 'multipart/form-data'); $http->setHeader('Authorization', 'Basic ' . $this->accessToken); $http->setData(['file', $contents]); $result = $http->post($url); What am I doing wrong? PS: The curl equivalent (which works from Postman) is: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.lever.co/v1/uploads', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => array('file'=> new CURLFILE('/Users/guyverville/Downloads/Clipboard Data.txt')), CURLOPT_HTTPHEADER => array( 'Content-Type: multipart/form-data', 'Authorization: Basic ........' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
  10. If you want to use classes, you must also include this $config->usePageClasses = true;
  11. Be sure to have this in your config.php $config->useFunctionsAPI = true;
  12. Hi, Here is a short tutorial on my vision of routing in ProcessWire. https://www.spiria.com/en/blog/web-development/tutorial-routing-in-processwire/
  13. Here is another little tutorial about files structure in ProcessWire. https://www.spiria.com/en/blog/web-development/tutorial-the-file-structure-in-a-processwire-site/ Comments welcome as always.
  14. A little I wrote about template rendering in ProcessWire. https://www.spiria.com/en/blog/web-development/tutorial-processwire-style-rendering-strategy/ Comments are welcome.
  15. In fact, switching the diacritic corrections to off in French resolved the problem. "ne" is set to be corrected into "né" when you are in English.
  16. I have however another stranger and more important problem in French. Every "ne" which is the negation in French, is replaced by "né"!!!
  17. I have a strange problem which is also present with another fork of php-typography. All the letters are spaced... I had hope that your module would have not the same problem. It seems related to the locale. Putting set_space_collapse to false resolves the issue. https://github.com/mundschenk-at/php-typography/issues/137
  18. Thanks. It was too early in the morning ?
  19. Is it set by default or should we set something somewhere?
  20. I have found the culprit. My developer put a hook in the ready.php like this: if (wire("page")->template->name === 'admin') { // Ensure Uniqueness of Emails across site $wire->addHookAfter("InputfieldEmail::processInput", function (HookEvent $event) { $field = $event->object; .... Commenting this whole hook removes the problem. Sorry to have bother you with that.
  21. I mean either disabling or uninstalling. Nothing happens except the "unrecognized path" error. So I tried to remove physically the module, deleting the cache folder, emptying the cache table in the DB (yes, BD is in French ;-)), emptying the session folder as well. Making sure there is no trace (no pun intended) in the modules table. Indeed, there is something strange about this installation...
  22. I will add a final thought. TD is the only module in this installation that I can't disable... I have to remove it by hand and clear the BD. Perhaps I am leaving something?
  23. Ok, thanks. So I am still in the dark. Tracy Debugger seems not the problem indeed. I have tried reducing the PHP version and reverted to the TD version suggested. Thanks for your kind help.
  24. Is this normal that not all the modules are displayed? Those disabled do not change a thing.
  25. Ah ah, I am not familiar of all the bells and whistles of your excellent module. Thanks again.
×
×
  • Create New...