Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » RADICORE Installation Issues » PDF error with V 2.28.0
Re: PDF error with V 2.28.0 [message #7847 is a reply to message #7846] Tue, 07 May 2024 04:54 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2355
Registered: April 2006
Location: Surrey, UK
Senior Member
There is a line of code in the TCPDF library like this:
$chars = TCPDF_STATIC::pregSplit('//','u', $str, -1, PREG_SPLIT_NO_EMPTY);
which is returning a boolean instead of an array. I don't know why it is doing this, so I have added the following 3 lines after it:
    if (!is_array($chars)) {    // *** AJM 07/05/2024
        $chars = array();       // *** AJM 07/05/2024
    } // if                     // *** AJM 07/05/2024
The amended script is in the attached zip file. Try it and see if it fixes your problem.
  • Attachment: tcpdf.zip
    (Size: 282.85KB, Downloaded 48 times)


 
Read Message
Read Message
Read Message
Previous Topic: Runtime errors with version 2.25.0
Goto Forum:
  


Current Time: Mon Jul 29 19:18:25 EDT 2024

Total time taken to generate the page: 0.01056 seconds