Jump to content

Warran

Members
  • Posts

    30
  • Joined

  • Last visited

Profile Information

  • Location
    Manchester, UK

Recent Profile Visitors

1,061 profile views

Warran's Achievements

Full Member

Full Member (4/6)

5

Reputation

  1. We are using SessionHandlerDB and getting this error.
  2. Hi Still can't get to the bottom of this problem so any further insight would be very much appreciated. I can see the uploaded file arriving in the assets/files folder but the upload isn't registering in the database for the page and field. This is the error in the log: TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given in /data04/domain/public_html/wire/core/FieldtypeMulti.php:254. However, I'm wondering if this a red herring as the server delivers a non-integer error code which is triggering the error on FieldtypeMulti.php:254. So, could this be a problem with how MySQL is configured on the server? There is a 2006 mysql error code which I think relates to a lost connection. Thanks
  3. Update: I've uncovered the following error: session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/cpanel/php/sessions/ea-php82, handler: write) in <b>Unknown</b>on line <b>0</b> Any thoughts?
  4. I've checked and no errors are being generated in console.
  5. Thanks, I'll check that and report back.
  6. Hi I am having an issue uploading files via 'Files' fields in my templates. Progress goes to 100% but then goes no further i.e. to the point where you would add the description for the file just uploaded. Attached is a screenshot showing where it gets stuck. Works ok with very small file sizes but not with larger files such as the 8MB one in the screenshot. The ini file settings are: memory_limit 128M post_max_size 32M upload_max_filesize 32M max_input_time 360 Hosting provider is adamant it's a CMS issue. Any help would be appreciated. Thanks
  7. Thanks all I've been on holiday. Sorry for not replying sooner. cURL has worked now. It didn't work until the external file was a text file. Then I used curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); to get the contents and used filePutContents and a save path with a new extension of .php. <?php $externalFileURL = 'https://domain.com/files/filename.txt'; $ch = curl_init($externalFileURL); curl_setopt($ch, CURLOPT_URL, $externalFileURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $fileContents = curl_exec($ch); curl_close($ch); $savePath = $config->paths->templates . 'filename.php'; $files->filePutContents($savePath, $fileContents); include $savePath; ?> Thanks again
  8. Hi, We have a web application and I am trying to use external php files as includes within templates. This is so we can centralise certain files that all instances of the web application commonly use. I am trying to work around the setting allow_url_fopen=0 which the host does not allow to be changed. So, something like this, after checking if the file exists, doesn't work. <?php $filename = "/some/external/path/external_file.php"; include($filename); Also tried with cURL to bypass allow_url_fopen=0. Any help would be appreciated. Thanks.
  9. Are you using the latest version of TextFormatterVideoEmbed 2.0.2 ? Is 'body' a CKEditor field? Also is the YT URL within <p> tags? Pretty obvious things but worth checking.
  10. Quick update: All works fine with the latest version from Ryan.
  11. Thanks kp52. I'll have a look at that too.
  12. I've made that mistake before now ?. But it is applied to the field.
  13. Hi Adrian Thanks for you reply. Could be, I'll take a look. Yes. The module looks for either a Youtube or Vimeo url between <p> tags and knows to output it as an embedded video. This isn't happening. It just outputs the url as plain text. I'll have a look at the module. Thanks again.
  14. Hi, I'm having an issue with TextFormatterVideoEmbed. Never had any problems with this before but it's not picking up the Youtube or Vmeo urls when it's in <p> tags, as it should do. Has anyone experienced this too? I'm using PW v3.0.165, TextFormatterVideoEmbed v1.1.1 in CKEditor (core within PW 3.0.165). Thanks Warran
  15. Hi DrQuincy You've asked the same question that I am interested in. The project was taken over by 'kongondo'. You may have already seen this thread, but just in case. https://processwire.com/talk/topic/19912-future-of-padloper-new-project-lead-announcement/ Warran
×
×
  • Create New...