Jump to content

Mark_invisu

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Mark_invisu

  1. Hello, I'm getting this error message when following a link within my Process Wire website, I wish I had more information but this just suddenly started happening: Umm… Fatal Error: Uncaught TypeError: PageFrontEdit::inlineSupported(): Argument #1 ($field) must be of type Field, null given, called in wire/modules/Page/PageFrontEdit/PageFrontEdit.module on line 588 and defined in wire/modules/Page/PageFrontEdit/PageFrontEdit.module:291 #0 wire/modules/Page/PageFrontEdit/PageFrontEdit.module (588): PageFrontEdit->inlineSupported(NULL) #1 wire/modules/Page/PageFrontEdit/PageFrontEdit.module (443): PageFrontEdit->populateEditTags(Object(Page), '<!----------- G...') #2 wire/core/WireHooks.php (1094): PageFrontEdit->hookPageRender(Object(HookEvent)) #3 wire/core/Wire.php (484): WireHooks->runHooks(Object(Page), 'render', Array) #4 wire/modules/Process/ProcessPageView.module (193): Wire->__call('render', Array) #5 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest)) #6 wire/core/Wire.php (416): ProcessPageView->___execute(true) #7 wire/core/WireHooks.php (968): Wire->_callMethod('___execute', Array) #8 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array) #9 index.php (55): Wire->__call('execute', Array) #10 {main} thrown (line 291 of wire/modules/Page/PageFrontEdit/PageFrontEdit.module) This error message was shown because: you are logged in as a Superuser. Error has been logged. Any help or advice would be very helpfull, Mark
  2. Hi Brendon, I followed your advice and nothing was revealed, as I think you pointed out and I originally suspected this was the hosts issue, so in the end we found a host that has better support for Process Wire and there have been no issues, so we're migrating everything over to them. Thanks for all your help with this. Mark.
  3. Hello, This issue still hasn't been resolved however I have learned some new information. After upload the script runs for exactly five minutes and then returns a 504 Timeout error, which seems odd to me that this shouldn't take so long I suspect its the http request timeout setting in the apache configuration. I cannot find any error's in any of the logs to provide information, if anybody has any ideas what could be causing this I would be very grateful. Many thanks Mark
  4. Hello FireWire, I set allowExceptions to true the developer tools after the timeout returns the following error: JQMIGRATE: Migrate is installed, version 1.4.1 InputfieldFile.min.js?v=129-3.0.246:1 POST https://poeshappyplace.co.uk/control/page/edit/?id=1&InputfieldFileAjax=1 504 (Gateway Timeout) uploadFile @ InputfieldFile.min.js?v=129-3.0.246:1 traverseFiles @ InputfieldFile.min.js?v=129-3.0.246:1 (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1Understand this error VM220:1 Uncaught SyntaxError: Unexpected token '<', "<html> <h"... is not valid JSON at JSON.parse (<anonymous>) at XMLHttpRequest.<anonymous> (InputfieldFile.min.js?v=129-3.0.246:1:6460) (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1 XMLHttpRequest.send uploadFile @ InputfieldFile.min.js?v=129-3.0.246:1 traverseFiles @ InputfieldFile.min.js?v=129-3.0.246:1 (anonymous) @ InputfieldFile.min.js?v=129-3.0.246:1Understand this error Thanks, Mark
  5. Hello Fire, I can see you've put a lot of effort in helping to solve this so thanks for that, here is all the data from Firefox debugger: Headers Response: HTTP/2 504 server: nginx date: Wed, 23 Apr 2025 14:56:32 GMT content-type: text/html content-length: 160 X-Firefox-Spdy: h2 Request Headers POST /control/page/edit/?id=1&InputfieldFileAjax=1 HTTP/2 Host: poeshappyplace.co.uk User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0 Accept: */* Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate, br, zstd X-FILENAME: Untitled-2.png X-FIELDNAME: upload Content-Type: application/octet-stream X-TOKEN1027973821X1745402814: siSF1CH8q.0WZrbaHLdq0L0z.LhNvGRm X-REQUESTED-WITH: XMLHttpRequest Content-Length: 17481650 Origin: https://poeshappyplace.co.uk Connection: keep-alive Referer: https://poeshappyplace.co.uk/control/page/edit/?id=1 Cookie: pagelist_open=JSON%5B%221-0%22%5D; wires_challenge=Fe1sdoBFEE6xRXKvRdBmNztesp%2FtkiDf; wires=659c1ebb45dd2830f72c4db8969fc57f; cpsession=%3aoH5Knnk_sYcRqUrk%2c8bdec0a2f45dd7304be705768bc383a6; timezone=Europe/London Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: same-origin TE: trailers Stack Trace uploadFile https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:8629 traverseFiles https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:10645 InitHTML5/initHTML5Item/< https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:10818 (Async: EventListener.handleEvent) initHTML5Item https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:10765 InitHTML5/< https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:4113 each https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:4048 each https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:1235 InitHTML5 https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:4034 <anonymous> https://poeshappyplace.co.uk/wire/modules/Inputfield/InputfieldFile/InputfieldFile.min.js:1:13726 fire https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:43765 fireWith https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:44935 ready https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:47825 completed https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:48339 (Async: EventListener.handleEvent) jQuery.ready.promise https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:48608 <anonymous> https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:49098 <anonymous> https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/ JqueryCore.js:1:261 <anonymous> https://poeshappyplace.co.uk/wire/modules/Jquery/JqueryCore/JqueryCore.js:1:272 Seems like it's timing out after the download at which point i assume it's doing the database interaction, it doesn't write an error to any of the logs, it just times out. One host has confirmed that they are recoeving a ReceiveAckHdr: timeout 300 is exceeded error in their logs, their ReceiveAckHdr is set to 5 minutes which i would have thought would be more than enough, i can confirm this as in developer tools i can see that: https://poeshappyplace.co.uk/control/page/edit/?id=1&InputfieldFileAjax=1 sits there for about five minutes before returning a 501 timeout error, i hope this helps and if you require any further information to debug this, thank you for helping me with this. Thanks, Mark.
  6. Hello Adrian, Thanks for putting so much effort into resolving this, i incorporated the code changed into a fresh install of the dev version of process wire but the problem still persists. Just to recap, we can upload files up to 8mb but anothing over that we just get an endless spinning graphic. We have tried this on multiple hosts, but we get the same behaviour. Is there anything else that can be done, as we hve multiple sites all dependant on process wire and the ability to upload large files (around 50mb) Many thanks, Mark
  7. Thank you for your comprehensive response, Ajusting. the php.ini file had no affect. the network tab in developer tools returned on 200 errors. The log files you mentioned don't seem to be present so i've requested access to those, some other things i didn't mention in my original post are: I've tried this on another host and get the same problem. I can upload smaler files it's only he bigger ones it's having trouble with Here is the response from the host for my recent query: I've had a look at the error log that my colleague has referenced and below is the error that appears 2025-04-15 15:39:11 oracle https://demo.invisu.uk/control/page/edit/ Fatal Error: Uncaught TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given in /data04/insiteportal/public_html/wire/core/FieldtypeMulti.php:254 Stack trace: #0 /data04/insiteportal/public_html/wire/core/FieldtypeMulti.php(254): Exception->__construct('SQLSTATE[HY000]...', 'HY000', Object(PDOException)) #1 /data04/insiteportal/public_html/wire/core/Wire.php(419): ProcessWire\FieldtypeMulti->___savePageField(Object(ProcessWire\RepeaterPage), Object(ProcessWire\Field)) #2 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___savePageFiel...', Array) #3 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\FieldtypeFile), 'savePageField', Array) #4 /data04/insiteportal/public_html/wire/core/PagesEditor.php(918): ProcessWire\Wire->__call('savePageField', Array) #5 /data04/insiteportal/public_html/wire/core/Pages.php(868): ProcessWire\PagesEditor->saveField(Object(ProcessWire\RepeaterPage), Object(ProcessWire\Field), Array) #6 /data04/insiteportal/public_html/wire/core/Wire.php(422): ProcessWire\Pages->___saveField(Object(ProcessWire\RepeaterPage), 'installation_qu...', Array) #7 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___saveField', Array) #8 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Pages), 'saveField', Array) #9 /data04/insiteportal/public_html/wire/core/Page.php(2423): ProcessWire\Wire->__call('saveField', Array) #10 /data04/insiteportal/public_html/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(2737): ProcessWire\Page->save('installation_qu...') #11 /data04/insiteportal/public_html/wire/core/Wire.php(416): ProcessWire\ProcessPageEdit->___ajaxSave(Object(ProcessWire\RepeaterPage)) #12 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___ajaxSave', Array) #13 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageEdit), 'ajaxSave', Array) #14 /data04/insiteportal/public_html/wire/modules/Process/ProcessPageEdit/ProcessPageEdit.module(556): ProcessWire\Wire->__call('ajaxSave', Array) #15 /data04/insiteportal/public_html/wire/core/Wire.php(413): ProcessWire\ProcessPageEdit->___execute() #16 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___execute', Array) #17 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageEdit), 'execute', Array) #18 /data04/insiteportal/public_html/wire/core/ProcessController.php(361): ProcessWire\Wire->__call('execute', Array) #19 /data04/insiteportal/public_html/wire/core/Wire.php(413): ProcessWire\ProcessController->___execute() #20 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___execute', Array) #21 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array) #22 /data04/insiteportal/public_html/wire/core/admin.php(174): ProcessWire\Wire->__call('execute', Array) #23 /data04/insiteportal/public_html/wire/modules/AdminTheme/AdminThemeUikit/controller.php(15): require('/data04/insitep...') #24 /data04/insiteportal/public_html/site/templates/admin.php(15): require('/data04/insitep...') #25 /data04/insiteportal/public_html/wire/core/TemplateFile.php(328): require('/data04/insitep...') #26 /data04/insiteportal/public_html/wire/core/Wire.php(413): ProcessWire\TemplateFile->___render() #27 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___render', Array) #28 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #29 /data04/insiteportal/public_html/wire/modules/PageRender.module(581): ProcessWire\Wire->__call('render', Array) #30 /data04/insiteportal/public_html/wire/core/Wire.php(416): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #31 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___renderPage', Array) #32 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #33 /data04/insiteportal/public_html/wire/core/WireHooks.php(1094): ProcessWire\Wire->__call('renderPage', Array) #34 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #35 /data04/insiteportal/public_html/wire/modules/Process/ProcessPageView.module(193): ProcessWire\Wire->__call('render', Array) #36 /data04/insiteportal/public_html/wire/modules/Process/ProcessPageView.module(114): ProcessWire\ProcessPageView->renderPage(Object(ProcessWire\Page), Object(ProcessWire\PagesRequest)) #37 /data04/insiteportal/public_html/wire/core/Wire.php(416): ProcessWire\ProcessPageView->___execute(true) #38 /data04/insiteportal/public_html/wire/core/WireHooks.php(968): ProcessWire\Wire->_callMethod('___execute', Array) #39 /data04/insiteportal/public_html/wire/core/Wire.php(484): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #40 /data04/insiteportal/public_html/index.php(55): ProcessWire\Wire->__call('execute', Array) #41 {main} thrown (line 254 of /data04/insiteportal/public_html/wire/core/FieldtypeMulti.php) The error here is referencing line 254 in the file FieldtypeMulti.php This file can be found in public_html/wire/core. This directory is a core processwire code. This is the line that is causing the error throw new WireDatabaseQueryException($e->getMessage(), $e->getCode(), $e); In the error the code is asking for one thing and is getting a different value. With this being a processwire file there isnt something I can really assist on amending. You can try and get the CMS to generate a new config file as Im assuming the original files will be tailored for MySQL instead of MariaDB. Looking at the file and error online, you can look at amending the code to change the second argument to an integer. I highly recommend doing this with caution though as like I mentioned before this is a core processwire code so amending this may come with risks so please proceed with caution if you go down this route.
  8. Hello, I'm encountering a bug, then using the File field type and attempt an a largish file 20mb upload the progress bar goes to 100%, but then the circular icon that spins just keeps spinning. This happened all of a sudden to all of our process wire sites simultaneously. Thinking it might be our host I tried doing a blank install with just the File field present and the same thing happens. I have tried the following: Making sure the PHP.ini file is setup to accept larger files. Changing the permission on the asset folder. Checking the console and logs for error messages (they provided no error). If some of you could try this (uploading a big file with the File field type, I'd be interested to know if I'm just really unlucky or is this a bug in the current build of Process Wire. Also any help would be greatly appreciated. Thanks, Mark.
×
×
  • Create New...