Jump to content

rooofl

Members
  • Posts

    91
  • Joined

  • Last visited

  • Days Won

    1

rooofl last won the day on October 22

rooofl had the most liked content!

Recent Profile Visitors

4,628 profile views

rooofl's Achievements

Full Member

Full Member (4/6)

34

Reputation

3

Community Answers

  1. Solved! As @matjazp advised in PM, mod_security was the problem. I contacted my host provider (OVH) and changed in .ovhconfig the line: http.firewall=security to http.firewall=none Thank you all for your time.
  2. mod_security was the thing indeed! Solved thank you @matjazp @netcarver!
  3. Thank you for this last tip @BrendonKoz, unfortunately, changing the admin URL didn’t solve that neither.
  4. My client’s PW installation needs help: this bug is currently affecting all the upload fields of the installation. I can’t spend more time on that bug unfortunately, and I am looking for estimates to solve that. Anybody interested? Send it to raphaelbastide at pm.me and CC daniela at rinomina.com. thank you !
  5. @matjazp I understand this was precious information, and I am sorry I missed that in the first place. @monollonom Than you for the suggestions. The XHR response I get when uploading is 403 forbidden I am not sure if I use or not ImageSizerEngineImagick. I guess I don’t, but how can I be sure? toggling to Overwrite existing files ON doesn’t solve the issue. Thank you for taking time to help me.
  6. But the issue existed with the older version of PHP I ran, actually I upgrade PHP and PW because of this issue.
  7. Yes, I triple checked everything. Also, I wonder why it would not work with the current PW version I use: 3.0.246
  8. Yes I have PHP 8.4. I tried to install the PW version you advise, but my site and admin went totally blank, even with debug enabled in config.
  9. Thank you @matjazp. I refreshed the modules from the log. I think I updated all the module that needed to be updated (I guess). I also installed the Upgrades module to be sure. The logs doesn’t log anything when I try to upload an image. The error remains. My FieldtypeFile module is at v. 1.0.7 and FieldtypeImage at v. 1.0.2.
  10. Hello, I am facing an upload issue. I get this JS error when I drop images in image fields: XHR POSThttps://foo.com/admin/page/edit/?id=1102&InputfieldFileAjax=1[HTTP/2 403 41ms] Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data uploadFile https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 uploadFile https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 traverseFiles https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 setupDropzone https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 setupDropzone https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 initHTML5Item https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 initUploadHTML5 https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 jQuery 2 initUploadHTML5 https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 init https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 InputfieldImage https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 <anonymous> https://foo.com/wire/modules/Inputfield/InputfieldImage/InputfieldImage.min.js?v=122-3.0.246:1 jQuery 8 InputfieldImage.min.js:1:35804 I updated PW recently and also upgraded the PHP version. Maybe that can be related!
  11. Thank you @monollonom!
  12. I have a hook in a ready.php file, that is supposed to fill a page’s field when a public form is submitted. wire()->addHookBefore("Pages::saveReady", function(HookEvent $event) { // do all that for font pages only $page = $event->arguments(0); // avoid the error “page can’t be saved” if($page->id){ if($page->template->name !== "font") return; if(!$page->webfont_archive->count()) return; // fills styles foreach($page->webfont_archive->find("ext=woff2") as $font) { $styleTitle = basename($font, ".woff2"); $styleName = wire('sanitizer')->pageName($styleTitle,true); $styleToFind = wire('pages')->find("name=$styleName, template=repeater_font_styles"); wire('log')->save('vtf_custom', "TOFIND: ".$styleToFind); … } $event->arguments(0, $page); … I noticed that $styleToFind is logged only when I use the form when being logged. Can someone explain me why? And how can I make sure it can be found also for guests (not logged in visitors)?
  13. Thank you @wbmnfktr for your answer. I think it is a bit more complicated than I thought. I understand what you wrote, and it totally make sense, but I think the economy will choose for me : keeping the markdown field as it is. However, I just discovered the module InputfieldEasyMDE, and that might be what I am looking for, as it keeps the markdown field content and just adds formatting options on a icon bar.
  14. Hello! I have a textarea field already full of Markdown content. My clients need it to have CKEditor on it. That may be a silly question, but I can’t figure out how to use CKEditor with Markdown. Is it possible to either: interpret Markdown in HTML on the fly, in the CKEditor field convert all Markdown in HTML so CKEditor fields show HTML as they are supposed to do (I guess) Thank you for your answers.
  15. This is a very uninterested question, as I am just curious about this topic. Is there any dynamic towards a possible integration of Activitypub with Processwire? Would it be possible to create sites and app with PW that can interact with the fediverse? This could be a plugin able to federate with the network (just like this wp plugin does), or maybe a deeper integration (retrieve specific content from other federations…). I am personally using Mastodon and Peertube a lot since 5+ years and I think this is a great part of what remains of the cool Internet. I also feel an important technical gap between building website and creating federated apps, maybe for a good reason! I am interested to know your thoughts,
×
×
  • Create New...