Jump to content

rooofl

Members
  • Posts

    74
  • Joined

  • Last visited

Recent Profile Visitors

3,822 profile views

rooofl's Achievements

Full Member

Full Member (4/6)

25

Reputation

3

Community Answers

  1. Thank you! I “solved” the problem by adding a line to the .htaccess and hiding the 404 notifications on the notification module parameters.
  2. The page /in-use/ exists, but those URL feel like a collage of many data types of the website, complete nonsense, they obviously not exist on the server. However, I found that the error also mentions "amazonbot": Referer: unknown Useragent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot) IP: 3.224.220.101 Page: Unknown User: guest The IP is also always different. And similar errors with Page: Unknown are being triggered almost every time without clear Page or Referrer. I have the feelings that bots are trying to reach pages that doesn’t exist. My PHP logs are ful of this kind of warnings. What should I do at this point ?
  3. Hello, every ~5 seconds I have a 404 warning notification that appears on the admin pages. It says: 404 occurred: /in-use/aaaaa-atelier.org/www.aaaaa-atelier.org/www.aaaaa-atelier.org/aaaaa-atelier.org/fiskprojects.com/aaaaa-atelier.org/aaaaa-atelier.org/aaaaa-atelier.org/fiskprojects.com/fiskprojects.com/www.aaaaa-atelier.org/www.aaaaa-atelier.org/stud 10 secs / expires 20 secs As you can see, the URL is very strange, and I have no idea how to solve this request (is it a request?). It lasts since months now and it is very overwhelming. I have `$config->debug = false;` Any help welcome.
  4. rooofl

    Velvetyne

    Hi all, This is our new website, still based on Processwire since 2015, we are very happy to be able to work with such a good piece of software. Thanks everyone for the support. https://velvetyne.fr You can read more about this new version here https://velvetyne.fr/news/new-website-v3/
  5. Same error for me, it ended up being a attempt to connect with http instead of https.
  6. Let me ask another question: could it be possible to log in JavaScript, the path of a file that just has been Ajax uploaded without saving the page? I tried that with no result: let uploadField = document.querySelector('#Inputfield_webfont_archive') uploadField.addEventListener("AjaxUploadDone", (e) => console.log(e));
  7. That solution works! Thank you!
  8. I think both works, and my issue is more about retrieving this value once the pages is saved and reloaded: $this->wire('log')->save('vtf_custom', $this->wire("config")->js('mySettings')['foo']); returns “bar” as expected, but there is still no trace of “mySettings” in the js object ProcessWire.config when I log it.
  9. I am trying to use $config->jsConfig(). A very basic module I crafted does that after a page is saved: $this->wire('config')->jsConfig('mySettings', [ 'foo' => 'bar', 'bar' => 123, ]); … and the same module has a JS file that tries to get those data back: (right now I am sticking to the doc’s exemple as you can see) var mySettings = ProcessWire.config.mySettings; console.log(mySettings.foo); console.log(mySettings.bar) But that last JS returns “mySettings is undefined”. That is where I need some help. More generally, Is this the best way to deal with php <—> JS data interchange, considering my goal is to fill a field with js generated content with a URL from an upload field as parameter: Upload field in page edit -> fileURL -> javascript doStuff(fileURL) -> fill a PW field with the result of javascript doStuff(fileURL)
  10. I tried using leading invisible characters or even visible ones, but trim() seams to transform 1 2 into 12 for the first line of the content.
  11. Yes, I just did that, adding noTrim to the FormBuilder field as well. But the issue still exists. My logs:
  12. Hi @Robin S and thank you for your hook, it appears to be exactly what I need. However, after some tests, the checkbox appears, the field is logged as noTrim = 1 with wire('log'), but the textarea content leading white spaces are still removed. Is there something else I should check? Currently, I have zero formatter and the content type is text. Field Object ( [id] => 160 [name] => ascii_drawing [label] => [flags] => [type] => FieldtypeTextarea Object ( [data] => Array ( [inputfieldClass] => InputfieldTextarea [contentType] => 0 [htmlOptions] => Array ( ) ) ) [data] => Array ( [inputfieldClass] => InputfieldTextarea [contentType] => 0 [collapsed] => 0 [minlength] => 0 [maxlength] => 0 [showCount] => 0 [rows] => 5 [noTrim] => 1 ) ) Edit: The field is use with the FormBuilder module, maybe the FormBuilder associated field also trims the content?
  13. I have a text field and I need its value to preserve all white spaces, especially the one ahead all text content. Is that possible? What I get when I <pre> the output: 1 2 3 What I need 1 2 3
  14. Thank you all for all your answers. This is perfect, I even have the choice! Problem solved.
  15. Thank you for your answer! If I understand correctly, you are referring to the Repeater item labels, where I currently have the {title} as value, to show the item’s titles as field name? I don’t understand that part, what is the page reference exactly?
×
×
  • Create New...