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: 2368
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 83 times)


 
Read Message
Read Message
Read Message
Previous Topic: Runtime errors with version 2.25.0
Next Topic: V 2.30.0 - error 404
Goto Forum:
  


Current Time: Sat Nov 23 18:55:22 EST 2024

Total time taken to generate the page: 0.00842 seconds